Package sleep.engine
Class CallRequest.FunctionCallRequest
- java.lang.Object
-
- sleep.engine.CallRequest
-
- sleep.engine.CallRequest.FunctionCallRequest
-
- Enclosing class:
- CallRequest
public static class CallRequest.FunctionCallRequest extends CallRequest
execute a function with all of the debug, trace, etc.. support
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class sleep.engine.CallRequest
CallRequest.ClosureCallRequest, CallRequest.FunctionCallRequest, CallRequest.InlineCallRequest
-
-
Field Summary
Fields Modifier and Type Field Description protected Functioncallmeprotected java.lang.Stringfunction-
Fields inherited from class sleep.engine.CallRequest
environment, lineNumber
-
-
Constructor Summary
Constructors Constructor Description FunctionCallRequest(ScriptEnvironment e, int lineNo, java.lang.String functionName, Function f)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Scalarexecute()execute the function call contained herejava.lang.StringformatCall(java.lang.String args)return a string view of this function call for trace messages; arguments are captured as comma separated descriptions of all argsjava.lang.StringgetFrameDescription()return the description of this current stack frame in the event of an exceptionjava.lang.StringgetFunctionName()return the name of the function (for use in profiler statistics)booleanisDebug()return true if debug trace is enabled.-
Methods inherited from class sleep.engine.CallRequest
CallFunction, getLineNumber, getScriptEnvironment
-
-
-
-
Field Detail
-
function
protected java.lang.String function
-
callme
protected Function callme
-
-
Constructor Detail
-
FunctionCallRequest
public FunctionCallRequest(ScriptEnvironment e, int lineNo, java.lang.String functionName, Function f)
-
-
Method Detail
-
getFunctionName
public java.lang.String getFunctionName()
Description copied from class:CallRequestreturn the name of the function (for use in profiler statistics)- Specified by:
getFunctionNamein classCallRequest
-
getFrameDescription
public java.lang.String getFrameDescription()
Description copied from class:CallRequestreturn the description of this current stack frame in the event of an exception- Specified by:
getFrameDescriptionin classCallRequest
-
formatCall
public java.lang.String formatCall(java.lang.String args)
Description copied from class:CallRequestreturn a string view of this function call for trace messages; arguments are captured as comma separated descriptions of all args- Specified by:
formatCallin classCallRequest
-
isDebug
public boolean isDebug()
Description copied from class:CallRequestreturn true if debug trace is enabled. override this to add/change criteria for trace activiation- Overrides:
isDebugin classCallRequest
-
execute
protected Scalar execute()
Description copied from class:CallRequestexecute the function call contained here- Specified by:
executein classCallRequest
-
-