org.hawk.module.lib
Class SystemModule

java.lang.Object
  extended by org.hawk.module.lib.SystemModule
All Implemented Interfaces:
IModule

public class SystemModule
extends java.lang.Object
implements IModule


Constructor Summary
SystemModule()
           
 
Method Summary
 long currentTime(java.lang.Object... args)
           
 java.lang.String dumpFunctionStack(java.lang.Object... args)
           
 java.lang.String execute(java.lang.Object... args)
           
static java.lang.ThreadLocal<Stack<FunctionScript.FunctionInvocationInfo>> getFunctionStack()
           
 int length(java.lang.Object... args)
           
 boolean reset()
          This resets one cycle of execution.
 boolean sort(java.lang.Object... args)
           
 boolean startUp()
          The target application's main module needs to implement it for its initialization.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemModule

public SystemModule()
Method Detail

getFunctionStack

public static java.lang.ThreadLocal<Stack<FunctionScript.FunctionInvocationInfo>> getFunctionStack()

startUp

public boolean startUp()
Description copied from interface: IModule
The target application's main module needs to implement it for its initialization.

Specified by:
startUp in interface IModule
Returns:

reset

public boolean reset()
Description copied from interface: IModule
This resets one cycle of execution. This is useful when hawk is run in property mode.

Specified by:
reset in interface IModule
Returns:

execute

public java.lang.String execute(java.lang.Object... args)
                         throws java.lang.Exception
Throws:
java.lang.Exception

dumpFunctionStack

public java.lang.String dumpFunctionStack(java.lang.Object... args)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

currentTime

public long currentTime(java.lang.Object... args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

length

public int length(java.lang.Object... args)
           throws java.lang.Exception
Throws:
java.lang.Exception

sort

public boolean sort(java.lang.Object... args)
             throws java.lang.Exception
Throws:
java.lang.Exception