Uses of Interface
org.mozilla.javascript.ast.NodeVisitor
Packages that use NodeVisitor
-
Uses of NodeVisitor in org.mozilla.javascript.ast
Classes in org.mozilla.javascript.ast that implement NodeVisitorMethods in org.mozilla.javascript.ast with parameters of type NodeVisitorModifier and TypeMethodDescriptionvoidArrayComprehension.visit(NodeVisitor v) Visits this node, the result expression, the loops, and the optional filter.voidArrayComprehensionLoop.visit(NodeVisitor v) Visits the iterator expression and the iterated object expression.voidArrayLiteral.visit(NodeVisitor v) Visits this node, then visits its element expressions in order.abstract voidAstNode.visit(NodeVisitor visitor) Visits this node and its children in an arbitrary order.voidBigIntLiteral.visit(NodeVisitor v) Visits this node.voidBlock.visit(NodeVisitor v) voidBreakStatement.visit(NodeVisitor v) Visits this node, then visits the break label if non-null.voidCatchClause.visit(NodeVisitor v) Visits this node, the catch var name node, the condition if non-null, and the catch body.voidComment.visit(NodeVisitor v) Comment nodes are not visited during normal visitor traversals, but comply with theAstNode.visit(org.mozilla.javascript.ast.NodeVisitor)interface.voidComputedPropertyKey.visit(NodeVisitor v) Visits this node, then the expression.voidConditionalExpression.visit(NodeVisitor v) Visits this node, then the test-expression, the true-expression, and the false-expression.voidContinueStatement.visit(NodeVisitor v) Visits this node, then visits the label if non-null.voidDoLoop.visit(NodeVisitor v) Visits this node, the body, and then the while-expression.voidElementGet.visit(NodeVisitor v) Visits this node, the target, and the index expression.voidEmptyExpression.visit(NodeVisitor v) Visits this node.voidEmptyStatement.visit(NodeVisitor v) Visits this node.voidErrorNode.visit(NodeVisitor v) Error nodes are not visited during normal visitor traversals, but comply with theAstNode.visit(org.mozilla.javascript.ast.NodeVisitor)interface.voidExpressionStatement.visit(NodeVisitor v) Visits this node, then the wrapped statement.voidForInLoop.visit(NodeVisitor v) Visits this node, the iterator, the iterated object, and the body.voidForLoop.visit(NodeVisitor v) Visits this node, the initializer expression, the loop condition expression, the increment expression, and then the loop body.voidFunctionCall.visit(NodeVisitor v) Visits this node, the target object, and the arguments.voidFunctionNode.visit(NodeVisitor v) Visits this node, the function name node if supplied, the parameters, and the body.voidGeneratorExpression.visit(NodeVisitor v) Visits this node, the result expression, the loops, and the optional filter.voidGeneratorExpressionLoop.visit(NodeVisitor v) Visits the iterator expression and the iterated object expression.voidIfStatement.visit(NodeVisitor v) Visits this node, the condition, the then-part, and if supplied, the else-part.voidInfixExpression.visit(NodeVisitor v) Visits this node, the left operand, and the right operand.voidJump.visit(NodeVisitor visitor) Jumps are only used directly during code generation, and do not support this interface.voidKeywordLiteral.visit(NodeVisitor v) Visits this node.voidLabel.visit(NodeVisitor v) Visits this label.voidLabeledStatement.visit(NodeVisitor v) Visits this node, then each label in the label-list, and finally the statement.voidLetNode.visit(NodeVisitor v) Visits this node, the variable list, and if present, the body expression or statement.voidName.visit(NodeVisitor v) Visits this node.voidNewExpression.visit(NodeVisitor v) Visits this node, the target, and each argument.voidNumberLiteral.visit(NodeVisitor v) Visits this node.voidObjectLiteral.visit(NodeVisitor v) Visits this node, then visits each child property node, in lexical (source) order.voidParenthesizedExpression.visit(NodeVisitor v) Visits this node, then the child expression.voidPropertyGet.visit(NodeVisitor v) Visits this node, the target expression, and the property name.voidRegExpLiteral.visit(NodeVisitor v) Visits this node.voidReturnStatement.visit(NodeVisitor v) Visits this node, then the return value if specified.voidScope.visit(NodeVisitor v) voidScriptNode.visit(NodeVisitor v) voidStringLiteral.visit(NodeVisitor v) Visits this node.voidSwitchCase.visit(NodeVisitor v) Visits this node, then the case expression if present, then each statement (if any are specified).voidSwitchStatement.visit(NodeVisitor v) Visits this node, then the switch-expression, then the cases in lexical order.voidTaggedTemplateLiteral.visit(NodeVisitor v) Visits this node.voidTemplateCharacters.visit(NodeVisitor v) Visits this node.voidTemplateLiteral.visit(NodeVisitor v) Visits this node.voidThrowStatement.visit(NodeVisitor v) Visits this node, then the thrown expression.voidTryStatement.visit(NodeVisitor v) Visits this node, then the try-block, then any catch clauses, and then any finally block.voidUnaryExpression.visit(NodeVisitor v) Visits this node, then the operand.voidUpdateExpression.visit(NodeVisitor v) Visits this node, then the operand.voidVariableDeclaration.visit(NodeVisitor v) Visits this node, then eachVariableInitializerchild.voidVariableInitializer.visit(NodeVisitor v) Visits this node, then the target expression, then the initializer expression if present.voidWhileLoop.visit(NodeVisitor v) Visits this node, the condition, then the body.voidWithStatement.visit(NodeVisitor v) Visits this node, then the with-object, then the body statement.voidXmlElemRef.visit(NodeVisitor v) Visits this node, then the namespace if provided, then the index expression.voidXmlExpression.visit(NodeVisitor v) Visits this node, then the child expression.voidXmlLiteral.visit(NodeVisitor v) Visits this node, then visits each child fragment in lexical order.voidXmlPropRef.visit(NodeVisitor v) Visits this node, then the namespace if present, then the property name.voidXmlString.visit(NodeVisitor v) Visits this node.voidYield.visit(NodeVisitor v) Visits this node, and if present, the yielded value.voidAstRoot.visitAll(NodeVisitor visitor) Visits the AST nodes, then the comment nodes.voidAstRoot.visitComments(NodeVisitor visitor) Visits the comment nodes in the order they appear in the source code.