public class Console extends SimpleScriptable
Console.| Constructor and Description |
|---|
Console()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
assertMethod(net.sourceforge.htmlunit.corejs.javascript.Context cx,
net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj,
Object[] args,
net.sourceforge.htmlunit.corejs.javascript.Function funObj)
This method writes an error message to the console if the
assertion is false.
|
static void |
debug(net.sourceforge.htmlunit.corejs.javascript.Context cx,
net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj,
Object[] args,
net.sourceforge.htmlunit.corejs.javascript.Function funObj)
This method performs logging to the console at
debug level. |
void |
dir(Object o)
Implementation of console
dir function. |
static void |
error(net.sourceforge.htmlunit.corejs.javascript.Context cx,
net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj,
Object[] args,
net.sourceforge.htmlunit.corejs.javascript.Function funObj)
This method performs logging to the console at
error level. |
void |
group()
Implementation of group.
|
void |
groupCollapsed()
Implementation of groupCollapsed.
|
void |
groupEnd()
Implementation of endGroup.
|
static void |
info(net.sourceforge.htmlunit.corejs.javascript.Context cx,
net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj,
Object[] args,
net.sourceforge.htmlunit.corejs.javascript.Function funObj)
This method performs logging to the console at
info level. |
static void |
log(net.sourceforge.htmlunit.corejs.javascript.Context cx,
net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj,
Object[] args,
net.sourceforge.htmlunit.corejs.javascript.Function funObj)
This method performs logging to the console at
log level. |
void |
setWebWindow(WebWindow webWindow)
Sets the Window JavaScript object this console belongs to.
|
void |
time(String timerName)
This method replicates Firefox's behavior: if the timer already exists,
the start time is not overwritten.
|
void |
timeEnd(String timerName)
This method replicates Firefox's behavior: if no timer is found, nothing is
logged to the console.
|
void |
timeStamp(String label)
Because there is no timeline in HtmlUnit this does nothing.
|
static void |
trace(net.sourceforge.htmlunit.corejs.javascript.Context cx,
net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj,
Object[] args,
net.sourceforge.htmlunit.corejs.javascript.Function funObj)
This method performs logging to the console at
trace level. |
static void |
warn(net.sourceforge.htmlunit.corejs.javascript.Context cx,
net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj,
Object[] args,
net.sourceforge.htmlunit.corejs.javascript.Function funObj)
This method performs logging to the console at
warn level. |
clone, equivalentValues, get, getBrowserVersion, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getWindow, getWindow, getWithPreemption, has, hasInstance, initParentScope, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElementdefineFunctionProperties, defineProperty, getClassName, put, setClassName, setParentScopeapplyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isReadOnlySettable, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setPrototype, sizepublic void setWebWindow(WebWindow webWindow)
webWindow - the Window JavaScript object this console belongs topublic static void assertMethod(net.sourceforge.htmlunit.corejs.javascript.Context cx,
net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj,
Object[] args,
net.sourceforge.htmlunit.corejs.javascript.Function funObj)
cx - the JavaScript contextthisObj - the scriptableargs - the arguments passed into the methodfunObj - the functionpublic static void log(net.sourceforge.htmlunit.corejs.javascript.Context cx,
net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj,
Object[] args,
net.sourceforge.htmlunit.corejs.javascript.Function funObj)
log level.cx - the JavaScript contextthisObj - the scriptableargs - the arguments passed into the methodfunObj - the functionpublic static void info(net.sourceforge.htmlunit.corejs.javascript.Context cx,
net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj,
Object[] args,
net.sourceforge.htmlunit.corejs.javascript.Function funObj)
info level.cx - the JavaScript contextthisObj - the scriptableargs - the arguments passed into the methodfunObj - the functionpublic static void warn(net.sourceforge.htmlunit.corejs.javascript.Context cx,
net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj,
Object[] args,
net.sourceforge.htmlunit.corejs.javascript.Function funObj)
warn level.cx - the JavaScript contextthisObj - the scriptableargs - the arguments passed into the methodfunObj - the functionpublic static void error(net.sourceforge.htmlunit.corejs.javascript.Context cx,
net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj,
Object[] args,
net.sourceforge.htmlunit.corejs.javascript.Function funObj)
error level.cx - the JavaScript contextthisObj - the scriptableargs - the arguments passed into the methodfunObj - the functionpublic static void debug(net.sourceforge.htmlunit.corejs.javascript.Context cx,
net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj,
Object[] args,
net.sourceforge.htmlunit.corejs.javascript.Function funObj)
debug level.cx - the JavaScript contextthisObj - the scriptableargs - the arguments passed into the methodfunObj - the functionpublic static void trace(net.sourceforge.htmlunit.corejs.javascript.Context cx,
net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj,
Object[] args,
net.sourceforge.htmlunit.corejs.javascript.Function funObj)
trace level.cx - the JavaScript contextthisObj - the scriptableargs - the arguments passed into the methodfunObj - the functionpublic void dir(Object o)
dir function. This method does not enter recursively
in the passed object, nor prints the details of objects or functions.o - the object to be printedpublic void group()
public void groupEnd()
public void groupCollapsed()
public void time(String timerName)
timerName - the name of the timerpublic void timeEnd(String timerName)
timerName - the name of the timerpublic void timeStamp(String label)
label - the labelCopyright © 2002–2020 Gargoyle Software Inc.. All rights reserved.