Interface Marker

    • Method Detail

      • isAcceptable

        default <P> boolean isAcceptable​(TreeVisitor<?,​P> v,
                                         P p)
        Description copied from interface: Tree
        Checks the supplied argument to see if the supplied visitor and its context would be valid arguments to accept(). Typically this involves checking that the visitor is of a type that operates on this kind of tree. e.g.: A Java Tree implementation would return true for JavaVisitors and false for MavenVisitors
        Specified by:
        isAcceptable in interface Tree
        Type Parameters:
        P - the visitor's context argument
        Returns:
        'true' if the arguments to this function would be valid arguments to accept()