Class ScriptContext


  • public class ScriptContext
    extends Object
    • Field Detail

      • contextCount

        private static int contextCount
      • aatoken

        private T[][] aatoken
      • allowJSThreads

        boolean allowJSThreads
      • chk

        boolean chk
      • contextPath

        public String contextPath
      • displayLoadErrorsSave

        boolean displayLoadErrorsSave
      • errorMessage

        public String errorMessage
      • errorMessageUntranslated

        String errorMessageUntranslated
      • errorType

        public String errorType
      • executionPaused

        public boolean executionPaused
      • executionStepping

        public boolean executionStepping
      • functionName

        public String functionName
      • iCommandError

        public int iCommandError
      • id

        public int id
      • isComplete

        public boolean isComplete
      • isFunction

        boolean isFunction
      • isJSThread

        public boolean isJSThread
      • isStateScript

        boolean isStateScript
      • isTryCatch

        boolean isTryCatch
      • forVars

        SV[] forVars
      • iToken

        int iToken
      • lineEnd

        int lineEnd
      • lineIndices

        public int[][] lineIndices
      • lineNumbers

        short[] lineNumbers
      • mustResumeEval

        public boolean mustResumeEval
      • outputBuffer

        public javajs.util.SB outputBuffer
      • pc

        public int pc
      • pc0

        public int pc0
      • pcEnd

        public int pcEnd
      • script

        public String script
      • scriptExtensions

        String scriptExtensions
      • scriptFileName

        public String scriptFileName
      • scriptLevel

        int scriptLevel
      • statement

        public T[] statement
      • statementLength

        int statementLength
      • tryPt

        int tryPt
      • theToken

        T theToken
      • theTok

        int theTok
      • pointers

        private int[] pointers
    • Constructor Detail

      • ScriptContext

        ScriptContext()
    • Method Detail

      • setMustResume

        public void setMustResume()
      • getVariable

        public SV getVariable​(String var)
        Context variables go up the stack until a function is found. That is considered to be the highest level.
        Parameters:
        var -
        Returns:
        context variables
      • saveTokens

        void saveTokens​(T[][] aa)
        save pointers indicating state of if/then
        Parameters:
        aa - the command array token list
      • restoreTokens

        T[][] restoreTokens()
      • getTokenCount

        public int getTokenCount()
      • getToken

        public T[] getToken​(int i)