Package | Description |
---|---|
net.sourceforge.htmlunit.corejs.javascript | |
net.sourceforge.htmlunit.corejs.javascript.ast | |
net.sourceforge.htmlunit.corejs.javascript.optimizer |
Modifier and Type | Method and Description |
---|---|
ScriptNode |
IRFactory.transformTree(AstRoot root)
Transforms the tree into a lower-level IR suitable for codegen.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
Interpreter.compile(CompilerEnvirons compilerEnv,
ScriptNode tree,
java.lang.String encodedSource,
boolean returnFunction) |
java.lang.Object |
Evaluator.compile(CompilerEnvirons compilerEnv,
ScriptNode tree,
java.lang.String encodedSource,
boolean returnFunction)
Compile the script or function from intermediate representation
tree into an executable form.
|
java.lang.String |
Node.toStringTree(ScriptNode treeTop) |
void |
NodeTransformer.transform(ScriptNode tree) |
protected void |
NodeTransformer.visitCall(Node node,
ScriptNode tree) |
protected void |
NodeTransformer.visitNew(Node node,
ScriptNode tree) |
Modifier and Type | Class and Description |
---|---|
class |
AstRoot
Node for the root of a parse tree.
|
class |
FunctionNode
A JavaScript function declaration or expression.
|
Modifier and Type | Field and Description |
---|---|
protected ScriptNode |
Scope.top |
Modifier and Type | Method and Description |
---|---|
ScriptNode |
Scope.getTop()
Returns current script or function scope
|
Modifier and Type | Method and Description |
---|---|
void |
Scope.setTop(ScriptNode top)
Sets top current script or function scope
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
Codegen.compile(CompilerEnvirons compilerEnv,
ScriptNode tree,
java.lang.String encodedSource,
boolean returnFunction) |