Package com.scriptbasic.hooks
Class RunLimitHook
- java.lang.Object
-
- com.scriptbasic.spi.SimpleHook
-
- com.scriptbasic.hooks.RunLimitHook
-
- All Implemented Interfaces:
InterpreterHook
public class RunLimitHook extends SimpleHook
This hook can be configured to limit the execution resources for a given program. The limits are read from the configuration file.- Author:
- Peter Verhas date Aug 4, 2012
-
-
Constructor Summary
Constructors Constructor Description RunLimitHook()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeforeExecuteEx(Command command)voidinitEx()-
Methods inherited from class com.scriptbasic.spi.SimpleHook
afterCallJavaFunction, afterCallJavaFunctionEx, afterExecute, afterExecute, afterExecuteEx, afterExecuteEx, afterPop, afterPopEx, afterPush, afterPushEx, beforeCallJavaFunction, beforeCallJavaFunctionEx, beforeExecute, beforeExecute, beforeExecuteEx, beforePop, beforePopEx, beforePush, beforePushEx, beforeRegisteringJavaMethod, beforeRegisteringJavaMethodEx, beforeSubroutineCall, beforeSubroutineCallEx, getInterpreter, init, setInterpreter, setNext, setReturnValue, setReturnValueEx, variableRead, variableReadEx
-
-
-
-
Method Detail
-
initEx
public void initEx()
- Overrides:
initExin classSimpleHook
-
beforeExecuteEx
public void beforeExecuteEx(Command command)
- Overrides:
beforeExecuteExin classSimpleHook- Parameters:
command- parameter
-
-