Uses of Class
org.mozilla.javascript.Node
Packages that use Node
Package
Description
-
Uses of Node in org.mozilla.javascript
Classes in org.mozilla.javascript that implement interfaces with type arguments of type NodeModifier and TypeClassDescriptionclassThis class implements the root of the intermediate representation.classIterates over the children of this Node.Fields in org.mozilla.javascript declared as NodeModifier and TypeFieldDescriptionprivate NodeNode.NodeIterator.cursorprotected NodeNode.firstprotected NodeNode.lastprotected NodeNode.nextprivate static final NodeNode.NOT_SETprivate NodeNode.NodeIterator.prevprivate NodeNode.NodeIterator.prev2Methods in org.mozilla.javascript that return NodeModifier and TypeMethodDescriptionprivate static NodeNodeTransformer.addBeforeCurrent(Node parent, Node previous, Node current, Node toAdd) private NodeIRFactory.arrayCompTransformHelper(ArrayComprehension node, String arrayName) private NodeIRFactory.createAssignment(int assignType, Node left, Node right) private static NodeIRFactory.createBinary(int nodeType, Node left, Node right) private NodeIRFactory.createCallOrNew(int nodeType, Node child) private NodeIRFactory.createCatch(String varName, Node catchCond, Node stmts, int lineno) Catch clause of try/catch/finallyprivate static NodeIRFactory.createCondExpr(Node cond, Node ifTrue, Node ifFalse) (package private) NodeParser.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 NodeIRFactory.createElementGet(Node target, String namespace, Node elem, int memberTypeFlags) private static NodeIRFactory.createExprStatementNoReturn(Node expr, int lineno) private static Nodeprivate NodeIRFactory.createForIn(int declType, Node loop, Node lhs, Node obj, Node body, boolean isForEach, boolean isForOf) Generate IR for a for..in loop.private static Nodeprivate static NodeIRFactory.createIncDec(int nodeType, boolean post, Node child) private static Nodeprivate NodeIRFactory.createMemberRefGet(Node target, String namespace, Node elem, int memberTypeFlags) protected NodeParser.createName(int type, String name, Node child) protected NodeParser.createName(String name) protected NodeParser.createNumber(double number) private NodeIRFactory.createPropertyGet(Node target, String namespace, String name, int memberTypeFlags) private static NodeIRFactory.createString(String string) private NodeIRFactory.createTryCatchFinally(Node tryBlock, Node catchBlocks, Node finallyBlock, int lineno) Try/Catch/Finallyprivate static NodeIRFactory.createUnary(int nodeType, Node child) private static NodeIRFactory.createUseLocal(Node localBlock) private NodeIRFactory.createWith(Node obj, Node body, int lineno) (package private) NodeIRFactory.decompileFunctionHeader(FunctionNode fn) (package private) NodeParser.destructuringAssignmentHelper(int variableType, Node left, Node right, String tempName) private NodeIRFactory.genExprTransformHelper(GeneratorExpression node) Node.getChildBefore(Node child) Node.getFirstChild()Node.getLastChild()Node.getLastSibling()Node.getNext()private static NodeIRFactory.initFunction(FunctionNode fnNode, int functionIndex, Node statements, int functionType) private static NodeIRFactory.makeReference(Node node) static NodeNode.newNumber(double number) static Nodestatic Nodestatic NodeNode.newTarget()Node.NodeIterator.next()private static NodeNodeTransformer.replaceCurrent(Node parent, Node previous, Node current, Node replacement) Node.setType(int type) Sets the node type and returns this node.protected NodeParser.simpleAssignment(Node left, Node right) private NodeIRFactory.transformArrayComp(ArrayComprehension node) private NodeIRFactory.transformArrayLiteral(ArrayLiteral node) private NodeIRFactory.transformAssignment(Assignment node) private NodeIRFactory.transformBigInt(BigIntLiteral node) private NodeIRFactory.transformBlock(AstNode node) private NodeIRFactory.transformBreak(BreakStatement node) private NodeIRFactory.transformCondExpr(ConditionalExpression node) private NodeIRFactory.transformContinue(ContinueStatement node) private NodeIRFactory.transformDefaultXmlNamepace(UnaryExpression node) private NodeIRFactory.transformDoLoop(DoLoop loop) private NodeIRFactory.transformElementGet(ElementGet node) private NodeIRFactory.transformExprStmt(ExpressionStatement node) private NodeIRFactory.transformForInLoop(ForInLoop loop) private NodeIRFactory.transformForLoop(ForLoop loop) private NodeIRFactory.transformFunction(FunctionNode fn) private NodeIRFactory.transformFunctionCall(FunctionCall node) private NodeIRFactory.transformGenExpr(GeneratorExpression node) private NodeIRFactory.transformIf(IfStatement n) private NodeIRFactory.transformInfix(InfixExpression node) private NodeIRFactory.transformLabeledStatement(LabeledStatement ls) private NodeIRFactory.transformLetNode(LetNode node) private NodeIRFactory.transformLiteral(AstNode node) private NodeIRFactory.transformName(Name node) private NodeIRFactory.transformNewExpr(NewExpression node) private NodeIRFactory.transformNumber(NumberLiteral node) private NodeIRFactory.transformObjectLiteral(ObjectLiteral node) private NodeIRFactory.transformParenExpr(ParenthesizedExpression node) private NodeIRFactory.transformPropertyGet(PropertyGet node) private NodeIRFactory.transformRegExp(RegExpLiteral node) private NodeIRFactory.transformReturn(ReturnStatement node) private NodeIRFactory.transformScript(ScriptNode node) private NodeIRFactory.transformString(StringLiteral node) private NodeIRFactory.transformSwitch(SwitchStatement node) private NodeIRFactory.transformTemplateLiteral(TemplateLiteral node) private NodeIRFactory.transformTemplateLiteralCall(TaggedTemplateLiteral node) private NodeIRFactory.transformThrow(ThrowStatement node) private NodeIRFactory.transformTry(TryStatement node) private NodeIRFactory.transformUnary(UnaryExpression node) private NodeIRFactory.transformUpdate(UpdateExpression node) private NodeIRFactory.transformVariableInitializers(VariableDeclaration node) private NodeIRFactory.transformVariables(VariableDeclaration node) private NodeIRFactory.transformWhileLoop(WhileLoop loop) private NodeIRFactory.transformWith(WithStatement node) private NodeIRFactory.transformXmlLiteral(XmlLiteral node) private NodeIRFactory.transformXmlMemberGet(XmlMemberGet node) private NodeIRFactory.transformXmlRef(XmlRef node) private NodeIRFactory.transformXmlRef(Node pn, XmlRef node, int memberTypeFlags) private NodeIRFactory.transformYield(Yield node) protected NodeMethods in org.mozilla.javascript that return types with arguments of type NodeMethods in org.mozilla.javascript with parameters of type NodeModifier and TypeMethodDescriptionprivate static NodeNodeTransformer.addBeforeCurrent(Node parent, Node previous, Node current, Node toAdd) 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) private voidprivate static voidIRFactory.addSwitchCase(Node switchBlock, Node caseExpression, Node statements) If caseExpression argument is null it indicates a default label.private static voidNode.appendPrintId(Node n, ObjToIntMap printIds, StringBuilder sb) private static RuntimeExceptionprotected voidParser.checkMutableReference(Node n) private static voidIRFactory.closeSwitch(Node switchBlock) private NodeIRFactory.createAssignment(int assignType, Node left, Node right) private static NodeIRFactory.createBinary(int nodeType, Node left, Node right) private NodeIRFactory.createCallOrNew(int nodeType, Node child) private NodeIRFactory.createCatch(String varName, Node catchCond, Node stmts, int lineno) Catch clause of try/catch/finallyprivate static NodeIRFactory.createCondExpr(Node cond, Node ifTrue, Node ifFalse) (package private) NodeParser.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 NodeIRFactory.createElementGet(Node target, String namespace, Node elem, int memberTypeFlags) private static NodeIRFactory.createExprStatementNoReturn(Node expr, int lineno) private static Nodeprivate NodeIRFactory.createForIn(int declType, Node loop, Node lhs, Node obj, Node body, boolean isForEach, boolean isForOf) Generate IR for a for..in loop.private static Nodeprivate static NodeIRFactory.createIncDec(int nodeType, boolean post, Node child) private static Nodeprivate ScopeIRFactory.createLoopNode(Node loopLabel, int lineno) Create loop node.private NodeIRFactory.createMemberRefGet(Node target, String namespace, Node elem, int memberTypeFlags) protected NodeParser.createName(int type, String name, Node child) private NodeIRFactory.createPropertyGet(Node target, String namespace, String name, int memberTypeFlags) private NodeIRFactory.createTryCatchFinally(Node tryBlock, Node catchBlocks, Node finallyBlock, int lineno) Try/Catch/Finallyprivate static NodeIRFactory.createUnary(int nodeType, Node child) private static NodeIRFactory.createUseLocal(Node localBlock) private NodeIRFactory.createWith(Node obj, Node body, int lineno) (package private) booleanParser.destructuringArray(ArrayLiteral array, int variableType, String tempName, Node parent, List<String> destructuringNames) (package private) NodeParser.destructuringAssignmentHelper(int variableType, Node left, Node right, String tempName) (package private) booleanParser.destructuringObject(ObjectLiteral node, int variableType, String tempName, Node parent, List<String> destructuringNames) private voidCodeGenerator.generateCallFunAndThis(Node left) private voidCodeGenerator.generateICodeFromTree(Node tree) private static voidNode.generatePrintIds(Node n, ObjToIntMap map) Node.getChildBefore(Node child) private static intCodeGenerator.getLocalBlockRef(Node node) private ObjectIRFactory.getPropKey(Node id) private intCodeGenerator.getTargetLabel(Node target) private static NodeIRFactory.initFunction(FunctionNode fnNode, int functionIndex, Node statements, int functionType) private static intIRFactory.isAlwaysDefinedBoolean(Node node) (package private) booleanIRFactory.isDestructuring(Node n) private static Jumpprivate static NodeIRFactory.makeReference(Node node) private voidCodeGenerator.markTargetLabel(Node target) voidNode.removeChild(Node child) voidNode.replaceChild(Node child, Node newChild) voidNode.replaceChildAfter(Node prevChild, Node newChild) private static NodeNodeTransformer.replaceCurrent(Node parent, Node previous, Node current, Node replacement) protected NodeParser.simpleAssignment(Node left, Node right) private static voidNode.toStringTreeHelper(ScriptNode treeTop, Node n, ObjToIntMap printIds, int level, StringBuilder sb) private voidNodeTransformer.transformCompilationUnit_r(ScriptNode tree, Node parent, Scope scope, boolean createScopeObjects, boolean inStrictMode) private NodeIRFactory.transformXmlRef(Node pn, XmlRef node, int memberTypeFlags) private voidCodeGenerator.updateLineNumber(Node node) private voidCodeGenerator.visitArrayComprehension(Node node, Node initStmt, Node expr) protected voidNodeTransformer.visitCall(Node node, ScriptNode tree) private voidCodeGenerator.visitExpression(Node node, int contextFlags) private voidCodeGenerator.visitIncDec(Node node, Node child) protected Nodeprivate voidCodeGenerator.visitLiteral(Node node, Node child) protected voidNodeTransformer.visitNew(Node node, ScriptNode tree) private voidCodeGenerator.visitStatement(Node node, int initialStackDepth) private voidCodeGenerator.visitTemplateLiteral(Node node) Method parameters in org.mozilla.javascript with type arguments of type NodeModifier and TypeMethodDescriptionprivate voidParser.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 TypeClassDescriptionclassAST node for a JavaScript 1.7 Array comprehension.classAST node for a single 'for (foo in bar)' loop construct in a JavaScript 1.7 Array comprehension.classAST node for an Array literal.classAST node representing the set of assignment operators such as=,*=and+=.classBase class for AST node types.classNode for the root of a parse tree.classAST node for a BigInt literal.classA block statement delimited by curly braces.classA break statement.classNode representing a catch-clause of a try-statement.classNode representing comments.classAST node representing the ternary operator.classA continue statement.classDo statement.classAST node for an indexed property reference, such asfoo['bar']orfoo[2].classAST node for an empty expression.classAST node for an empty statement.classAST node representing a parse error or a warning.classAST node representing an expression in a statement context.classFor-in or for-each-in or for-of statement.classC-style for-loop statement.classAST node for a function call.classA JavaScript function declaration or expression.classclassclassIf-else statement.classAST node representing an infix (binary operator) expression.classUsed for code generation.classAST node for keyword literals: currently,this,null,true,false, anddebugger.classAST node representing a label.classA labeled statement.classAST node for let statements and expressions.classAbstract base type for loops.classAST node for a simple name.classNew expression.classAST node for a Number literal.classAST node for an Object literal (also called an Object initialiser in Ecma-262).classAST node for a single name:value entry in an Object literal.classAST node for a parenthesized expression.classAST node for the '.' operator.classAST node for a RegExp literal.classReturn statement.classRepresents a scope in the lexical scope chain.classBase type forAstRootandFunctionNodenodes, which need to collect much of the same information.classAST node for a single- or double-quoted string literal.classSwitch-case AST node type.classSwitch statement AST node type.classAST node for a Tagged Template Literal.classAST node for Template Literal Characters.classAST node for a Template literal.classThrow statement.classTry/catch/finally statement.classAST node representing unary operators such astypeofanddelete.classAST node representing update operators such as++.classA list of one or more var, const or let declarations.classA variable declaration or initializer, part of aVariableDeclarationexpression.classWhile statement.classWith statement.classAST node representing an E4Xfoo.(bar)query expression.classAST node for an E4X XML[expr]member-ref expression.classAST node for an embedded JavaScript expression within an E4X XML literal.classAbstract base type for components that comprise anXmlLiteralobject.classAST node for an E4X (Ecma-357) embedded XML literal.classAST node for E4X ".@" and ".." expressions, such asfoo..bar,foo..@bar,@foo.@bar, andfoo..@ns::*.classAST node for an E4X XML[expr]property-ref expression.classBase class for E4X XML attribute-access or property-get expressions.classAST node for an XML-text-only component of an XML literal expression.classAST node for JavaScript 1.7yieldexpression 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 TypeMethodDescriptionvoidFunctionNode.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) voidSets 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) NodeBodyCodegen.ExceptionManager.ExceptionInfo.currentFinally(package private) NodeBodyCodegen.ExceptionManager.ExceptionInfo.finallyBlockFields in org.mozilla.javascript.optimizer with type parameters of type NodeModifier and TypeFieldDescriptionprivate Map<Node, BodyCodegen.FinallyReturnPoint> BodyCodegen.finallysBodyCodegen.literalsprivate IdentityHashMap<Node, String> BodyCodegen.unnestedYieldsMethods in org.mozilla.javascript.optimizer that return NodeModifier and TypeMethodDescriptionprivate NodeBodyCodegen.findNestedYield(Node node) private static NodeBodyCodegen.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 voidprivate voidBodyCodegen.addGotoWithReturn(Node target) private voidBodyCodegen.addLoadPropertyValues(Node node, Node child, int count) load array with property valuesprivate static Block[]Block.buildBlocks(Node[] statementNodes) private static voidOptimizer.buildStatementList_r(Node node, ObjArray statements) private booleanOptimizer.convertParameter(Node n) private voidOptTransformer.detectDirectCall(Node node, ScriptNode tree) private booleanBlock.doTypeFlow(OptFunctionNode fn, Node[] statementNodes, int[] varTypes) private static booleanBlock.findDefPoints(OptFunctionNode fn, Node n, int[] varTypes) private static intBlock.findExpressionType(OptFunctionNode fn, Node n, int[] varTypes) private NodeBodyCodegen.findNestedYield(Node node) private voidBodyCodegen.generateArrayLiteralFactory(Node node, int count) private voidBodyCodegen.generateCallArgArray(Node node, Node argChild, boolean directCall) private voidBodyCodegen.generateExpression(Node node, Node parent) private voidBodyCodegen.generateFunctionAndThisObj(Node node, Node parent) private voidBodyCodegen.generateIfJump(Node node, Node parent, int trueLabel, int falseLabel) private voidBodyCodegen.generateLocalYieldPoint(Node node, boolean exprContext) private voidBodyCodegen.generateObjectLiteralFactory(Node node, int count) private booleanBodyCodegen.generateSaveLocals(Node node) private voidBodyCodegen.generateStatement(Node node) private voidBodyCodegen.generateYieldPoint(Node node, boolean exprContext) private static NodeBodyCodegen.getFinallyAtTarget(Node node) Get a FINALLY node at a point in the IR.private static intBodyCodegen.getLocalBlockRegister(Node node) private intBodyCodegen.getNextGeneratorState(Node node) private intBodyCodegen.getTargetLabel(Node target) intOptFunctionNode.getVarIndex(Node n) private voidBlock.initLiveOnEntrySets(OptFunctionNode fn, Node[] statementNodes) private voidBodyCodegen.inlineFinally(Node finallyTarget) private voidBodyCodegen.inlineFinally(Node finallyTarget, int finallyStart, int finallyEnd) Inline a FINALLY node into the method bytecode.private static booleanBodyCodegen.isArithmeticNode(Node node) private voidBlock.lookForVariableAccess(OptFunctionNode fn, Node n) private voidOptimizer.markDCPNumberContext(Node n) (package private) voidBodyCodegen.ExceptionManager.markInlineFinallyEnd(Node finallyBlock, int finallyEnd) Mark the end of an inlined finally block.(package private) voidBodyCodegen.ExceptionManager.markInlineFinallyStart(Node finallyBlock, int finallyStart) Mark the start of an inlined finally block.private intBodyCodegen.nodeIsDirectCallParameter(Node node) private static voidBlock.reachingDefDataFlow(OptFunctionNode fn, Node[] statementNodes, Block[] theBlocks, int[] varTypes) private voidOptimizer.rewriteAsObjectChildren(Node n, Node child) private intOptimizer.rewriteForNumberVariables(Node n, int desired) (package private) static voidBlock.runFlowAnalyzes(OptFunctionNode fn, Node[] statementNodes) private static Stringprivate static voidBlock.typeFlow(OptFunctionNode fn, Node[] statementNodes, Block[] theBlocks, int[] varTypes) private voidBodyCodegen.updateLineNumber(Node node) private voidBodyCodegen.visitArithmetic(Node node, int type, Node child, Node parent) private voidBodyCodegen.visitArrayLiteral(Node node, Node child, boolean topLevel) private voidBodyCodegen.visitBitNot(Node node, Node child) private voidBodyCodegen.visitBitOp(Node node, int type, Node child) protected voidOptTransformer.visitCall(Node node, ScriptNode tree) private voidBodyCodegen.visitDotQuery(Node node, Node child) private voidBodyCodegen.visitExponentiation(Node node, Node child, Node parent) private voidBodyCodegen.visitGetProp(Node node, Node child) private voidBodyCodegen.visitGetVar(Node node) private voidprivate voidBodyCodegen.visitIfJumpEqOp(Node node, Node child, int trueGOTO, int falseGOTO) private voidBodyCodegen.visitIfJumpRelOp(Node node, Node child, int trueGOTO, int falseGOTO) private voidBodyCodegen.visitIncDec(Node node) protected voidOptTransformer.visitNew(Node node, ScriptNode tree) private voidBodyCodegen.visitObjectLiteral(Node node, Node child, boolean topLevel) private voidBodyCodegen.visitOptimizedCall(Node node, OptFunctionNode target, int type, Node child) private voidBodyCodegen.visitSetConst(Node node, Node child) private voidBodyCodegen.visitSetConstVar(Node node, Node child, boolean needValue) private voidBodyCodegen.visitSetElem(int type, Node node, Node child) private voidBodyCodegen.visitSetName(Node node, Node child) private voidBodyCodegen.visitSetProp(int type, Node node, Node child) private voidBodyCodegen.visitSetVar(Node node, Node child, boolean needValue) private voidBodyCodegen.visitSpecialCall(Node node, int type, int specialType, Node child) private voidBodyCodegen.visitStandardCall(Node node, Node child) private voidBodyCodegen.visitStandardNew(Node node, Node child) private voidBodyCodegen.visitStrictSetName(Node node, Node child) private voidBodyCodegen.visitSwitch(Jump switchNode, Node child) private voidBodyCodegen.visitTemplateLiteral(Node node) private voidBodyCodegen.visitTryCatchFinally(Jump node, Node child) private voidBodyCodegen.visitTypeofname(Node node) Constructors in org.mozilla.javascript.optimizer with parameters of type Node