Package sleep.engine
Class CallRequest.ClosureCallRequest
- java.lang.Object
-
- sleep.engine.CallRequest
-
- sleep.engine.CallRequest.ClosureCallRequest
-
- Enclosing class:
- CallRequest
public static class CallRequest.ClosureCallRequest extends CallRequest
execute a closure with all of the trimmings.
-
-
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 java.lang.String
name
protected Scalar
scalar
-
Fields inherited from class sleep.engine.CallRequest
environment, lineNumber
-
-
Constructor Summary
Constructors Constructor Description ClosureCallRequest(ScriptEnvironment e, int lineNo, Scalar _scalar, java.lang.String _name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Scalar
execute()
execute the function call contained herejava.lang.String
formatCall(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.String
getFrameDescription()
return the description of this current stack frame in the event of an exceptionjava.lang.String
getFunctionName()
return the name of the function (for use in profiler statistics)-
Methods inherited from class sleep.engine.CallRequest
CallFunction, getLineNumber, getScriptEnvironment, isDebug
-
-
-
-
Field Detail
-
name
protected java.lang.String name
-
scalar
protected Scalar scalar
-
-
Constructor Detail
-
ClosureCallRequest
public ClosureCallRequest(ScriptEnvironment e, int lineNo, Scalar _scalar, java.lang.String _name)
-
-
Method Detail
-
getFunctionName
public java.lang.String getFunctionName()
Description copied from class:CallRequest
return the name of the function (for use in profiler statistics)- Specified by:
getFunctionName
in classCallRequest
-
getFrameDescription
public java.lang.String getFrameDescription()
Description copied from class:CallRequest
return the description of this current stack frame in the event of an exception- Specified by:
getFrameDescription
in classCallRequest
-
formatCall
public java.lang.String formatCall(java.lang.String args)
Description copied from class:CallRequest
return a string view of this function call for trace messages; arguments are captured as comma separated descriptions of all args- Specified by:
formatCall
in classCallRequest
-
execute
protected Scalar execute()
Description copied from class:CallRequest
execute the function call contained here- Specified by:
execute
in classCallRequest
-
-