| Package | org.paazio.utils |
| Class | public class Console |
| Method | Defined by | ||
|---|---|---|---|
|
assert(... rest):void
[static]
Tests that an expression is true.
| Console | ||
|
count(name:String = null):void
[static]
Writes the number of times that the line of code where count was called was executed.
| Console | ||
|
debug(... rest):void
[static]
Writes a message to the console, including a hyperlink to the
line where it was called.
| Console | ||
|
dir(object:Object):void
[static]
Prints an interactive listing of all properties of the object.
| Console | ||
|
dirxml(object:XML):void
[static]
Prints the XML source tree of an HTML or XML element.
| Console | ||
|
error(... rest):void
[static]
Writes a message to the console with the visual "error" icon and
color coding and a hyperlink to the line where it was called.
| Console | ||
|
group(... rest):void
[static]
Writes a message to the console and opens a nested block to indent all future messages sent to the console.
| Console | ||
|
groupEnd():void
[static]
Closes the most recently opened block created by a call to console.group.
| Console | ||
|
info(... rest):void
[static]
Writes a message to the console with the visual "info" icon and
color coding and a hyperlink to the line where it was called.
| Console | ||
|
log(... rest):void
[static]
Writes a message to the console.
| Console | ||
|
profile(title:String):void
[static]
Turns on the JavaScript profiler.
| Console | ||
|
profileEnd():void
[static]
Turns off the JavaScript profiler and prints its report.
| Console | ||
|
time(name:String):void
[static]
Creates a new timer under the given name.
| Console | ||
|
timeEnd(name:String):void
[static]
Stops a timer created by a call to console.time(name) and writes the time elapsed.
| Console | ||
|
traceStack():void
[static]
Prints an interactive stack trace of JavaScript execution at the
point where it is called.
| Console | ||
|
warn(... rest):void
[static]
Writes a message to the console with the visual "warning" icon and
color coding and a hyperlink to the line where it was called.
| Console | ||
| assert | () | method |
public static function assert(... rest):voidTests that an expression is true. If not, it will write a message to the console and throw an exception.
Parameters... rest |
| count | () | method |
public static function count(name:String = null):voidWrites the number of times that the line of code where count was called was executed. The optional argument title will print a message in addition to the number of the count.
Parametersname:String (default = null) |
| debug | () | method |
public static function debug(... rest):voidWrites a message to the console, including a hyperlink to the line where it was called.
Parameters... rest |
| dir | () | method |
public static function dir(object:Object):voidPrints an interactive listing of all properties of the object. This looks identical to the view that you would see in the DOM tab.
Parametersobject:Object |
| dirxml | () | method |
public static function dirxml(object:XML):voidPrints the XML source tree of an HTML or XML element. This looks identical to the view that you would see in the HTML tab. You can click on any node to inspect it in the HTML tab.
Parametersobject:XML |
| error | () | method |
public static function error(... rest):voidWrites a message to the console with the visual "error" icon and color coding and a hyperlink to the line where it was called.
Parameters... rest |
| group | () | method |
public static function group(... rest):voidWrites a message to the console and opens a nested block to indent all future messages sent to the console. Call console.groupEnd() to close the block.
Parameters... rest |
| groupEnd | () | method |
public static function groupEnd():voidCloses the most recently opened block created by a call to console.group.
| info | () | method |
public static function info(... rest):voidWrites a message to the console with the visual "info" icon and color coding and a hyperlink to the line where it was called.
Parameters... rest |
| log | () | method |
public static function log(... rest):voidWrites a message to the console. You may pass as many arguments as you'd like, and they will be joined together in a space-delimited line.
Parameters... rest |
| profile | () | method |
public static function profile(title:String):voidTurns on the JavaScript profiler. The optional argument title would contain the text to be printed in the header of the profile report.
Parameterstitle:String |
| profileEnd | () | method |
public static function profileEnd():voidTurns off the JavaScript profiler and prints its report.
| time | () | method |
public static function time(name:String):voidCreates a new timer under the given name. Call console.timeEnd(name) with the same name to stop the timer and print the time elapsed..
Parametersname:String |
| timeEnd | () | method |
public static function timeEnd(name:String):voidStops a timer created by a call to console.time(name) and writes the time elapsed.
Parametersname:String |
| traceStack | () | method |
public static function traceStack():voidPrints an interactive stack trace of JavaScript execution at the point where it is called. The stack trace details the functions on the stack, as well as the values that were passed as arguments to each function. You can click each function to take you to its source in the Script tab, and click each argument value to inspect it in the DOM or HTML tabs.
| warn | () | method |
public static function warn(... rest):voidWrites a message to the console with the visual "warning" icon and color coding and a hyperlink to the line where it was called.
Parameters... rest |