Package sleep.engine

Class CallRequest

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void CallFunction()
      actually execute the function call
      protected abstract Scalar execute()
      execute the function call contained here
      protected abstract 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
      abstract java.lang.String getFrameDescription()
      return the description of this current stack frame in the event of an exception
      abstract java.lang.String getFunctionName()
      return the name of the function (for use in profiler statistics)
      int getLineNumber()
      returns the line number this function call is occuring from
      protected ScriptEnvironment getScriptEnvironment()
      returns the script environment...
      boolean isDebug()
      return true if debug trace is enabled.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • lineNumber

        protected int lineNumber
    • Constructor Detail

      • CallRequest

        public CallRequest​(ScriptEnvironment e,
                           int lineNo)
        initialize a new call request
    • Method Detail

      • getScriptEnvironment

        protected ScriptEnvironment getScriptEnvironment()
        returns the script environment... pHEAR
      • getLineNumber

        public int getLineNumber()
        returns the line number this function call is occuring from
      • getFunctionName

        public abstract java.lang.String getFunctionName()
        return the name of the function (for use in profiler statistics)
      • getFrameDescription

        public abstract java.lang.String getFrameDescription()
        return the description of this current stack frame in the event of an exception
      • execute

        protected abstract Scalar execute()
        execute the function call contained here
      • formatCall

        protected abstract 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
      • isDebug

        public boolean isDebug()
        return true if debug trace is enabled. override this to add/change criteria for trace activiation
      • CallFunction

        public void CallFunction()
        actually execute the function call