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 NodeNode. firstprotected NodeNode. lastprotected NodeNode. nextMethods in org.mozilla.javascript that return Node Modifier and Type Method Description protected NodeParser. createName(int type, java.lang.String name, Node child)protected NodeParser. createName(java.lang.String name)protected NodeParser. createNumber(double number)NodeNode. getChildBefore(Node child)NodeNode. getFirstChild()NodeNode. getLastChild()NodeNode. getLastSibling()NodeNode. getNext()static NodeNode. newNumber(double number)static NodeNode. newString(int type, java.lang.String str)static NodeNode. newString(java.lang.String str)static NodeNode. newTarget()NodeNode.NodeIterator. next()NodeNode. setType(int type)Sets the node type and returns this node.protected NodeParser. simpleAssignment(Node left, Node right)NodeIRFactory. transform(AstNode node)protected NodeNodeTransformer. 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 anIteratorover the node's children.Methods in org.mozilla.javascript with parameters of type Node Modifier and Type Method Description voidNode. addChildAfter(Node newChild, Node node)Add 'child' after 'node'.voidNode. addChildBefore(Node newChild, Node node)Add 'child' before 'node'.voidNode. addChildrenToBack(Node children)voidNode. addChildrenToFront(Node children)voidNode. addChildToBack(Node child)voidNode. addChildToFront(Node child)protected voidParser. checkMutableReference(Node n)protected NodeParser. createName(int type, java.lang.String name, Node child)NodeNode. getChildBefore(Node child)voidNode. removeChild(Node child)voidNode. replaceChild(Node child, Node newChild)voidNode. replaceChildAfter(Node prevChild, Node newChild)protected NodeParser. simpleAssignment(Node left, Node right)protected voidNodeTransformer. visitCall(Node node, ScriptNode tree)protected NodeNodeTransformer. visitLet(boolean createWith, Node parent, Node previous, Node scopeNode)protected voidNodeTransformer. 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 classArrayComprehensionAST node for a JavaScript 1.7 Array comprehension.classArrayComprehensionLoopAST node for a single 'for (foo in bar)' loop construct in a JavaScript 1.7 Array comprehension.classArrayLiteralAST node for an Array literal.classAssignmentAST node representing the set of assignment operators such as=,*=and+=.classAstNodeBase class for AST node types.classAstRootNode for the root of a parse tree.classBigIntLiteralAST node for a BigInt literal.classBlockA block statement delimited by curly braces.classBreakStatementA break statement.classCatchClauseNode representing a catch-clause of a try-statement.classCommentNode representing comments.classConditionalExpressionAST node representing the ternary operator.classContinueStatementA continue statement.classDoLoopDo statement.classElementGetAST node for an indexed property reference, such asfoo['bar']orfoo[2].classEmptyExpressionAST node for an empty expression.classEmptyStatementAST node for an empty statement.classErrorNodeAST node representing a parse error or a warning.classExpressionStatementAST node representing an expression in a statement context.classForInLoopFor-in or for-each-in or for-of statement.classForLoopC-style for-loop statement.classFunctionCallAST node for a function call.classFunctionNodeA JavaScript function declaration or expression.classGeneratorExpressionclassGeneratorExpressionLoopclassIfStatementIf-else statement.classInfixExpressionAST node representing an infix (binary operator) expression.classJumpUsed for code generation.classKeywordLiteralAST node for keyword literals: currently,this,null,true,false, anddebugger.classLabelAST node representing a label.classLabeledStatementA labeled statement.classLetNodeAST node for let statements and expressions.classLoopAbstract base type for loops.classNameAST node for a simple name.classNewExpressionNew expression.classNumberLiteralAST node for a Number literal.classObjectLiteralAST node for an Object literal (also called an Object initialiser in Ecma-262).classObjectPropertyAST node for a single name:value entry in an Object literal.classParenthesizedExpressionAST node for a parenthesized expression.classPropertyGetAST node for the '.' operator.classRegExpLiteralAST node for a RegExp literal.classReturnStatementReturn statement.classScopeRepresents a scope in the lexical scope chain.classScriptNodeBase type forAstRootandFunctionNodenodes, which need to collect much of the same information.classStringLiteralAST node for a single- or double-quoted string literal.classSwitchCaseSwitch-case AST node type.classSwitchStatementSwitch statement AST node type.classTaggedTemplateLiteralAST node for a Tagged Template Literal.classTemplateCharactersAST node for Template Literal Characters.classTemplateLiteralAST node for a Template literal.classThrowStatementThrow statement.classTryStatementTry/catch/finally statement.classUnaryExpressionAST node representing unary operators such astypeofanddelete.classUpdateExpressionAST node representing update operators such as++.classVariableDeclarationA list of one or more var, const or let declarations.classVariableInitializerA variable declaration or initializer, part of aVariableDeclarationexpression.classWhileLoopWhile statement.classWithStatementWith statement.classXmlDotQueryAST node representing an E4Xfoo.(bar)query expression.classXmlElemRefAST node for an E4X XML[expr]member-ref expression.classXmlExpressionAST node for an embedded JavaScript expression within an E4X XML literal.classXmlFragmentAbstract base type for components that comprise anXmlLiteralobject.classXmlLiteralAST node for an E4X (Ecma-357) embedded XML literal.classXmlMemberGetAST node for E4X ".@" and ".." expressions, such asfoo..bar,foo..@bar,@foo.@bar, andfoo..@ns::*.classXmlPropRefAST node for an E4X XML[expr]property-ref expression.classXmlRefBase class for E4X XML attribute-access or property-get expressions.classXmlStringAST node for an XML-text-only component of an XML literal expression.classYieldAST node for JavaScript 1.7yieldexpression or statement.Fields in org.mozilla.javascript.ast declared as Node Modifier and Type Field Description NodeJump. targetMethods in org.mozilla.javascript.ast that return Node Modifier and Type Method Description NodeJump. getContinue()NodeJump. getDefault()NodeJump. getFinally()NodeSymbol. getNode()Returns the node associated with this identifierNodeVariableDeclaration. 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 voidFunctionNode. addLiveLocals(Node node, int[] locals)voidFunctionNode. addResumptionPoint(Node target)intScriptNode. getIndexForNameNode(Node nameNode)voidJump. setContinue(Node continueTarget)voidJump. setDefault(Node defaultTarget)voidJump. setFinally(Node finallyTarget)voidSymbol. 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 intOptFunctionNode. getVarIndex(Node n)
-