public abstract class BaseJavetConsoleInterceptor extends BaseJavetDirectCallableInterceptor
IJavetDirectCallable.DirectCall, IJavetDirectCallable.GetterAndNoThis<E extends java.lang.Exception>, IJavetDirectCallable.GetterAndThis<E extends java.lang.Exception>, IJavetDirectCallable.NoThisAndNoResult<E extends java.lang.Exception>, IJavetDirectCallable.NoThisAndResult<E extends java.lang.Exception>, IJavetDirectCallable.SetterAndNoThis<E extends java.lang.Exception>, IJavetDirectCallable.SetterAndThis<E extends java.lang.Exception>, IJavetDirectCallable.ThisAndNoResult<E extends java.lang.Exception>, IJavetDirectCallable.ThisAndResult<E extends java.lang.Exception>
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
JS_FUNCTION_DEBUG
The constant JS_FUNCTION_DEBUG.
|
protected static java.lang.String |
JS_FUNCTION_ERROR
The constant JS_FUNCTION_ERROR.
|
protected static java.lang.String |
JS_FUNCTION_INFO
The constant JS_FUNCTION_INFO.
|
protected static java.lang.String |
JS_FUNCTION_LOG
The constant JS_FUNCTION_LOG.
|
protected static java.lang.String |
JS_FUNCTION_TRACE
The constant JS_FUNCTION_TRACE.
|
protected static java.lang.String |
JS_FUNCTION_WARN
The constant JS_FUNCTION_WARN.
|
protected static java.lang.String |
PROPERTY_CONSOLE
The constant PROPERTY_CONSOLE.
|
protected static java.lang.String |
SPACE
The constant SPACE.
|
v8Runtime
Constructor and Description |
---|
BaseJavetConsoleInterceptor(V8Runtime v8Runtime)
Instantiates a new Base javet console interceptor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
concat(V8Value... v8Values)
Concat string.
|
abstract void |
consoleDebug(V8Value... v8Values)
Console debug.
|
abstract void |
consoleError(V8Value... v8Values)
Console error.
|
abstract void |
consoleInfo(V8Value... v8Values)
Console info.
|
abstract void |
consoleLog(V8Value... v8Values)
Console log.
|
abstract void |
consoleTrace(V8Value... v8Values)
Console trace.
|
abstract void |
consoleWarn(V8Value... v8Values)
Console warn.
|
JavetCallbackContext[] |
getCallbackContexts()
Get supported callback contexts.
|
boolean |
register(IV8ValueObject... iV8ValueObjects)
Register the interceptor to the given V8 value object.
|
boolean |
unregister(IV8ValueObject... iV8ValueObjects)
Unregister the interceptor from the given V8 value object.
|
getV8Runtime
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setV8Runtime
protected static final java.lang.String JS_FUNCTION_DEBUG
protected static final java.lang.String JS_FUNCTION_ERROR
protected static final java.lang.String JS_FUNCTION_INFO
protected static final java.lang.String JS_FUNCTION_LOG
protected static final java.lang.String JS_FUNCTION_TRACE
protected static final java.lang.String JS_FUNCTION_WARN
protected static final java.lang.String PROPERTY_CONSOLE
protected static final java.lang.String SPACE
public BaseJavetConsoleInterceptor(V8Runtime v8Runtime)
v8Runtime
- the V8 runtimepublic java.lang.String concat(V8Value... v8Values)
v8Values
- the V8 valuespublic abstract void consoleDebug(V8Value... v8Values)
v8Values
- the V8 valuespublic abstract void consoleError(V8Value... v8Values)
v8Values
- the V8 valuespublic abstract void consoleInfo(V8Value... v8Values)
v8Values
- the V8 valuespublic abstract void consoleLog(V8Value... v8Values)
v8Values
- the V8 valuespublic abstract void consoleTrace(V8Value... v8Values)
v8Values
- the V8 valuespublic abstract void consoleWarn(V8Value... v8Values)
v8Values
- the V8 valuespublic JavetCallbackContext[] getCallbackContexts()
IJavetDirectCallable
public boolean register(IV8ValueObject... iV8ValueObjects) throws JavetException
IJavetInterceptor
register
in interface IJavetInterceptor
register
in class BaseJavetInterceptor
iV8ValueObjects
- the V8 value objectsJavetException
- the javet exceptionpublic boolean unregister(IV8ValueObject... iV8ValueObjects) throws JavetException
IJavetInterceptor
unregister
in interface IJavetInterceptor
unregister
in class BaseJavetInterceptor
iV8ValueObjects
- the V8 value objectsJavetException
- the javet exception