Package | Description |
---|---|
net.sourceforge.htmlunit.corejs.javascript.ast |
Modifier and Type | Class and Description |
---|---|
protected static class |
AstNode.DebugPrintVisitor |
Modifier and Type | Method and Description |
---|---|
abstract void |
AstNode.visit(NodeVisitor visitor)
Visits this node and its children in an arbitrary order.
|
void |
FunctionNode.visit(NodeVisitor v)
Visits this node, the function name node if supplied,
the parameters, and the body.
|
void |
LetNode.visit(NodeVisitor v)
Visits this node, the variable list, and if present, the body
expression or statement.
|
void |
SwitchStatement.visit(NodeVisitor v)
Visits this node, then the switch-expression, then the cases
in lexical order.
|
void |
UnaryExpression.visit(NodeVisitor v)
Visits this node, then the operand.
|
void |
ErrorNode.visit(NodeVisitor v)
Error nodes are not visited during normal visitor traversals,
but comply with the
AstNode.visit(net.sourceforge.htmlunit.corejs.javascript.ast.NodeVisitor) interface. |
void |
EmptyStatement.visit(NodeVisitor v)
Visits this node.
|
void |
ObjectLiteral.visit(NodeVisitor v)
Visits this node, then visits each child property node, in lexical
(source) order.
|
void |
ArrayComprehension.visit(NodeVisitor v)
Visits this node, the result expression, the loops, and the optional
filter.
|
void |
ParenthesizedExpression.visit(NodeVisitor v)
Visits this node, then the child expression.
|
void |
XmlExpression.visit(NodeVisitor v)
Visits this node, then the child expression.
|
void |
ArrayLiteral.visit(NodeVisitor v)
Visits this node, then visits its element expressions in order.
|
void |
ElementGet.visit(NodeVisitor v)
Visits this node, the target, and the index expression.
|
void |
TryStatement.visit(NodeVisitor v)
Visits this node, then the try-block, then any catch clauses,
and then any finally block.
|
void |
Yield.visit(NodeVisitor v)
Visits this node, and if present, the yielded value.
|
void |
ReturnStatement.visit(NodeVisitor v)
Visits this node, then the return value if specified.
|
void |
NumberLiteral.visit(NodeVisitor v)
Visits this node.
|
void |
GeneratorExpression.visit(NodeVisitor v)
Visits this node, the result expression, the loops, and the optional
filter.
|
void |
LabeledStatement.visit(NodeVisitor v)
Visits this node, then each label in the label-list, and finally the
statement.
|
void |
StringLiteral.visit(NodeVisitor v)
Visits this node.
|
void |
SwitchCase.visit(NodeVisitor v)
Visits this node, then the case expression if present, then
each statement (if any are specified).
|
void |
Scope.visit(NodeVisitor v) |
void |
InfixExpression.visit(NodeVisitor v)
Visits this node, the left operand, and the right operand.
|
void |
XmlString.visit(NodeVisitor v)
Visits this node.
|
void |
PropertyGet.visit(NodeVisitor v)
Visits this node, the target expression, and the property name.
|
void |
ArrayComprehensionLoop.visit(NodeVisitor v)
Visits the iterator expression and the iterated object expression.
|
void |
BreakStatement.visit(NodeVisitor v)
Visits this node, then visits the break label if non-
null . |
void |
GeneratorExpressionLoop.visit(NodeVisitor v)
Visits the iterator expression and the iterated object expression.
|
void |
RegExpLiteral.visit(NodeVisitor v)
Visits this node.
|
void |
EmptyExpression.visit(NodeVisitor v)
Visits this node.
|
void |
VariableDeclaration.visit(NodeVisitor v)
Visits this node, then each
VariableInitializer child. |
void |
WhileLoop.visit(NodeVisitor v)
Visits this node, the condition, then the body.
|
void |
NewExpression.visit(NodeVisitor v)
Visits this node, the target, and each argument.
|
void |
ConditionalExpression.visit(NodeVisitor v)
Visits this node, then the test-expression, the true-expression,
and the false-expression.
|
void |
FunctionCall.visit(NodeVisitor v)
Visits this node, the target object, and the arguments.
|
void |
CatchClause.visit(NodeVisitor v)
Visits this node, the catch var name node, the condition if
non-
null , and the catch body. |
void |
ContinueStatement.visit(NodeVisitor v)
Visits this node, then visits the label if non-
null . |
void |
Block.visit(NodeVisitor v) |
void |
ForInLoop.visit(NodeVisitor v)
Visits this node, the iterator, the iterated object, and the body.
|
void |
DoLoop.visit(NodeVisitor v)
Visits this node, the body, and then the while-expression.
|
void |
Jump.visit(NodeVisitor visitor)
Jumps are only used directly during code generation, and do
not support this interface.
|
void |
XmlLiteral.visit(NodeVisitor v)
Visits this node, then visits each child fragment in lexical order.
|
void |
WithStatement.visit(NodeVisitor v)
Visits this node, then the with-object, then the body statement.
|
void |
Comment.visit(NodeVisitor v)
Comment nodes are not visited during normal visitor traversals,
but comply with the
AstNode.visit(net.sourceforge.htmlunit.corejs.javascript.ast.NodeVisitor) interface. |
void |
Name.visit(NodeVisitor v)
Visits this node.
|
void |
ThrowStatement.visit(NodeVisitor v)
Visits this node, then the thrown expression.
|
void |
ExpressionStatement.visit(NodeVisitor v)
Visits this node, then the wrapped statement.
|
void |
ForLoop.visit(NodeVisitor v)
Visits this node, the initializer expression, the loop condition
expression, the increment expression, and then the loop body.
|
void |
Label.visit(NodeVisitor v)
Visits this label.
|
void |
ScriptNode.visit(NodeVisitor v) |
void |
XmlPropRef.visit(NodeVisitor v)
Visits this node, then the namespace if present, then the property name.
|
void |
KeywordLiteral.visit(NodeVisitor v)
Visits this node.
|
void |
IfStatement.visit(NodeVisitor v)
Visits this node, the condition, the then-part, and
if supplied, the else-part.
|
void |
VariableInitializer.visit(NodeVisitor v)
Visits this node, then the target expression, then the initializer
expression if present.
|
void |
XmlElemRef.visit(NodeVisitor v)
Visits this node, then the namespace if provided, then the
index expression.
|
void |
AstRoot.visitAll(NodeVisitor visitor)
Visits the AST nodes, then the comment nodes.
|
void |
AstRoot.visitComments(NodeVisitor visitor)
Visits the comment nodes in the order they appear in the source code.
|