Uses of Class
org.mozilla.javascript.Node
-
Packages that use Node Package Description org.mozilla.javascript org.mozilla.javascript.ast org.mozilla.javascript.optimizer -
-
Uses of Node in org.mozilla.javascript
Fields in org.mozilla.javascript declared as Node Modifier and Type Field Description protected Node
Node. first
protected Node
Node. last
protected Node
Node. next
Methods in org.mozilla.javascript that return Node Modifier and Type Method 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)
Methods in org.mozilla.javascript that return types with arguments of type Node Modifier and Type Method Description java.util.Iterator<Node>
Node. iterator()
Returns anIterator
over the node's children.Methods in org.mozilla.javascript with parameters of type Node Modifier and Type Method 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)
Constructors in org.mozilla.javascript with parameters of type Node Constructor 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)
-
Uses of Node in org.mozilla.javascript.ast
Subclasses of Node 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
AstNode
Base class for AST node types.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 Node Modifier and Type Field Description Node
Jump. target
Methods in org.mozilla.javascript.ast that return Node Modifier and Type Method Description Node
Jump. getContinue()
Node
Jump. getDefault()
Node
Jump. getFinally()
Node
Symbol. getNode()
Returns the node associated with this identifierNode
VariableDeclaration. setType(int type)
Sets the node type and returns this node.Methods in org.mozilla.javascript.ast that return types with arguments of type Node Modifier and Type Method Description java.util.Map<Node,int[]>
FunctionNode. getLiveLocals()
java.util.List<Node>
FunctionNode. getResumptionPoints()
Methods in org.mozilla.javascript.ast with parameters of type Node Modifier and Type Method 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 identifierConstructors in org.mozilla.javascript.ast with parameters of type Node Constructor Description Jump(int type, Node child)
Jump(int type, Node child, int lineno)
-
Uses of Node in org.mozilla.javascript.optimizer
Methods in org.mozilla.javascript.optimizer with parameters of type Node Modifier and Type Method Description int
OptFunctionNode. getVarIndex(Node n)
-