Uses of Class
org.mozilla.javascript.ast.AstNode
Packages that use AstNode
-
Uses of AstNode in org.mozilla.javascript
Methods in org.mozilla.javascript that return AstNodeMethods in org.mozilla.javascript with parameters of type AstNode -
Uses of AstNode in org.mozilla.javascript.ast
Subclasses of AstNode in org.mozilla.javascript.astModifier and TypeClassDescriptionclass
AST node for a JavaScript 1.7 Array comprehension.class
AST node for a single 'for (foo in bar)' loop construct in a JavaScript 1.7 Array comprehension.class
AST node for an Array literal.class
AST node representing the set of assignment operators such as=
,*=
and+=
.class
Node for the root of a parse tree.class
AST node for a BigInt literal.class
A block statement delimited by curly braces.class
A break statement.class
Node representing a catch-clause of a try-statement.class
Node representing comments.class
AST node for a computed property key, i.e. `[ Expression ]` in an object literal.class
AST node representing the ternary operator.class
A continue statement.class
Do statement.class
AST node for an indexed property reference, such asfoo['bar']
orfoo[2]
.class
AST node for an empty expression.class
AST node for an empty statement.class
AST node representing a parse error or a warning.class
AST node representing an expression in a statement context.class
For-in or for-each-in or for-of statement.class
C-style for-loop statement.class
AST node for a function call.class
A JavaScript function declaration or expression.class
class
class
If-else statement.class
AST node representing an infix (binary operator) expression.class
Used for code generation.class
AST node for keyword literals: currently,this
,null
,true
,false
, anddebugger
.class
AST node representing a label.class
A labeled statement.class
AST node for let statements and expressions.class
Abstract base type for loops.class
AST node for a simple name.class
New expression.class
AST node for a Number literal.class
AST node for an Object literal (also called an Object initializer in Ecma-262).class
AST node for a single name:value entry in an Object literal.class
AST node for a parenthesized expression.class
AST node for the '.' operator.class
AST node for a RegExp literal.class
Return statement.class
Represents a scope in the lexical scope chain.class
Base type forAstRoot
andFunctionNode
nodes, which need to collect much of the same information.class
AST node for a single- or double-quoted string literal.class
Switch-case AST node type.class
Switch statement AST node type.class
AST node for a Tagged Template Literal.class
AST node for Template Literal Characters.class
AST node for a Template literal.class
Throw statement.class
Try/catch/finally statement.class
AST node representing unary operators such astypeof
anddelete
.class
AST node representing update operators such as++
.class
A list of one or more var, const or let declarations.class
A variable declaration or initializer, part of aVariableDeclaration
expression.class
While statement.class
With statement.class
AST node representing an E4Xfoo.(bar)
query expression.class
AST node for an E4X XML[expr]
member-ref expression.class
AST node for an embedded JavaScript expression within an E4X XML literal.class
Abstract base type for components that comprise anXmlLiteral
object.class
AST node for an E4X (Ecma-357) embedded XML literal.class
AST node for E4X ".@" and ".." expressions, such asfoo..bar
,foo..@bar
,@foo.@bar
, andfoo..@ns::*
.class
AST node for an E4X XML[expr]
property-ref expression.class
Base class for E4X XML attribute-access or property-get expressions.class
AST node for an XML-text-only component of an XML literal expression.class
AST node for JavaScript 1.7yield
expression or statement.Fields in org.mozilla.javascript.ast declared as AstNodeModifier and TypeFieldDescriptionprotected AstNode
Loop.body
protected AstNode
AstNode.inlineComment
protected AstNode
ForInLoop.iteratedObject
protected AstNode
ForInLoop.iterator
protected AstNode
InfixExpression.left
protected AstNode
AstNode.parent
protected AstNode
InfixExpression.right
protected AstNode
FunctionCall.target
Fields in org.mozilla.javascript.ast with type parameters of type AstNodeMethods in org.mozilla.javascript.ast with type parameters of type AstNodeModifier and TypeMethodDescriptionprotected <T extends AstNode>
voidAstNode.printList
(List<T> items, StringBuilder sb) Prints a comma-separated item list into aStringBuilder
.Methods in org.mozilla.javascript.ast that return AstNodeModifier and TypeMethodDescriptionArrayComprehensionLoop.getBody()
Returnsnull
for loop bodyFunctionNode.getBody()
Returns function body.LetNode.getBody()
Returns body statement or expression.Loop.getBody()
Returns loop bodyBreakStatement.getBreakTarget()
Returns the statement to break toCatchClause.getCatchCondition()
Returns catch condition node, if presentDoLoop.getCondition()
Returns loop conditionForLoop.getCondition()
Returns loop conditionIfStatement.getCondition()
Returns if conditionWhileLoop.getCondition()
Returns loop conditionArrayLiteral.getElement
(int index) Returns element at specified index.ElementGet.getElement()
Returns the element being accessedTemplateLiteral.getElement
(int index) Returns element at specified index.IfStatement.getElseKeyWordInlineComment()
IfStatement.getElsePart()
Returns statement to execute if condition is falseComputedPropertyKey.getExpression()
ExpressionStatement.getExpression()
Returns the wrapped expressionParenthesizedExpression.getExpression()
Returns the expression between the parensSwitchCase.getExpression()
Returns the case expression,null
for default caseSwitchStatement.getExpression()
Returns the switch discriminant expressionThrowStatement.getExpression()
Returns the expression being thrownWithStatement.getExpression()
Returns object expressionXmlElemRef.getExpression()
Returns index expression: the 'expr' in@[expr]
or@*::[expr]
.XmlExpression.getExpression()
Returns the expression embedded in {}ConditionalExpression.getFalseExpression()
Returns expression to evaluate if test is falseArrayComprehension.getFilter()
Returns filter expression, ornull
if not presentGeneratorExpression.getFilter()
Returns filter expression, ornull
if not presentTryStatement.getFinallyBlock()
Returns finally block, ornull
if not presentForLoop.getIncrement()
Returns loop increment expressionForLoop.getInitializer()
Returns loop initializer variable declaration list.VariableInitializer.getInitializer()
Returns the initial value, ornull
if not providedAstNode.getInlineComment()
ForInLoop.getIteratedObject()
Returns object being iterated overForInLoop.getIterator()
Returns loop iterator expressionInfixExpression.getLeft()
Returns the left-hand side of the expressionFunctionNode.getMemberExprNode()
UnaryExpression.getOperand()
UpdateExpression.getOperand()
AstNode.getParent()
Returns the node parent, ornull
if it has noneArrayComprehension.getResult()
Returns result expression node (just after opening bracket)GeneratorExpression.getResult()
Returns result expression node (just after opening bracket)ReturnStatement.getReturnValue()
Returns return value,null
if return value is voidInfixExpression.getRight()
Returns the right-hand side of the expressionLabeledStatement.getStatement()
Returns the labeled statementWithStatement.getStatement()
Returns the statement or blockElementGet.getTarget()
Returns the object on which the element is being fetched.FunctionCall.getTarget()
Returns node evaluating to the function to callPropertyGet.getTarget()
Returns the object on which the property is being fetched.TaggedTemplateLiteral.getTarget()
VariableInitializer.getTarget()
Returns the variable name or destructuring formXmlMemberGet.getTarget()
Returns the object on which the XML member-ref expression is being evaluated.TaggedTemplateLiteral.getTemplateLiteral()
ConditionalExpression.getTestExpression()
Returns test expressionIfStatement.getThenPart()
Returns statement to execute if condition is trueConditionalExpression.getTrueExpression()
Returns expression to evaluate if test is trueTryStatement.getTryBlock()
Yield.getValue()
Returns yielded expression,null
if noneMethods in org.mozilla.javascript.ast that return types with arguments of type AstNodeModifier and TypeMethodDescriptionFunctionCall.getArguments()
Returns function argument listArrayLiteral.getElements()
Returns the element listTemplateLiteral.getElements()
Returns the element listFunctionNode.getParams()
Returns the function parameter listScope.getStatements()
Returns a copy of the child list, with each child cast to anAstNode
.SwitchCase.getStatements()
Returns statement list, which may benull
.TemplateLiteral.getSubstitutions()
Returns a list of all substitutions of this template literalMethods in org.mozilla.javascript.ast with parameters of type AstNodeModifier and TypeMethodDescriptionvoid
FunctionCall.addArgument
(AstNode arg) Adds an argument to the list, and sets its parent to this node.void
Adds a child or function to the end of the block.void
ArrayLiteral.addElement
(AstNode element) Adds an element to the list, and sets its parent to this node.void
TemplateLiteral.addElement
(AstNode element) Adds an element to the list, and sets its parent to this node.void
Adds a parameter to the function parameter list.void
Block.addStatement
(AstNode statement) Alias foraddChild(org.mozilla.javascript.ast.AstNode)
.void
SwitchCase.addStatement
(AstNode statement) Adds a statement to the end of the statement list.int
Sorts nodes by (relative) start position.int
Permits AST nodes to be sorted based on start position and length.boolean
Returns true if the specifiedAstNode
node is a parameter of this Function node.void
Throws an exception on attempts to set the loop body.void
Sets function body, and sets its parent to this node.void
Sets body statement or expression.void
Sets loop body.void
CatchClause.setCatchCondition
(AstNode catchCondition) Sets catch condition node, and sets its parent to this node.void
DoLoop.setCondition
(AstNode condition) Sets loop condition, and sets its parent to this node.void
ForLoop.setCondition
(AstNode condition) Sets loop condition, and sets its parent to this node.void
IfStatement.setCondition
(AstNode condition) Sets if condition.void
WhileLoop.setCondition
(AstNode condition) Sets loop conditionvoid
ElementGet.setElement
(AstNode element) Sets the element being accessed, and sets its parent to this node.void
IfStatement.setElseKeyWordInlineComment
(AstNode elseKeyWordInlineComment) void
IfStatement.setElsePart
(AstNode elsePart) Sets statement to execute if condition is falsevoid
ComputedPropertyKey.setExpression
(AstNode expression) void
ExpressionStatement.setExpression
(AstNode expression) Sets the wrapped expression, and sets its parent to this node.void
ParenthesizedExpression.setExpression
(AstNode expression) Sets the expression between the parens, and sets the parent to this node.void
SwitchCase.setExpression
(AstNode expression) Sets the case expression,null
for default case.void
SwitchStatement.setExpression
(AstNode expression) Sets the switch discriminant expression, and sets its parent to this node.void
ThrowStatement.setExpression
(AstNode expression) Sets the expression being thrown, and sets its parent to this node.void
WithStatement.setExpression
(AstNode expression) Sets object expression (and its parent link)void
XmlElemRef.setExpression
(AstNode expr) Sets index expression, and sets its parent to this node.void
XmlExpression.setExpression
(AstNode expression) Sets the expression embedded in {}, and sets its parent to this node.void
ConditionalExpression.setFalseExpression
(AstNode falseExpression) Sets expression to evaluate if test is false, and sets its parent to this node.void
Sets filter expression, and sets its parent to this node.void
Sets filter expression, and sets its parent to this node.void
TryStatement.setFinallyBlock
(AstNode finallyBlock) Sets finally block, and sets its parent to this node.void
ForLoop.setIncrement
(AstNode increment) Sets loop increment expression, and sets its parent to this node.void
ForLoop.setInitializer
(AstNode initializer) Sets loop initializer expression, and sets its parent to this node.void
VariableInitializer.setInitializer
(AstNode initializer) Sets the initial value expression, and sets its parent to this node.void
AstNode.setInlineComment
(AstNode inlineComment) void
ForInLoop.setIteratedObject
(AstNode object) Sets object being iterated over, and sets its parent to this node.void
ForInLoop.setIterator
(AstNode iterator) Sets loop iterator expression: the part before the "in" or "of" keyword.void
Sets the left-hand side of the expression, and sets its parent to this node.void
InfixExpression.setLeftAndRight
(AstNode left, AstNode right) void
FunctionNode.setMemberExprNode
(AstNode node) Rhino supports a nonstandard Ecma extension that allows you to say, for instance, function a.b.c(arg1, arg) {...}, and it will be rewritten at codegen time to: a.b.c = function(arg1, arg2) {...}void
UnaryExpression.setOperand
(AstNode operand) Sets the operand, and sets its parent to be this node.void
UpdateExpression.setOperand
(AstNode operand) Sets the operand, and sets its parent to be this node.void
Sets the node parent.void
Sets result expression, and sets its parent to this node.void
Sets result expression, and sets its parent to this node.void
ReturnStatement.setReturnValue
(AstNode returnValue) Sets return value expression, and sets its parent to this node.void
Sets the right-hand side of the expression, and sets its parent to this node.void
LabeledStatement.setStatement
(AstNode statement) Sets the labeled statement, and sets its parent to this node.void
WithStatement.setStatement
(AstNode statement) Sets the statement (and sets its parent link)void
Sets target object, and sets its parent to this node.void
Sets node evaluating to the function to call, and sets its parent to this node.void
Sets target object, and sets its parent to this node.void
void
Sets the variable name or destructuring form, and sets its parent to this node.void
Sets target object, and sets its parent to this node.void
TaggedTemplateLiteral.setTemplateLiteral
(AstNode templateLiteral) void
ConditionalExpression.setTestExpression
(AstNode testExpression) Sets test expression, and sets its parent.void
IfStatement.setThenPart
(AstNode thenPart) Sets statement to execute if condition is truevoid
ConditionalExpression.setTrueExpression
(AstNode trueExpression) Sets expression to evaluate if test is true, and sets its parent to this node.void
TryStatement.setTryBlock
(AstNode tryBlock) Sets try block.void
Sets yielded expression, and sets its parent to this node.boolean
boolean
Visits an AST node.Method parameters in org.mozilla.javascript.ast with type arguments of type AstNodeModifier and TypeMethodDescriptionvoid
FunctionCall.setArguments
(List<AstNode> arguments) Sets function argument listvoid
ArrayLiteral.setElements
(List<AstNode> elements) Sets the element list, and sets each element's parent to this node.void
TemplateLiteral.setElements
(List<AstNode> elements) Sets the element list, and sets each element's parent to this node.void
Sets the function parameter list, and sets the parent for each element of the list.void
SwitchCase.setStatements
(List<AstNode> statements) Sets statement list.Constructors in org.mozilla.javascript.ast with parameters of type AstNodeModifierConstructorDescriptionAssignment
(int pos, int len, AstNode left, AstNode right) Assignment
(int operator, AstNode left, AstNode right, int operatorPos) Assignment
(AstNode left, AstNode right) ElementGet
(AstNode target, AstNode element) ExpressionStatement
(int pos, int len, AstNode expr) Constructs a newExpressionStatement
ExpressionStatement
(AstNode expr) Constructs a newExpressionStatement
wrapping the specified expression.ExpressionStatement
(AstNode expr, boolean hasResult) Constructs a newExpressionStatement
wrapping the specified expression.InfixExpression
(int pos, int len, AstNode left, AstNode right) InfixExpression
(int operator, AstNode left, AstNode right, int operatorPos) Constructs a newInfixExpression
.InfixExpression
(AstNode left, AstNode right) Constructs a newInfixExpression
.ParenthesizedExpression
(int pos, int len, AstNode expr) PropertyGet
(int pos, int len, AstNode target, Name property) PropertyGet
(AstNode target, Name property) Constructor.PropertyGet
(AstNode target, Name property, int dotPosition) ReturnStatement
(int pos, int len, AstNode returnValue) ThrowStatement
(int pos, int len, AstNode expr) ThrowStatement
(int pos, AstNode expr) ThrowStatement
(AstNode expr) UnaryExpression
(int operator, int operatorPosition, AstNode operand) Constructs a new UnaryExpression with the specified operator and operand.UpdateExpression
(int operator, int operatorPosition, AstNode operand) Constructs a new prefix UpdateExpression.UpdateExpression
(int operator, int operatorPosition, AstNode operand, boolean postFix) Constructs a new UpdateExpression with the specified operator and operand.XmlExpression
(int pos, AstNode expr) XmlMemberGet
(int pos, int len, AstNode target, XmlRef ref) XmlMemberGet
(AstNode target, XmlRef ref) Constructs a newXmlMemberGet
node.XmlMemberGet
(AstNode target, XmlRef ref, int opPos)