Uses of Class
org.mozilla.javascript.Node
Packages that use Node
Package
Description
-
Uses of Node in org.mozilla.javascript
Fields in org.mozilla.javascript declared as NodeModifier and TypeFieldDescriptionprivate Node
Node.NodeIterator.cursor
protected Node
Node.first
protected Node
Node.last
protected Node
Node.next
private static final Node
Node.NOT_SET
private Node
Node.NodeIterator.prev
private Node
Node.NodeIterator.prev2
Methods in org.mozilla.javascript that return NodeModifier and TypeMethodDescriptionprivate static Node
NodeTransformer.addBeforeCurrent
(Node parent, Node previous, Node current, Node toAdd) private Node
IRFactory.arrayCompTransformHelper
(ArrayComprehension node, String arrayName) private Node
IRFactory.createAssignment
(int assignType, Node left, Node right) private static Node
IRFactory.createBinary
(int nodeType, Node left, Node right) private Node
IRFactory.createCallOrNew
(int nodeType, Node child) private Node
IRFactory.createCatch
(String varName, Node catchCond, Node stmts, int lineno) Catch clause of try/catch/finallyprivate static Node
IRFactory.createCondExpr
(Node cond, Node ifTrue, Node ifFalse) (package private) Node
Parser.createDestructuringAssignment
(int type, Node left, Node right) Given a destructuring assignment with a left hand side parsed as an array or object literal and a right hand side expression, rewrite as a series of assignments to the variables defined in left from property accesses to the expression on the right.private Node
IRFactory.createElementGet
(Node target, String namespace, Node elem, int memberTypeFlags) private static Node
IRFactory.createExprStatementNoReturn
(Node expr, int lineno) private static Node
private Node
IRFactory.createForIn
(int declType, Node loop, Node lhs, Node obj, Node body, boolean isForEach, boolean isForOf) Generate IR for a for..in loop.private static Node
private static Node
IRFactory.createIncDec
(int nodeType, boolean post, Node child) private static Node
private Node
IRFactory.createMemberRefGet
(Node target, String namespace, Node elem, int memberTypeFlags) protected Node
Parser.createName
(int type, String name, Node child) protected Node
Parser.createName
(String name) protected Node
Parser.createNumber
(double number) private Node
IRFactory.createPropertyGet
(Node target, String namespace, String name, int memberTypeFlags) private static Node
IRFactory.createString
(String string) private Node
IRFactory.createTryCatchFinally
(Node tryBlock, Node catchBlocks, Node finallyBlock, int lineno) Try/Catch/Finallyprivate static Node
IRFactory.createUnary
(int nodeType, Node child) private static Node
IRFactory.createUseLocal
(Node localBlock) private Node
IRFactory.createWith
(Node obj, Node body, int lineno) (package private) Node
IRFactory.decompileFunctionHeader
(FunctionNode fn) (package private) Node
Parser.destructuringAssignmentHelper
(int variableType, Node left, Node right, String tempName) private Node
IRFactory.genExprTransformHelper
(GeneratorExpression node) Node.getChildBefore
(Node child) Node.getFirstChild()
Node.getLastChild()
Node.getLastSibling()
Node.getNext()
private static Node
IRFactory.initFunction
(FunctionNode fnNode, int functionIndex, Node statements, int functionType) private static Node
IRFactory.makeReference
(Node node) static Node
Node.newNumber
(double number) static Node
static Node
static Node
Node.newTarget()
Node.NodeIterator.next()
private static Node
NodeTransformer.replaceCurrent
(Node parent, Node previous, Node current, Node replacement) Node.setType
(int type) Sets the node type and returns this node.protected Node
Parser.simpleAssignment
(Node left, Node right) private Node
IRFactory.transformArrayComp
(ArrayComprehension node) private Node
IRFactory.transformArrayLiteral
(ArrayLiteral node) private Node
IRFactory.transformAssignment
(Assignment node) private Node
IRFactory.transformBigInt
(BigIntLiteral node) private Node
IRFactory.transformBlock
(AstNode node) private Node
IRFactory.transformBreak
(BreakStatement node) private Node
IRFactory.transformCondExpr
(ConditionalExpression node) private Node
IRFactory.transformContinue
(ContinueStatement node) private Node
IRFactory.transformDefaultXmlNamepace
(UnaryExpression node) private Node
IRFactory.transformDoLoop
(DoLoop loop) private Node
IRFactory.transformElementGet
(ElementGet node) private Node
IRFactory.transformExprStmt
(ExpressionStatement node) private Node
IRFactory.transformForInLoop
(ForInLoop loop) private Node
IRFactory.transformForLoop
(ForLoop loop) private Node
IRFactory.transformFunction
(FunctionNode fn) private Node
IRFactory.transformFunctionCall
(FunctionCall node) private Node
IRFactory.transformGenExpr
(GeneratorExpression node) private Node
IRFactory.transformIf
(IfStatement n) private Node
IRFactory.transformInfix
(InfixExpression node) private Node
IRFactory.transformLabeledStatement
(LabeledStatement ls) private Node
IRFactory.transformLetNode
(LetNode node) private Node
IRFactory.transformLiteral
(AstNode node) private Node
IRFactory.transformName
(Name node) private Node
IRFactory.transformNewExpr
(NewExpression node) private Node
IRFactory.transformNumber
(NumberLiteral node) private Node
IRFactory.transformObjectLiteral
(ObjectLiteral node) private Node
IRFactory.transformParenExpr
(ParenthesizedExpression node) private Node
IRFactory.transformPropertyGet
(PropertyGet node) private Node
IRFactory.transformRegExp
(RegExpLiteral node) private Node
IRFactory.transformReturn
(ReturnStatement node) private Node
IRFactory.transformScript
(ScriptNode node) private Node
IRFactory.transformString
(StringLiteral node) private Node
IRFactory.transformSwitch
(SwitchStatement node) private Node
IRFactory.transformTemplateLiteral
(TemplateLiteral node) private Node
IRFactory.transformTemplateLiteralCall
(TaggedTemplateLiteral node) private Node
IRFactory.transformThrow
(ThrowStatement node) private Node
IRFactory.transformTry
(TryStatement node) private Node
IRFactory.transformUnary
(UnaryExpression node) private Node
IRFactory.transformUpdate
(UpdateExpression node) private Node
IRFactory.transformVariableInitializers
(VariableDeclaration node) private Node
IRFactory.transformVariables
(VariableDeclaration node) private Node
IRFactory.transformWhileLoop
(WhileLoop loop) private Node
IRFactory.transformWith
(WithStatement node) private Node
IRFactory.transformXmlLiteral
(XmlLiteral node) private Node
IRFactory.transformXmlMemberGet
(XmlMemberGet node) private Node
IRFactory.transformXmlRef
(XmlRef node) private Node
IRFactory.transformXmlRef
(Node pn, XmlRef node, int memberTypeFlags) private Node
IRFactory.transformYield
(Yield node) protected Node
Methods in org.mozilla.javascript that return types with arguments of type NodeMethods in org.mozilla.javascript with parameters of type NodeModifier and TypeMethodDescriptionprivate static Node
NodeTransformer.addBeforeCurrent
(Node parent, Node previous, Node current, Node toAdd) 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) private void
private static void
IRFactory.addSwitchCase
(Node switchBlock, Node caseExpression, Node statements) If caseExpression argument is null it indicates a default label.private static void
Node.appendPrintId
(Node n, ObjToIntMap printIds, StringBuilder sb) private static RuntimeException
protected void
Parser.checkMutableReference
(Node n) private static void
IRFactory.closeSwitch
(Node switchBlock) private Node
IRFactory.createAssignment
(int assignType, Node left, Node right) private static Node
IRFactory.createBinary
(int nodeType, Node left, Node right) private Node
IRFactory.createCallOrNew
(int nodeType, Node child) private Node
IRFactory.createCatch
(String varName, Node catchCond, Node stmts, int lineno) Catch clause of try/catch/finallyprivate static Node
IRFactory.createCondExpr
(Node cond, Node ifTrue, Node ifFalse) (package private) Node
Parser.createDestructuringAssignment
(int type, Node left, Node right) Given a destructuring assignment with a left hand side parsed as an array or object literal and a right hand side expression, rewrite as a series of assignments to the variables defined in left from property accesses to the expression on the right.private Node
IRFactory.createElementGet
(Node target, String namespace, Node elem, int memberTypeFlags) private static Node
IRFactory.createExprStatementNoReturn
(Node expr, int lineno) private static Node
private Node
IRFactory.createForIn
(int declType, Node loop, Node lhs, Node obj, Node body, boolean isForEach, boolean isForOf) Generate IR for a for..in loop.private static Node
private static Node
IRFactory.createIncDec
(int nodeType, boolean post, Node child) private static Node
private Scope
IRFactory.createLoopNode
(Node loopLabel, int lineno) Create loop node.private Node
IRFactory.createMemberRefGet
(Node target, String namespace, Node elem, int memberTypeFlags) protected Node
Parser.createName
(int type, String name, Node child) private Node
IRFactory.createPropertyGet
(Node target, String namespace, String name, int memberTypeFlags) private Node
IRFactory.createTryCatchFinally
(Node tryBlock, Node catchBlocks, Node finallyBlock, int lineno) Try/Catch/Finallyprivate static Node
IRFactory.createUnary
(int nodeType, Node child) private static Node
IRFactory.createUseLocal
(Node localBlock) private Node
IRFactory.createWith
(Node obj, Node body, int lineno) (package private) boolean
Parser.destructuringArray
(ArrayLiteral array, int variableType, String tempName, Node parent, List<String> destructuringNames) (package private) Node
Parser.destructuringAssignmentHelper
(int variableType, Node left, Node right, String tempName) (package private) boolean
Parser.destructuringObject
(ObjectLiteral node, int variableType, String tempName, Node parent, List<String> destructuringNames) private void
CodeGenerator.generateCallFunAndThis
(Node left) private void
CodeGenerator.generateICodeFromTree
(Node tree) private static void
Node.generatePrintIds
(Node n, ObjToIntMap map) Node.getChildBefore
(Node child) private static int
CodeGenerator.getLocalBlockRef
(Node node) private Object
IRFactory.getPropKey
(Node id) private int
CodeGenerator.getTargetLabel
(Node target) private static Node
IRFactory.initFunction
(FunctionNode fnNode, int functionIndex, Node statements, int functionType) private static int
IRFactory.isAlwaysDefinedBoolean
(Node node) (package private) boolean
IRFactory.isDestructuring
(Node n) private static Jump
private static Node
IRFactory.makeReference
(Node node) private void
CodeGenerator.markTargetLabel
(Node target) void
Node.removeChild
(Node child) void
Node.replaceChild
(Node child, Node newChild) void
Node.replaceChildAfter
(Node prevChild, Node newChild) private static Node
NodeTransformer.replaceCurrent
(Node parent, Node previous, Node current, Node replacement) protected Node
Parser.simpleAssignment
(Node left, Node right) private static void
Node.toStringTreeHelper
(ScriptNode treeTop, Node n, ObjToIntMap printIds, int level, StringBuilder sb) private void
NodeTransformer.transformCompilationUnit_r
(ScriptNode tree, Node parent, Scope scope, boolean createScopeObjects, boolean inStrictMode) private Node
IRFactory.transformXmlRef
(Node pn, XmlRef node, int memberTypeFlags) private void
CodeGenerator.updateLineNumber
(Node node) private void
CodeGenerator.visitArrayComprehension
(Node node, Node initStmt, Node expr) protected void
NodeTransformer.visitCall
(Node node, ScriptNode tree) private void
CodeGenerator.visitExpression
(Node node, int contextFlags) private void
CodeGenerator.visitIncDec
(Node node, Node child) protected Node
private void
CodeGenerator.visitLiteral
(Node node, Node child) protected void
NodeTransformer.visitNew
(Node node, ScriptNode tree) private void
CodeGenerator.visitStatement
(Node node, int initialStackDepth) private void
CodeGenerator.visitTemplateLiteral
(Node node) Method parameters in org.mozilla.javascript with type arguments of type NodeModifier and TypeMethodDescriptionprivate void
Parser.arrowFunctionParams
(FunctionNode fnNode, AstNode params, Map<String, Node> destructuring, Set<String> paramNames) Constructors in org.mozilla.javascript with parameters of type NodeModifierConstructorDescription -
Uses of Node in org.mozilla.javascript.ast
Subclasses of Node 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
Base class for AST node types.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 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 initialiser 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 NodeFields in org.mozilla.javascript.ast with type parameters of type NodeMethods in org.mozilla.javascript.ast that return NodeModifier and TypeMethodDescriptionJump.getContinue()
Jump.getDefault()
Jump.getFinally()
Symbol.getNode()
Returns the node associated with this identifierVariableDeclaration.setType
(int type) Sets the node type and returns this node.Methods in org.mozilla.javascript.ast that return types with arguments of type NodeModifier and TypeMethodDescriptionFunctionNode.getLiveLocals()
FunctionNode.getResumptionPoints()
Methods in org.mozilla.javascript.ast with parameters of type NodeModifier and TypeMethodDescriptionvoid
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
Sets the node associated with this identifierConstructors in org.mozilla.javascript.ast with parameters of type Node -
Uses of Node in org.mozilla.javascript.optimizer
Fields in org.mozilla.javascript.optimizer declared as NodeModifier and TypeFieldDescription(package private) Node
BodyCodegen.ExceptionManager.ExceptionInfo.currentFinally
(package private) Node
BodyCodegen.ExceptionManager.ExceptionInfo.finallyBlock
Fields in org.mozilla.javascript.optimizer with type parameters of type NodeModifier and TypeFieldDescriptionprivate Map<Node,
BodyCodegen.FinallyReturnPoint> BodyCodegen.finallys
BodyCodegen.literals
private IdentityHashMap<Node,
String> BodyCodegen.unnestedYields
Methods in org.mozilla.javascript.optimizer that return NodeModifier and TypeMethodDescriptionprivate Node
BodyCodegen.findNestedYield
(Node node) private static Node
BodyCodegen.getFinallyAtTarget
(Node node) Get a FINALLY node at a point in the IR.Methods in org.mozilla.javascript.optimizer with parameters of type NodeModifier and TypeMethodDescriptionprivate void
private void
BodyCodegen.addGotoWithReturn
(Node target) private void
BodyCodegen.addLoadPropertyValues
(Node node, Node child, int count) load array with property valuesprivate static Block[]
Block.buildBlocks
(Node[] statementNodes) private static void
Optimizer.buildStatementList_r
(Node node, ObjArray statements) private boolean
Optimizer.convertParameter
(Node n) private void
OptTransformer.detectDirectCall
(Node node, ScriptNode tree) private boolean
Block.doTypeFlow
(OptFunctionNode fn, Node[] statementNodes, int[] varTypes) private static boolean
Block.findDefPoints
(OptFunctionNode fn, Node n, int[] varTypes) private static int
Block.findExpressionType
(OptFunctionNode fn, Node n, int[] varTypes) private Node
BodyCodegen.findNestedYield
(Node node) private void
BodyCodegen.generateArrayLiteralFactory
(Node node, int count) private void
BodyCodegen.generateCallArgArray
(Node node, Node argChild, boolean directCall) private void
BodyCodegen.generateExpression
(Node node, Node parent) private void
BodyCodegen.generateFunctionAndThisObj
(Node node, Node parent) private void
BodyCodegen.generateIfJump
(Node node, Node parent, int trueLabel, int falseLabel) private void
BodyCodegen.generateLocalYieldPoint
(Node node, boolean exprContext) private void
BodyCodegen.generateObjectLiteralFactory
(Node node, int count) private boolean
BodyCodegen.generateSaveLocals
(Node node) private void
BodyCodegen.generateStatement
(Node node) private void
BodyCodegen.generateYieldPoint
(Node node, boolean exprContext) private static Node
BodyCodegen.getFinallyAtTarget
(Node node) Get a FINALLY node at a point in the IR.private static int
BodyCodegen.getLocalBlockRegister
(Node node) private int
BodyCodegen.getNextGeneratorState
(Node node) private int
BodyCodegen.getTargetLabel
(Node target) int
OptFunctionNode.getVarIndex
(Node n) private void
Block.initLiveOnEntrySets
(OptFunctionNode fn, Node[] statementNodes) private void
BodyCodegen.inlineFinally
(Node finallyTarget) private void
BodyCodegen.inlineFinally
(Node finallyTarget, int finallyStart, int finallyEnd) Inline a FINALLY node into the method bytecode.private static boolean
BodyCodegen.isArithmeticNode
(Node node) private void
Block.lookForVariableAccess
(OptFunctionNode fn, Node n) private void
Optimizer.markDCPNumberContext
(Node n) (package private) void
BodyCodegen.ExceptionManager.markInlineFinallyEnd
(Node finallyBlock, int finallyEnd) Mark the end of an inlined finally block.(package private) void
BodyCodegen.ExceptionManager.markInlineFinallyStart
(Node finallyBlock, int finallyStart) Mark the start of an inlined finally block.private int
BodyCodegen.nodeIsDirectCallParameter
(Node node) private static void
Block.reachingDefDataFlow
(OptFunctionNode fn, Node[] statementNodes, Block[] theBlocks, int[] varTypes) private void
Optimizer.rewriteAsObjectChildren
(Node n, Node child) private int
Optimizer.rewriteForNumberVariables
(Node n, int desired) (package private) static void
Block.runFlowAnalyzes
(OptFunctionNode fn, Node[] statementNodes) private static String
private static void
Block.typeFlow
(OptFunctionNode fn, Node[] statementNodes, Block[] theBlocks, int[] varTypes) private void
BodyCodegen.updateLineNumber
(Node node) private void
BodyCodegen.visitArithmetic
(Node node, int type, Node child, Node parent) private void
BodyCodegen.visitArrayLiteral
(Node node, Node child, boolean topLevel) private void
BodyCodegen.visitBitNot
(Node node, Node child) private void
BodyCodegen.visitBitOp
(Node node, int type, Node child) protected void
OptTransformer.visitCall
(Node node, ScriptNode tree) private void
BodyCodegen.visitDotQuery
(Node node, Node child) private void
BodyCodegen.visitExponentiation
(Node node, Node child, Node parent) private void
BodyCodegen.visitGetProp
(Node node, Node child) private void
BodyCodegen.visitGetVar
(Node node) private void
private void
BodyCodegen.visitIfJumpEqOp
(Node node, Node child, int trueGOTO, int falseGOTO) private void
BodyCodegen.visitIfJumpRelOp
(Node node, Node child, int trueGOTO, int falseGOTO) private void
BodyCodegen.visitIncDec
(Node node) protected void
OptTransformer.visitNew
(Node node, ScriptNode tree) private void
BodyCodegen.visitObjectLiteral
(Node node, Node child, boolean topLevel) private void
BodyCodegen.visitOptimizedCall
(Node node, OptFunctionNode target, int type, Node child) private void
BodyCodegen.visitSetConst
(Node node, Node child) private void
BodyCodegen.visitSetConstVar
(Node node, Node child, boolean needValue) private void
BodyCodegen.visitSetElem
(int type, Node node, Node child) private void
BodyCodegen.visitSetName
(Node node, Node child) private void
BodyCodegen.visitSetProp
(int type, Node node, Node child) private void
BodyCodegen.visitSetVar
(Node node, Node child, boolean needValue) private void
BodyCodegen.visitSpecialCall
(Node node, int type, int specialType, Node child) private void
BodyCodegen.visitStandardCall
(Node node, Node child) private void
BodyCodegen.visitStandardNew
(Node node, Node child) private void
BodyCodegen.visitStrictSetName
(Node node, Node child) private void
BodyCodegen.visitSwitch
(Jump switchNode, Node child) private void
BodyCodegen.visitTemplateLiteral
(Node node) private void
BodyCodegen.visitTryCatchFinally
(Jump node, Node child) private void
BodyCodegen.visitTypeofname
(Node node) Constructors in org.mozilla.javascript.optimizer with parameters of type Node