Uses of Class
org.mozilla.javascript.ast.AstNode
-
Packages that use AstNode Package Description org.mozilla.javascript org.mozilla.javascript.ast -
-
Uses of AstNode in org.mozilla.javascript
Fields in org.mozilla.javascript declared as AstNode Modifier and Type Field Description (package private) AstNode
Parser.ConditionData. condition
Methods in org.mozilla.javascript that return AstNode Modifier and Type Method Description private AstNode
Parser. addExpr()
private AstNode
Parser. andExpr()
private AstNode
Parser. arrayComprehension(AstNode result, int pos)
Parse a JavaScript 1.7 Array comprehension.private AstNode
Parser. arrayLiteral()
May return anArrayLiteral
orArrayComprehension
.private AstNode
Parser. arrowFunction(AstNode params)
private AstNode
Parser. assignExpr()
private AstNode
Parser. attributeAccess()
Xml attribute expression:private AstNode
Parser. bitAndExpr()
private AstNode
Parser. bitOrExpr()
private AstNode
Parser. bitXorExpr()
private AstNode
Parser. block()
private AstNode
Parser. condExpr()
private AstNode
Parser. createNumericLiteral(int tt, boolean isProperty)
private AstNode
Parser. defaultXmlNamespace()
private AstNode
Parser. destructuringPrimaryExpr()
private AstNode
Parser. eqExpr()
private AstNode
Parser. expExpr()
private AstNode
Parser. expr()
private AstNode
Parser. forLoopInit(int tt)
private AstNode
Parser. generatorExpression(AstNode result, int pos)
private AstNode
Parser. generatorExpression(AstNode result, int pos, boolean inFunctionParams)
private AstNode
Parser. getNextStatementAfterInlineComments(AstNode pn)
private AstNode
Parser. let(boolean isStatement, int pos)
private AstNode
Parser. letStatement()
private AstNode
Parser. memberExpr(boolean allowCallSyntax)
Parse a new-expression, or if next token isn'tToken.NEW
, a primary expression.private AstNode
Parser. memberExprTail(boolean allowCallSyntax, AstNode pn)
Parse any number of "(expr)", "[expr]" ".expr", "..expr", or ".(expr)" constructs trailing the passed expression.private AstNode
Parser. mulExpr()
private AstNode
Parser. name(int ttFlagged, int tt)
private AstNode
Parser. nameOrLabel()
Found a name in a statement context.private AstNode
Parser. objliteralProperty()
private AstNode
Parser. orExpr()
private AstNode
Parser. parenExpr()
private AstNode
Parser. parseFunctionBody(int type, FunctionNode fnNode)
private AstNode
Parser. primaryExpr()
private AstNode
Parser. propertyAccess(int tt, AstNode pn)
Handles any construct following a "." or ".." operator.private AstNode
Parser. propertyName(int atPos, int memberTypeFlags)
Check if :: follows name in which case it becomes a qualified name.private AstNode
Parser. relExpr()
protected AstNode
Parser. removeParens(AstNode node)
private AstNode
Parser. returnOrYield(int tt, boolean exprContext)
private AstNode
Parser. shiftExpr()
private AstNode
Parser. statement()
private AstNode
Parser. statementHelper()
private AstNode
Parser. statements()
private AstNode
Parser. statements(AstNode parent)
private AstNode
Parser. taggedTemplateLiteral(AstNode pn)
private AstNode
Parser. templateLiteral(boolean isTaggedLiteral)
private AstNode
IRFactory. transformAssignmentLeft(Assignment node, AstNode left, AstNode right)
private AstNode
Parser. unaryExpr()
private AstNode
Parser. xmlInitializer()
Methods in org.mozilla.javascript that return types with arguments of type AstNode Modifier and Type Method Description private java.util.List<AstNode>
Parser. argumentList()
Methods in org.mozilla.javascript with parameters of type AstNode Modifier and Type Method Description private AstNode
Parser. arrayComprehension(AstNode result, int pos)
Parse a JavaScript 1.7 Array comprehension.private AstNode
Parser. arrowFunction(AstNode params)
private void
Parser. arrowFunctionParams(FunctionNode fnNode, AstNode params, java.util.Map<java.lang.String,Node> destructuring, java.util.Set<java.lang.String> paramNames)
private void
Parser. autoInsertSemicolon(AstNode pn)
private void
Parser. checkCallRequiresActivation(AstNode pn)
(package private) void
IRFactory. decompile(AstNode node)
private AstNode
Parser. generatorExpression(AstNode result, int pos)
private AstNode
Parser. generatorExpression(AstNode result, int pos, boolean inFunctionParams)
private static java.lang.String
Parser. getDirective(AstNode n)
private AstNode
Parser. getNextStatementAfterInlineComments(AstNode pn)
private static int
Parser. getNodeEnd(AstNode n)
(package private) void
Parser. markDestructuring(AstNode node)
private AstNode
Parser. memberExprTail(boolean allowCallSyntax, AstNode pn)
Parse any number of "(expr)", "[expr]" ".expr", "..expr", or ".(expr)" constructs trailing the passed expression.private ObjectProperty
Parser. methodDefinition(int pos, AstNode propName, int entryKind)
private static int
Parser. nodeEnd(AstNode node)
private ObjectProperty
Parser. plainProperty(AstNode property, int ptt)
private AstNode
Parser. propertyAccess(int tt, AstNode pn)
Handles any construct following a "." or ".." operator.protected AstNode
Parser. removeParens(AstNode node)
private AstNode
Parser. statements(AstNode parent)
private AstNode
Parser. taggedTemplateLiteral(AstNode pn)
Node
IRFactory. transform(AstNode node)
private AstNode
IRFactory. transformAssignmentLeft(Assignment node, AstNode left, AstNode right)
private Node
IRFactory. transformBlock(AstNode node)
private Node
IRFactory. transformLiteral(AstNode node)
-
Uses of AstNode in org.mozilla.javascript.ast
Subclasses of AstNode in org.mozilla.javascript.ast Modifier and Type Class 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
AstRoot
Node for the root of a parse tree.class
BigIntLiteral
AST node for a BigInt literal.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 asfoo['bar']
orfoo[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 or for-of 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
, anddebugger
.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 forAstRoot
andFunctionNode
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
TaggedTemplateLiteral
AST node for a Tagged Template Literal.class
TemplateCharacters
AST node for Template Literal Characters.class
TemplateLiteral
AST node for a Template literal.class
ThrowStatement
Throw statement.class
TryStatement
Try/catch/finally statement.class
UnaryExpression
AST node representing unary operators such astypeof
anddelete
.class
UpdateExpression
AST node representing update operators such as++
.class
VariableDeclaration
A list of one or more var, const or let declarations.class
VariableInitializer
A variable declaration or initializer, part of aVariableDeclaration
expression.class
WhileLoop
While statement.class
WithStatement
With statement.class
XmlDotQuery
AST node representing an E4Xfoo.(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 anXmlLiteral
object.class
XmlLiteral
AST node for an E4X (Ecma-357) embedded XML literal.class
XmlMemberGet
AST node for E4X ".@" and ".." expressions, such asfoo..bar
,foo..@bar
,@foo.@bar
, andfoo..@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.7yield
expression or statement.Fields in org.mozilla.javascript.ast declared as AstNode Modifier and Type Field Description private AstNode
FunctionNode. body
private AstNode
LetNode. body
protected AstNode
Loop. body
private AstNode
CatchClause. catchCondition
private AstNode
DoLoop. condition
private AstNode
ForLoop. condition
private AstNode
IfStatement. condition
private AstNode
WhileLoop. condition
private AstNode
ElementGet. element
private AstNode
IfStatement. elseKeyWordInlineComment
private AstNode
IfStatement. elsePart
private AstNode
ExpressionStatement. expr
private AstNode
ParenthesizedExpression. expression
private AstNode
SwitchCase. expression
private AstNode
SwitchStatement. expression
private AstNode
ThrowStatement. expression
private AstNode
WithStatement. expression
private AstNode
XmlExpression. expression
private AstNode
ConditionalExpression. falseExpression
private AstNode
ArrayComprehension. filter
private AstNode
GeneratorExpression. filter
private AstNode
TryStatement. finallyBlock
private AstNode
ForLoop. increment
private AstNode
XmlElemRef. indexExpr
private AstNode
ForLoop. initializer
private AstNode
VariableInitializer. initializer
protected AstNode
AstNode. inlineComment
protected AstNode
ForInLoop. iteratedObject
protected AstNode
ForInLoop. iterator
protected AstNode
InfixExpression. left
private AstNode
FunctionNode. memberExprNode
private AstNode
UnaryExpression. operand
private AstNode
UpdateExpression. operand
protected AstNode
AstNode. parent
private AstNode
ArrayComprehension. result
private AstNode
GeneratorExpression. result
private AstNode
ReturnStatement. returnValue
protected AstNode
InfixExpression. right
private AstNode
LabeledStatement. statement
private AstNode
WithStatement. statement
private AstNode
BreakStatement. target
private AstNode
ElementGet. target
protected AstNode
FunctionCall. target
private AstNode
TaggedTemplateLiteral. target
private AstNode
VariableInitializer. target
private AstNode
TaggedTemplateLiteral. templateLiteral
private AstNode
ConditionalExpression. testExpression
private AstNode
IfStatement. thenPart
private AstNode
ConditionalExpression. trueExpression
private AstNode
TryStatement. tryBlock
private AstNode
Yield. value
Fields in org.mozilla.javascript.ast with type parameters of type AstNode Modifier and Type Field Description protected java.util.List<AstNode>
FunctionCall. arguments
private java.util.List<AstNode>
ArrayLiteral. elements
private java.util.List<AstNode>
TemplateLiteral. elements
protected static java.util.List<AstNode>
FunctionCall. NO_ARGS
private static java.util.List<AstNode>
ArrayLiteral. NO_ELEMS
private static java.util.List<AstNode>
FunctionNode. NO_PARAMS
private java.util.List<AstNode>
FunctionNode. params
private java.util.List<AstNode>
SwitchCase. statements
Methods in org.mozilla.javascript.ast with type parameters of type AstNode Modifier and Type Method Description protected <T extends AstNode>
voidAstNode. printList(java.util.List<T> items, java.lang.StringBuilder sb)
Prints a comma-separated item list into aStringBuilder
.Methods in org.mozilla.javascript.ast that return AstNode Modifier and Type Method Description AstNode
ArrayComprehensionLoop. getBody()
Returnsnull
for loop bodyAstNode
FunctionNode. getBody()
Returns function body.AstNode
LetNode. getBody()
Returns body statement or expression.AstNode
Loop. getBody()
Returns loop bodyAstNode
BreakStatement. getBreakTarget()
Returns the statement to break toAstNode
CatchClause. getCatchCondition()
Returns catch condition node, if presentAstNode
DoLoop. getCondition()
Returns loop conditionAstNode
ForLoop. getCondition()
Returns loop conditionAstNode
IfStatement. getCondition()
Returns if conditionAstNode
WhileLoop. getCondition()
Returns loop conditionAstNode
ArrayLiteral. getElement(int index)
Returns element at specified index.AstNode
ElementGet. getElement()
Returns the element being accessedAstNode
TemplateLiteral. getElement(int index)
Returns element at specified index.AstNode
IfStatement. getElseKeyWordInlineComment()
AstNode
IfStatement. getElsePart()
Returns statement to execute if condition is falseAstNode
ExpressionStatement. getExpression()
Returns the wrapped expressionAstNode
ParenthesizedExpression. getExpression()
Returns the expression between the parensAstNode
SwitchCase. getExpression()
Returns the case expression,null
for default caseAstNode
SwitchStatement. getExpression()
Returns the switch discriminant expressionAstNode
ThrowStatement. getExpression()
Returns the expression being thrownAstNode
WithStatement. getExpression()
Returns object expressionAstNode
XmlElemRef. getExpression()
Returns index expression: the 'expr' in@[expr]
or@*::[expr]
.AstNode
XmlExpression. getExpression()
Returns the expression embedded in {}AstNode
ConditionalExpression. getFalseExpression()
Returns expression to evaluate if test is falseAstNode
ArrayComprehension. getFilter()
Returns filter expression, ornull
if not presentAstNode
GeneratorExpression. getFilter()
Returns filter expression, ornull
if not presentAstNode
TryStatement. getFinallyBlock()
Returns finally block, ornull
if not presentAstNode
ForLoop. getIncrement()
Returns loop increment expressionAstNode
ForLoop. getInitializer()
Returns loop initializer variable declaration list.AstNode
VariableInitializer. getInitializer()
Returns the initial value, ornull
if not providedAstNode
AstNode. getInlineComment()
AstNode
ForInLoop. getIteratedObject()
Returns object being iterated overAstNode
ForInLoop. getIterator()
Returns loop iterator expressionAstNode
InfixExpression. getLeft()
Returns the left-hand side of the expressionAstNode
FunctionNode. getMemberExprNode()
AstNode
UnaryExpression. getOperand()
AstNode
UpdateExpression. getOperand()
AstNode
AstNode. getParent()
Returns the node parent, ornull
if it has noneAstNode
ArrayComprehension. getResult()
Returns result expression node (just after opening bracket)AstNode
GeneratorExpression. getResult()
Returns result expression node (just after opening bracket)AstNode
ReturnStatement. getReturnValue()
Returns return value,null
if return value is voidAstNode
InfixExpression. getRight()
Returns the right-hand side of the expressionAstNode
LabeledStatement. getStatement()
Returns the labeled statementAstNode
WithStatement. getStatement()
Returns the statement or blockAstNode
ElementGet. getTarget()
Returns the object on which the element is being fetched.AstNode
FunctionCall. getTarget()
Returns node evaluating to the function to callAstNode
PropertyGet. getTarget()
Returns the object on which the property is being fetched.AstNode
TaggedTemplateLiteral. getTarget()
AstNode
VariableInitializer. getTarget()
Returns the variable name or destructuring formAstNode
XmlMemberGet. getTarget()
Returns the object on which the XML member-ref expression is being evaluated.AstNode
TaggedTemplateLiteral. getTemplateLiteral()
AstNode
ConditionalExpression. getTestExpression()
Returns test expressionAstNode
IfStatement. getThenPart()
Returns statement to execute if condition is trueAstNode
ConditionalExpression. getTrueExpression()
Returns expression to evaluate if test is trueAstNode
TryStatement. getTryBlock()
AstNode
Yield. getValue()
Returns yielded expression,null
if noneMethods in org.mozilla.javascript.ast that return types with arguments of type AstNode Modifier and Type Method Description java.util.List<AstNode>
FunctionCall. getArguments()
Returns function argument listjava.util.List<AstNode>
ArrayLiteral. getElements()
Returns the element listjava.util.List<AstNode>
TemplateLiteral. getElements()
Returns the element listjava.util.List<AstNode>
FunctionNode. getParams()
Returns the function parameter listjava.util.List<AstNode>
Scope. getStatements()
Returns a copy of the child list, with each child cast to anAstNode
.java.util.List<AstNode>
SwitchCase. getStatements()
Returns statement list, which may benull
.java.util.List<AstNode>
TemplateLiteral. getSubstitutions()
Returns a list of all substitutions of this template literalMethods in org.mozilla.javascript.ast with parameters of type AstNode Modifier and Type Method Description void
FunctionCall. addArgument(AstNode arg)
Adds an argument to the list, and sets its parent to this node.void
AstNode. addChild(AstNode kid)
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
FunctionNode. addParam(AstNode param)
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
AstNode.PositionComparator. compare(AstNode n1, AstNode n2)
Sorts nodes by (relative) start position.int
AstNode. compareTo(AstNode other)
Permits AST nodes to be sorted based on start position and length.boolean
FunctionNode. isParam(AstNode node)
Returns true if the specifiedAstNode
node is a parameter of this Function node.void
ArrayComprehensionLoop. setBody(AstNode body)
Throws an exception on attempts to set the loop body.void
FunctionNode. setBody(AstNode body)
Sets function body, and sets its parent to this node.void
LetNode. setBody(AstNode body)
Sets body statement or expression.void
Loop. setBody(AstNode body)
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
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
ArrayComprehension. setFilter(AstNode filter)
Sets filter expression, and sets its parent to this node.void
GeneratorExpression. setFilter(AstNode filter)
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
InfixExpression. setLeft(AstNode left)
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) {...} If we detect an expression other than a simple Name in the position where a function name was expected, we record that expression here.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
AstNode. setParent(AstNode parent)
Sets the node parent.void
ArrayComprehension. setResult(AstNode result)
Sets result expression, and sets its parent to this node.void
GeneratorExpression. setResult(AstNode result)
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
InfixExpression. setRight(AstNode right)
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
ElementGet. setTarget(AstNode target)
Sets target object, and sets its parent to this node.void
FunctionCall. setTarget(AstNode target)
Sets node evaluating to the function to call, and sets its parent to this node.void
PropertyGet. setTarget(AstNode target)
Sets target object, and sets its parent to this node.void
TaggedTemplateLiteral. setTarget(AstNode target)
void
VariableInitializer. setTarget(AstNode target)
Sets the variable name or destructuring form, and sets its parent to this node.void
XmlMemberGet. setTarget(AstNode target)
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
Yield. setValue(AstNode expr)
Sets yielded expression, and sets its parent to this node.boolean
AstNode.DebugPrintVisitor. visit(AstNode node)
boolean
NodeVisitor. visit(AstNode node)
Visits an AST node.Method parameters in org.mozilla.javascript.ast with type arguments of type AstNode Modifier and Type Method Description void
FunctionCall. setArguments(java.util.List<AstNode> arguments)
Sets function argument listvoid
ArrayLiteral. setElements(java.util.List<AstNode> elements)
Sets the element list, and sets each element's parent to this node.void
TemplateLiteral. setElements(java.util.List<AstNode> elements)
Sets the element list, and sets each element's parent to this node.void
FunctionNode. setParams(java.util.List<AstNode> params)
Sets the function parameter list, and sets the parent for each element of the list.void
SwitchCase. setStatements(java.util.List<AstNode> statements)
Sets statement list.Constructors in org.mozilla.javascript.ast with parameters of type AstNode Constructor Description Assignment(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)
ParenthesizedExpression(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)
Yield(int pos, int len, AstNode value, boolean isStar)
-