Interface ASTNodeVisitor<R,​P>

  • Type Parameters:
    R - the return type of this visitor's methods. Use Void for visitors that do not need to return results.
    P - the type of the additional parameter to this visitor's methods. Use Void for visitors that do not need an additional parameter.
    All Known Subinterfaces:
    TraversingASTNodeVisitor<P>
    All Known Implementing Classes:
    ClassNameCollectingVisitor

    public interface ASTNodeVisitor<R,​P>
    A visitor of grammar and signature AST nodes, in the style of the visitor design pattern.

    WARNING: It is possible that methods will be added to this interface to accommodate new, currently unknown, language structures added to future versions of the JVM. Visitor classes directly implementing this interface may be source incompatible with future versions of the library/platform.