sleep.engine
Class CallRequest.FunctionCallRequest

java.lang.Object
  extended by sleep.engine.CallRequest
      extended by 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
protected  Function callme
           
protected  java.lang.String function
           
 
Fields inherited from class sleep.engine.CallRequest
environment, lineNumber
 
Constructor Summary
CallRequest.FunctionCallRequest(ScriptEnvironment e, int lineNo, java.lang.String functionName, Function f)
           
 
Method Summary
protected  Scalar execute()
          execute the function call contained here
 java.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 args
 java.lang.String getFrameDescription()
          return the description of this current stack frame in the event of an exception
 java.lang.String getFunctionName()
          return the name of the function (for use in profiler statistics)
 boolean isDebug()
          return true if debug trace is enabled.
 
Methods inherited from class sleep.engine.CallRequest
CallFunction, getLineNumber, getScriptEnvironment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

function

protected java.lang.String function

callme

protected Function callme
Constructor Detail

CallRequest.FunctionCallRequest

public CallRequest.FunctionCallRequest(ScriptEnvironment e,
                                       int lineNo,
                                       java.lang.String functionName,
                                       Function f)
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 class CallRequest

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 class CallRequest

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 class CallRequest

isDebug

public boolean isDebug()
Description copied from class: CallRequest
return true if debug trace is enabled. override this to add/change criteria for trace activiation

Overrides:
isDebug in class CallRequest

execute

protected Scalar execute()
Description copied from class: CallRequest
execute the function call contained here

Specified by:
execute in class CallRequest