Methods Summary |
---|
public void | dumpStack(java.lang.String msg)
if ( getDebug() )
{
println();
println( "STACK DUMP FOLLOWS: " + msg);
println( StringUtil.toString( new Exception( "not a real exception" ) ) );
println();
}
|
public boolean | getDebug()
return AMXDebug.getInstance().getDebug( mName );
|
public boolean | getEchoToStdOut(boolean echo)
return mEchoToStdOut;
|
public void | println(java.lang.Object items)This form is preferred for multiple arguments so that String concatenation
can be avoided when no message will actually be output. For example, use:
println( a, b, c)
instead of:
println( a + b + c )
if ( getDebug() && items != null )
{
String msg = null;
if ( items.length == 1 )
{
msg = StringUtil.toString( items[0] );
}
else
{
msg = StringUtil.toString( "", (Object[])items );
}
printlnWithTime( msg );
}
|
public void | println(java.lang.Object o)
if ( getDebug() )
{
printlnWithTime( "" + StringUtil.toString(o) );
}
|
public void | println()
println( "" );
|
private void | printlnWithTime(java.lang.String s)
final long now = System.currentTimeMillis();
final String msg = now + ": " + s;
mOutput.println( msg );
if ( mEchoToStdOut )
{
System.out.println( msg );
}
|
public void | setDebug(boolean debug)
AMXDebug.getInstance().setDebug( mName, debug );
|
public void | setEchoToStdOut(boolean echo)
mEchoToStdOut = echo;
|