Package | Description |
---|---|
net.sourceforge.htmlunit.corejs.javascript | |
net.sourceforge.htmlunit.corejs.javascript.ast | |
net.sourceforge.htmlunit.corejs.javascript.optimizer |
Modifier and Type | Field and Description |
---|---|
protected Node |
Node.first |
protected Node |
Node.last |
protected Node |
Node.next |
Modifier and Type | Method and Description |
---|---|
protected Node |
Parser.createName(int type,
java.lang.String name,
Node child) |
protected Node |
Parser.createName(java.lang.String name) |
protected Node |
Parser.createNumber(double number) |
Node |
Node.getChildBefore(Node child) |
Node |
Node.getFirstChild() |
Node |
Node.getLastChild() |
Node |
Node.getLastSibling() |
Node |
Node.getNext() |
static Node |
Node.newNumber(double number) |
static Node |
Node.newString(int type,
java.lang.String str) |
static Node |
Node.newString(java.lang.String str) |
static Node |
Node.newTarget() |
Node |
Node.NodeIterator.next() |
Node |
Node.setType(int type)
Sets the node type and returns this node.
|
protected Node |
Parser.simpleAssignment(Node left,
Node right) |
Node |
IRFactory.transform(AstNode node) |
protected Node |
NodeTransformer.visitLet(boolean createWith,
Node parent,
Node previous,
Node scopeNode) |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<Node> |
Node.iterator()
Returns an
Iterator over the node's children. |
Modifier and Type | Method and Description |
---|---|
void |
Node.addChildAfter(Node newChild,
Node node)
Add 'child' after 'node'.
|
void |
Node.addChildBefore(Node newChild,
Node node)
Add 'child' before 'node'.
|
void |
Node.addChildrenToBack(Node children) |
void |
Node.addChildrenToFront(Node children) |
void |
Node.addChildToBack(Node child) |
void |
Node.addChildToFront(Node child) |
protected void |
Parser.checkMutableReference(Node n) |
protected Node |
Parser.createName(int type,
java.lang.String name,
Node child) |
Node |
Node.getChildBefore(Node child) |
void |
Node.removeChild(Node child) |
void |
Node.replaceChild(Node child,
Node newChild) |
void |
Node.replaceChildAfter(Node prevChild,
Node newChild) |
protected Node |
Parser.simpleAssignment(Node left,
Node right) |
protected void |
NodeTransformer.visitCall(Node node,
ScriptNode tree) |
protected Node |
NodeTransformer.visitLet(boolean createWith,
Node parent,
Node previous,
Node scopeNode) |
protected void |
NodeTransformer.visitNew(Node node,
ScriptNode tree) |
Constructor and Description |
---|
Node(int nodeType,
Node child) |
Node(int nodeType,
Node child,
int line) |
Node(int nodeType,
Node left,
Node right) |
Node(int nodeType,
Node left,
Node right,
int line) |
Node(int nodeType,
Node left,
Node mid,
Node right) |
Node(int nodeType,
Node left,
Node mid,
Node right,
int line) |
Modifier and Type | Class and Description |
---|---|
class |
ArrayComprehension
AST node for a JavaScript 1.7 Array comprehension.
|
class |
ArrayComprehensionLoop
AST node for a single 'for (foo in bar)' loop construct in a JavaScript 1.7
Array comprehension.
|
class |
ArrayLiteral
AST node for an Array literal.
|
class |
Assignment
AST node representing the set of assignment operators such as
= ,
*= and += . |
class |
AstNode
Base class for AST node types.
|
class |
AstRoot
Node for the root of a parse tree.
|
class |
Block
A block statement delimited by curly braces.
|
class |
BreakStatement
A break statement.
|
class |
CatchClause
Node representing a catch-clause of a try-statement.
|
class |
Comment
Node representing comments.
|
class |
ConditionalExpression
AST node representing the ternary operator.
|
class |
ContinueStatement
A continue statement.
|
class |
DoLoop
Do statement.
|
class |
ElementGet
AST node for an indexed property reference, such as
foo['bar'] or
foo[2] . |
class |
EmptyExpression
AST node for an empty expression.
|
class |
EmptyStatement
AST node for an empty statement.
|
class |
ErrorNode
AST node representing a parse error or a warning.
|
class |
ExpressionStatement
AST node representing an expression in a statement context.
|
class |
ForInLoop
For-in or for-each-in statement.
|
class |
ForLoop
C-style for-loop statement.
|
class |
FunctionCall
AST node for a function call.
|
class |
FunctionNode
A JavaScript function declaration or expression.
|
class |
GeneratorExpression |
class |
GeneratorExpressionLoop |
class |
IfStatement
If-else statement.
|
class |
InfixExpression
AST node representing an infix (binary operator) expression.
|
class |
Jump
Used for code generation.
|
class |
KeywordLiteral
AST node for keyword literals: currently,
this ,
null , true , false , and debugger . |
class |
Label
AST node representing a label.
|
class |
LabeledStatement
A labeled statement.
|
class |
LetNode
AST node for let statements and expressions.
|
class |
Loop
Abstract base type for loops.
|
class |
Name
AST node for a simple name.
|
class |
NewExpression
New expression.
|
class |
NumberLiteral
AST node for a Number literal.
|
class |
ObjectLiteral
AST node for an Object literal (also called an Object initialiser in
Ecma-262).
|
class |
ObjectProperty
AST node for a single name:value entry in an Object literal.
|
class |
ParenthesizedExpression
AST node for a parenthesized expression.
|
class |
PropertyGet
AST node for the '.' operator.
|
class |
RegExpLiteral
AST node for a RegExp literal.
|
class |
ReturnStatement
Return statement.
|
class |
Scope
Represents a scope in the lexical scope chain.
|
class |
ScriptNode
Base type for
AstRoot and FunctionNode nodes, which need to
collect much of the same information. |
class |
StringLiteral
AST node for a single- or double-quoted string literal.
|
class |
SwitchCase
Switch-case AST node type.
|
class |
SwitchStatement
Switch statement AST node type.
|
class |
ThrowStatement
Throw statement.
|
class |
TryStatement
Try/catch/finally statement.
|
class |
UnaryExpression
AST node representing unary operators such as
++ ,
~ , typeof and delete . |
class |
VariableDeclaration
A list of one or more var, const or let declarations.
|
class |
VariableInitializer
A variable declaration or initializer, part of a
VariableDeclaration
expression. |
class |
WhileLoop
While statement.
|
class |
WithStatement
With statement.
|
class |
XmlDotQuery
AST node representing an E4X
foo.(bar) query expression. |
class |
XmlElemRef
AST node for an E4X XML
[expr] member-ref expression. |
class |
XmlExpression
AST node for an embedded JavaScript expression within an E4X XML literal.
|
class |
XmlFragment
Abstract base type for components that comprise an
XmlLiteral
object. |
class |
XmlLiteral
AST node for an E4X (Ecma-357) embedded XML literal.
|
class |
XmlMemberGet
AST node for E4X ".@" and ".." expressions, such as
foo..bar , foo..@bar , @foo.@bar , and
foo..@ns::* . |
class |
XmlPropRef
AST node for an E4X XML
[expr] property-ref expression. |
class |
XmlRef
Base class for E4X XML attribute-access or property-get expressions.
|
class |
XmlString
AST node for an XML-text-only component of an XML literal expression.
|
class |
Yield
AST node for JavaScript 1.7
yield expression or statement. |
Modifier and Type | Field and Description |
---|---|
Node |
Jump.target |
Modifier and Type | Method and Description |
---|---|
Node |
Jump.getContinue() |
Node |
Jump.getDefault() |
Node |
Jump.getFinally() |
Node |
Symbol.getNode()
Returns the node associated with this identifier
|
Node |
VariableDeclaration.setType(int type)
Sets the node type and returns this node.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<Node,int[]> |
FunctionNode.getLiveLocals() |
java.util.List<Node> |
FunctionNode.getResumptionPoints() |
Modifier and Type | Method and Description |
---|---|
void |
FunctionNode.addLiveLocals(Node node,
int[] locals) |
void |
FunctionNode.addResumptionPoint(Node target) |
int |
ScriptNode.getIndexForNameNode(Node nameNode) |
void |
Jump.setContinue(Node continueTarget) |
void |
Jump.setDefault(Node defaultTarget) |
void |
Jump.setFinally(Node finallyTarget) |
void |
Symbol.setNode(Node node)
Sets the node associated with this identifier
|
Constructor and Description |
---|
Jump(int type,
Node child) |
Jump(int type,
Node child,
int lineno) |
Modifier and Type | Method and Description |
---|---|
int |
OptFunctionNode.getVarIndex(Node n) |