Class PublicAbstractMethodVisitor<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:
TypeVisitor<R,P>

public abstract class PublicAbstractMethodVisitor<R,P> extends PublicMethodVisitor<R,P>
Utility visitor that only visits public abstract methods that have not been implemented by the given type.
Since:
1.0
Author:
graemerocher
See Also:
  • Method Details

    • isAcceptable

      protected boolean isAcceptable(Element element)
      Description copied from class: PublicMethodVisitor
      Only accepts public non file or static methods.
      Overrides:
      isAcceptable in class PublicMethodVisitor<R,P>
      Parameters:
      element - The Element
      Returns:
      If the element is acceptable
    • isAcceptableMethod

      protected boolean isAcceptableMethod(ExecutableElement executableElement)
      Return whether the given executable element is acceptable. By default just checks if the method is abstract.
      Parameters:
      executableElement - The method
      Returns:
      True if it is