Uses of Interface
org.mozilla.javascript.ast.NodeVisitor

Packages that use NodeVisitor
Package
Description
 
  • Uses of NodeVisitor in org.mozilla.javascript.ast

    Classes in org.mozilla.javascript.ast that implement NodeVisitor
    Modifier and Type
    Class
    Description
    protected static class 
     
    Methods in org.mozilla.javascript.ast with parameters of type NodeVisitor
    Modifier and Type
    Method
    Description
    void
    ArrayComprehension.visit(NodeVisitor v)
    Visits this node, the result expression, the loops, and the optional filter.
    void
    ArrayComprehensionLoop.visit(NodeVisitor v)
    Visits the iterator expression and the iterated object expression.
    void
    ArrayLiteral.visit(NodeVisitor v)
    Visits this node, then visits its element expressions in order.
    abstract void
    AstNode.visit(NodeVisitor visitor)
    Visits this node and its children in an arbitrary order.
    void
    BigIntLiteral.visit(NodeVisitor v)
    Visits this node.
    void
    Block.visit(NodeVisitor v)
     
    void
    BreakStatement.visit(NodeVisitor v)
    Visits this node, then visits the break label if non-null.
    void
    CatchClause.visit(NodeVisitor v)
    Visits this node, the catch var name node, the condition if non-null, and the catch body.
    void
    Comment.visit(NodeVisitor v)
    Comment nodes are not visited during normal visitor traversals, but comply with the AstNode.visit(org.mozilla.javascript.ast.NodeVisitor) interface.
    void
    ComputedPropertyKey.visit(NodeVisitor v)
    Visits this node, then the expression.
    void
    ConditionalExpression.visit(NodeVisitor v)
    Visits this node, then the test-expression, the true-expression, and the false-expression.
    void
    ContinueStatement.visit(NodeVisitor v)
    Visits this node, then visits the label if non-null.
    void
    DoLoop.visit(NodeVisitor v)
    Visits this node, the body, and then the while-expression.
    void
    ElementGet.visit(NodeVisitor v)
    Visits this node, the target, and the index expression.
    void
    EmptyExpression.visit(NodeVisitor v)
    Visits this node.
    void
    EmptyStatement.visit(NodeVisitor v)
    Visits this node.
    void
    ErrorNode.visit(NodeVisitor v)
    Error nodes are not visited during normal visitor traversals, but comply with the AstNode.visit(org.mozilla.javascript.ast.NodeVisitor) interface.
    void
    ExpressionStatement.visit(NodeVisitor v)
    Visits this node, then the wrapped statement.
    void
    ForInLoop.visit(NodeVisitor v)
    Visits this node, the iterator, the iterated object, and the body.
    void
    ForLoop.visit(NodeVisitor v)
    Visits this node, the initializer expression, the loop condition expression, the increment expression, and then the loop body.
    void
    FunctionCall.visit(NodeVisitor v)
    Visits this node, the target object, and the arguments.
    void
    FunctionNode.visit(NodeVisitor v)
    Visits this node, the function name node if supplied, the parameters, and the body.
    void
    GeneratorExpression.visit(NodeVisitor v)
    Visits this node, the result expression, the loops, and the optional filter.
    void
    GeneratorExpressionLoop.visit(NodeVisitor v)
    Visits the iterator expression and the iterated object expression.
    void
    IfStatement.visit(NodeVisitor v)
    Visits this node, the condition, the then-part, and if supplied, the else-part.
    void
    InfixExpression.visit(NodeVisitor v)
    Visits this node, the left operand, and the right operand.
    void
    Jump.visit(NodeVisitor visitor)
    Jumps are only used directly during code generation, and do not support this interface.
    void
    KeywordLiteral.visit(NodeVisitor v)
    Visits this node.
    void
    Label.visit(NodeVisitor v)
    Visits this label.
    void
    LabeledStatement.visit(NodeVisitor v)
    Visits this node, then each label in the label-list, and finally the statement.
    void
    LetNode.visit(NodeVisitor v)
    Visits this node, the variable list, and if present, the body expression or statement.
    void
    Visits this node.
    void
    NewExpression.visit(NodeVisitor v)
    Visits this node, the target, and each argument.
    void
    NumberLiteral.visit(NodeVisitor v)
    Visits this node.
    void
    ObjectLiteral.visit(NodeVisitor v)
    Visits this node, then visits each child property node, in lexical (source) order.
    void
    ParenthesizedExpression.visit(NodeVisitor v)
    Visits this node, then the child expression.
    void
    PropertyGet.visit(NodeVisitor v)
    Visits this node, the target expression, and the property name.
    void
    RegExpLiteral.visit(NodeVisitor v)
    Visits this node.
    void
    ReturnStatement.visit(NodeVisitor v)
    Visits this node, then the return value if specified.
    void
    Scope.visit(NodeVisitor v)
     
    void
    ScriptNode.visit(NodeVisitor v)
     
    void
    StringLiteral.visit(NodeVisitor v)
    Visits this node.
    void
    SwitchCase.visit(NodeVisitor v)
    Visits this node, then the case expression if present, then each statement (if any are specified).
    void
    SwitchStatement.visit(NodeVisitor v)
    Visits this node, then the switch-expression, then the cases in lexical order.
    void
    TaggedTemplateLiteral.visit(NodeVisitor v)
    Visits this node.
    void
    TemplateCharacters.visit(NodeVisitor v)
    Visits this node.
    void
    TemplateLiteral.visit(NodeVisitor v)
    Visits this node.
    void
    ThrowStatement.visit(NodeVisitor v)
    Visits this node, then the thrown expression.
    void
    TryStatement.visit(NodeVisitor v)
    Visits this node, then the try-block, then any catch clauses, and then any finally block.
    void
    UnaryExpression.visit(NodeVisitor v)
    Visits this node, then the operand.
    void
    UpdateExpression.visit(NodeVisitor v)
    Visits this node, then the operand.
    void
    VariableDeclaration.visit(NodeVisitor v)
    Visits this node, then each VariableInitializer child.
    void
    VariableInitializer.visit(NodeVisitor v)
    Visits this node, then the target expression, then the initializer expression if present.
    void
    WhileLoop.visit(NodeVisitor v)
    Visits this node, the condition, then the body.
    void
    WithStatement.visit(NodeVisitor v)
    Visits this node, then the with-object, then the body statement.
    void
    XmlElemRef.visit(NodeVisitor v)
    Visits this node, then the namespace if provided, then the index expression.
    void
    XmlExpression.visit(NodeVisitor v)
    Visits this node, then the child expression.
    void
    XmlLiteral.visit(NodeVisitor v)
    Visits this node, then visits each child fragment in lexical order.
    void
    XmlPropRef.visit(NodeVisitor v)
    Visits this node, then the namespace if present, then the property name.
    void
    XmlString.visit(NodeVisitor v)
    Visits this node.
    void
    Yield.visit(NodeVisitor v)
    Visits this node, and if present, the yielded value.
    void
    AstRoot.visitAll(NodeVisitor visitor)
    Visits the AST nodes, then the comment nodes.
    void
    AstRoot.visitComments(NodeVisitor visitor)
    Visits the comment nodes in the order they appear in the source code.