public class Console extends SimpleScriptable
Console
.Constructor and Description |
---|
Console()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElement
defineFunctionProperties, defineProperty, getClassName, setClassName, setParentScope
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setPrototype, size
public void setWebWindow(WebWindow webWindow)
webWindow
- the Window JavaScript object this console belongs topublic 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 timerCopyright © 2002–2017 Gargoyle Software Inc.. All rights reserved.