Package org.htmlunit.corejs.javascript
Class NativeConsole
java.lang.Object
org.htmlunit.corejs.javascript.ScriptableObject
org.htmlunit.corejs.javascript.IdScriptableObject
org.htmlunit.corejs.javascript.NativeConsole
- All Implemented Interfaces:
Serializable,ConstProperties,DebuggableObject,IdFunctionCall,Scriptable,SymbolScriptable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enumNested classes/interfaces inherited from class org.htmlunit.corejs.javascript.ScriptableObject
ScriptableObject.KeyComparator -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Objectprivate final Map<String, AtomicInteger> private static final Stringprivate static final Patternprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate final NativeConsole.ConsolePrinterprivate static final longFields inherited from class org.htmlunit.corejs.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONSTFields inherited from interface org.htmlunit.corejs.javascript.Scriptable
NOT_FOUND -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcount(Context cx, Scriptable scope, Object[] args) private voidcountReset(Context cx, Scriptable scope, Object[] args) execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) 'thisObj' will be null if invoked as constructor, in which case * instance of Scriptable should be returned.protected intstatic Stringformat(Context cx, Scriptable scope, Object[] args) private static StringformatFloat(Object val) private static Stringprivate static StringformatObj(Context cx, Scriptable scope, Object arg) private static StringformatString(Object val) Return the name of the class.static voidinit(Scriptable scope, boolean sealed, NativeConsole.ConsolePrinter printer) protected voidinitPrototypeId(int id) private voidjsAssert(Context cx, Scriptable scope, Object[] args) private doublenano2Milli(Long nano) private voidprint(Context cx, Scriptable scope, NativeConsole.Level level, String msg) private voidtime(Context cx, Scriptable scope, Object[] args) private voidtimeEnd(Context cx, Scriptable scope, Object[] args) private voidtimeLog(Context cx, Scriptable scope, Object[] args) Methods inherited from class org.htmlunit.corejs.javascript.IdScriptableObject
activatePrototypeMap, addIdFunctionProperty, defaultGet, defaultHas, defaultPut, defineOwnProperty, delete, delete, ensureType, exportAsJSClass, fillConstructorProperties, findInstanceIdInfo, findInstanceIdInfo, findPrototypeId, get, get, getAttributes, getAttributes, getIds, getInstanceIdName, getInstanceIdValue, getMaxInstanceId, getOwnPropertyDescriptor, has, has, hasPrototypeMap, initPrototypeConstructor, initPrototypeMethod, initPrototypeMethod, initPrototypeMethod, initPrototypeValue, initPrototypeValue, instanceIdInfo, put, put, setAttributes, setInstanceIdAttributes, setInstanceIdValueMethods inherited from class org.htmlunit.corejs.javascript.ScriptableObject
addLazilyInitializedValue, applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildClassCtor, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, checkValidAttributes, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, equivalentValues, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getBase, getBase, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, hasInstance, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, putConst, putConstProperty, putImpl, putProperty, putProperty, putProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, size
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
CONSOLE_TAG
-
DEFAULT_LABEL
- See Also:
-
FMT_REG
-
timers
-
counters
-
printer
-
Id_toSource
private static final int Id_toSource- See Also:
-
Id_trace
private static final int Id_trace- See Also:
-
Id_debug
private static final int Id_debug- See Also:
-
Id_log
private static final int Id_log- See Also:
-
Id_info
private static final int Id_info- See Also:
-
Id_warn
private static final int Id_warn- See Also:
-
Id_error
private static final int Id_error- See Also:
-
Id_assert
private static final int Id_assert- See Also:
-
Id_count
private static final int Id_count- See Also:
-
Id_countReset
private static final int Id_countReset- See Also:
-
Id_time
private static final int Id_time- See Also:
-
Id_timeEnd
private static final int Id_timeEnd- See Also:
-
Id_timeLog
private static final int Id_timeLog- See Also:
-
LAST_METHOD_ID
private static final int LAST_METHOD_ID- See Also:
-
MAX_ID
private static final int MAX_ID- See Also:
-
-
Constructor Details
-
NativeConsole
-
-
Method Details
-
init
-
getClassName
Description copied from class:ScriptableObjectReturn the name of the class.This is typically the same name as the constructor. Classes extending ScriptableObject must implement this abstract method.
- Specified by:
getClassNamein interfaceScriptable- Specified by:
getClassNamein classScriptableObject
-
initPrototypeId
protected void initPrototypeId(int id) - Overrides:
initPrototypeIdin classIdScriptableObject
-
execIdCall
public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) Description copied from class:IdScriptableObject'thisObj' will be null if invoked as constructor, in which case * instance of Scriptable should be returned.- Specified by:
execIdCallin interfaceIdFunctionCall- Overrides:
execIdCallin classIdScriptableObject
-
print
-
format
-
formatString
-
formatInt
-
formatFloat
-
formatObj
-
jsAssert
-
count
-
countReset
-
time
-
timeEnd
-
timeLog
-
nano2Milli
-
findPrototypeId
- Overrides:
findPrototypeIdin classIdScriptableObject
-