Class PublicMethodVisitor<R,​P>

  • Type Parameters:
    R - The return type of the visitor's method
    P - The type of the additional parameter to the visitor's methods.
    All Implemented Interfaces:
    javax.lang.model.type.TypeVisitor<R,​P>
    Direct Known Subclasses:
    PublicAbstractMethodVisitor

    public abstract class PublicMethodVisitor<R,​P>
    extends SuperclassAwareTypeVisitor<R,​P>
    An adapter that implements all methods of the TypeVisitor interface subclasses can selectively override.
    Since:
    1.0
    See Also:
    AbstractTypeVisitor8
    • Constructor Detail

      • PublicMethodVisitor

        protected PublicMethodVisitor​(JavaVisitorContext visitorContext)
        Default constructor.
        Parameters:
        visitorContext - The visitor context
    • Method Detail

      • isAcceptable

        protected boolean isAcceptable​(javax.lang.model.element.Element element)
        Only accepts public non file or static methods.
        Specified by:
        isAcceptable in class SuperclassAwareTypeVisitor<R,​P>
        Parameters:
        element - The Element
        Returns:
        If the element is acceptable