Module org.htmlunit.corejs
Package org.htmlunit.corejs.javascript
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static final classAInterpreter.ContinuationJump<T extends ACallFrame<T,U>, U extends ACompilerData<?, U>> protected static classThis class is intended as proxy to giveDebugFrameaccess to the contents of local variables. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCapture stack information from the given exception.protected static voidenterFrame(Context cx, ACallFrame<?, ?> frame, Object[] args, boolean continuationRestart) getPatchedStack(RhinoException ex, String nativeStackTrace) Given a native stack trace, patch it with script-specific source and line informationGet the script stack for the given exceptionfinal StringgetSourcePositionFromStack(Context cx, int[] linep) Get the source position information by examining the stack.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.htmlunit.corejs.javascript.Evaluator
compileFunction, compileScript, createFunctionObject, createScriptObject
-
Constructor Details
-
AInterpreter
public AInterpreter()
-
-
Method Details
-
enterFrame
protected static void enterFrame(Context cx, ACallFrame<?, ?> frame, Object[] args, boolean continuationRestart) -
captureStackInfo
Description copied from interface:EvaluatorCapture stack information from the given exception.- Specified by:
captureStackInfoin interfaceEvaluator- Parameters:
ex- an exception thrown during execution
-
getPatchedStack
Description copied from interface:EvaluatorGiven a native stack trace, patch it with script-specific source and line information- Specified by:
getPatchedStackin interfaceEvaluator- Parameters:
ex- exceptionnativeStackTrace- the native stack trace- Returns:
- patched stack trace
-
getScriptStack
Description copied from interface:EvaluatorGet the script stack for the given exception- Specified by:
getScriptStackin interfaceEvaluator- Parameters:
ex- exception from execution- Returns:
- list of strings for the stack trace
-
getScriptStackElements
-
getSourcePositionFromStack
Description copied from interface:EvaluatorGet the source position information by examining the stack.- Specified by:
getSourcePositionFromStackin interfaceEvaluator- Parameters:
cx- Contextlinep- Array object of length >= 1; getSourcePositionFromStack will assign the line number to linep[0].- Returns:
- the name of the file or other source container
-