public final class JavetCallbackContext
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static long |
INVALID_HANDLE
The constant INVALID_HANDLE.
|
| Constructor and Description |
|---|
JavetCallbackContext(java.lang.String name,
JavetCallbackType callbackType,
IJavetDirectCallable.DirectCall directCall)
Instantiates a new Javet callback context.
|
JavetCallbackContext(java.lang.String name,
java.lang.Object callbackReceiver,
JavetCallbackType callbackType,
IJavetDirectCallable.DirectCall directCall)
Instantiates a new Javet callback context.
|
JavetCallbackContext(java.lang.String name,
java.lang.Object callbackReceiver,
java.lang.reflect.Method callbackMethod)
Instantiates a new Javet callback context that takes a Java method for making further reflection calls.
|
JavetCallbackContext(java.lang.String name,
java.lang.Object callbackReceiver,
java.lang.reflect.Method callbackMethod,
boolean thisObjectRequired)
Instantiates a new Javet callback context that takes a Java method for making further reflection calls.
|
JavetCallbackContext(java.lang.String name,
V8ValueSymbolType symbolType,
JavetCallbackType callbackType,
IJavetDirectCallable.DirectCall directCall)
Instantiates a new Javet callback context.
|
JavetCallbackContext(java.lang.String name,
V8ValueSymbolType symbolType,
java.lang.Object callbackReceiver,
JavetCallbackType callbackType,
IJavetDirectCallable.DirectCall directCall)
Instantiates a new Javet callback context.
|
JavetCallbackContext(java.lang.String name,
V8ValueSymbolType symbolType,
java.lang.Object callbackReceiver,
java.lang.reflect.Method callbackMethod)
Instantiates a new Javet callback context that takes a Java method for making further reflection calls.
|
JavetCallbackContext(java.lang.String name,
V8ValueSymbolType symbolType,
java.lang.Object callbackReceiver,
java.lang.reflect.Method callbackMethod,
boolean thisObjectRequired)
Instantiates a new Javet callback context that takes a Java method for making further reflection calls.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getCallbackMethod()
Gets callback method.
|
java.lang.Object |
getCallbackReceiver()
Gets callback receiver.
|
JavetCallbackType |
getCallbackType()
Gets callback type.
|
long |
getHandle()
Gets handle.
|
java.lang.String |
getName()
Gets name.
|
V8ValueSymbolType |
getSymbolType()
Gets symbol type.
|
boolean |
isReturnResult()
Is return result.
|
boolean |
isThisObjectRequired()
Is this object required.
|
boolean |
isValid()
Is valid.
|
public static final long INVALID_HANDLE
public JavetCallbackContext(java.lang.String name,
JavetCallbackType callbackType,
IJavetDirectCallable.DirectCall directCall)
name - the namecallbackType - the callback typedirectCall - the direct callpublic JavetCallbackContext(java.lang.String name,
java.lang.Object callbackReceiver,
JavetCallbackType callbackType,
IJavetDirectCallable.DirectCall directCall)
name - the namecallbackReceiver - the callback receivercallbackType - the callback typedirectCall - the direct callpublic JavetCallbackContext(java.lang.String name,
V8ValueSymbolType symbolType,
JavetCallbackType callbackType,
IJavetDirectCallable.DirectCall directCall)
name - the namesymbolType - the symbol typecallbackType - the callback typedirectCall - the direct callpublic JavetCallbackContext(java.lang.String name,
java.lang.Object callbackReceiver,
java.lang.reflect.Method callbackMethod)
name - the namecallbackReceiver - the callback receivercallbackMethod - the callback methodpublic JavetCallbackContext(java.lang.String name,
V8ValueSymbolType symbolType,
java.lang.Object callbackReceiver,
java.lang.reflect.Method callbackMethod)
name - the namesymbolType - the symbol typecallbackReceiver - the callback receivercallbackMethod - the callback methodpublic JavetCallbackContext(java.lang.String name,
java.lang.Object callbackReceiver,
java.lang.reflect.Method callbackMethod,
boolean thisObjectRequired)
name - the namecallbackReceiver - the callback receivercallbackMethod - the callback methodthisObjectRequired - the this object requiredpublic JavetCallbackContext(java.lang.String name,
V8ValueSymbolType symbolType,
java.lang.Object callbackReceiver,
JavetCallbackType callbackType,
IJavetDirectCallable.DirectCall directCall)
name - the namesymbolType - the symbol typecallbackReceiver - the callback receivercallbackType - the callback typedirectCall - the direct callpublic JavetCallbackContext(java.lang.String name,
V8ValueSymbolType symbolType,
java.lang.Object callbackReceiver,
java.lang.reflect.Method callbackMethod,
boolean thisObjectRequired)
name - the namesymbolType - the symbol typecallbackReceiver - the callback receivercallbackMethod - the callback methodthisObjectRequired - the this object requiredpublic <T> T getCallbackMethod()
T - the type parameterpublic java.lang.Object getCallbackReceiver()
public JavetCallbackType getCallbackType()
public long getHandle()
public java.lang.String getName()
public V8ValueSymbolType getSymbolType()
public boolean isReturnResult()
public boolean isThisObjectRequired()
public boolean isValid()