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_DEBUGThe constant JS_FUNCTION_DEBUG. | 
| protected static java.lang.String | JS_FUNCTION_ERRORThe constant JS_FUNCTION_ERROR. | 
| protected static java.lang.String | JS_FUNCTION_INFOThe constant JS_FUNCTION_INFO. | 
| protected static java.lang.String | JS_FUNCTION_LOGThe constant JS_FUNCTION_LOG. | 
| protected static java.lang.String | JS_FUNCTION_TRACEThe constant JS_FUNCTION_TRACE. | 
| protected static java.lang.String | JS_FUNCTION_WARNThe constant JS_FUNCTION_WARN. | 
| protected static java.lang.String | PROPERTY_CONSOLEThe constant PROPERTY_CONSOLE. | 
| protected static java.lang.String | SPACEThe 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. | 
getV8Runtimeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetV8Runtimeprotected 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()
IJavetDirectCallablepublic boolean register(IV8ValueObject... iV8ValueObjects) throws JavetException
IJavetInterceptorregister in interface IJavetInterceptorregister in class BaseJavetInterceptoriV8ValueObjects - the V8 value objectsJavetException - the javet exceptionpublic boolean unregister(IV8ValueObject... iV8ValueObjects) throws JavetException
IJavetInterceptorunregister in interface IJavetInterceptorunregister in class BaseJavetInterceptoriV8ValueObjects - the V8 value objectsJavetException - the javet exception