public class Console extends SimpleScriptable
Constructor and Description |
---|
Console() |
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, defineFunctionProperties, defineProperty, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setClassName, setDomNode, setDomNode, setHtmlElement, 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, 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)
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)
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)
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)
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)
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)
cx
- the JavaScript contextthisObj
- the scriptableargs
- the arguments passed into the methodfunObj
- the functionpublic void dir(Object o)
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–2016 Gargoyle Software Inc.. All rights reserved.