Class AInterpreter<T extends ACallFrame<T,U>,U extends ACompilerData<?,U>>

java.lang.Object
org.htmlunit.corejs.javascript.AInterpreter<T,U>
All Implemented Interfaces:
Evaluator
Direct Known Subclasses:
Interpreter, InterpreterV2

public abstract class AInterpreter<T extends ACallFrame<T,U>,U extends ACompilerData<?,U>> extends Object implements Evaluator
  • Constructor Details

    • AInterpreter

      public AInterpreter()
  • Method Details

    • enterFrame

      protected static void enterFrame(Context cx, ACallFrame<?,?> frame, Object[] args, boolean continuationRestart)
    • captureStackInfo

      public void captureStackInfo(RhinoException ex)
      Description copied from interface: Evaluator
      Capture stack information from the given exception.
      Specified by:
      captureStackInfo in interface Evaluator
      Parameters:
      ex - an exception thrown during execution
    • getPatchedStack

      public String getPatchedStack(RhinoException ex, String nativeStackTrace)
      Description copied from interface: Evaluator
      Given a native stack trace, patch it with script-specific source and line information
      Specified by:
      getPatchedStack in interface Evaluator
      Parameters:
      ex - exception
      nativeStackTrace - the native stack trace
      Returns:
      patched stack trace
    • getScriptStack

      public List<String> getScriptStack(RhinoException ex)
      Description copied from interface: Evaluator
      Get the script stack for the given exception
      Specified by:
      getScriptStack in interface Evaluator
      Parameters:
      ex - exception from execution
      Returns:
      list of strings for the stack trace
    • getScriptStackElements

      public ScriptStackElement[][] getScriptStackElements(RhinoException ex)
    • getSourcePositionFromStack

      public final String getSourcePositionFromStack(Context cx, int[] linep)
      Description copied from interface: Evaluator
      Get the source position information by examining the stack.
      Specified by:
      getSourcePositionFromStack in interface Evaluator
      Parameters:
      cx - Context
      linep - Array object of length >= 1; getSourcePositionFromStack will assign the line number to linep[0].
      Returns:
      the name of the file or other source container