接口 ASTNodeVisitor<R,​P>

  • 类型参数:
    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.
    所有已知子接口:
    TraversingASTNodeVisitor<P>
    所有已知实现类:
    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.