Class PublicAbstractMethodVisitor<R,P>
java.lang.Object
javax.lang.model.util.AbstractTypeVisitor6<R,P>
javax.lang.model.util.AbstractTypeVisitor7<R,P>
javax.lang.model.util.AbstractTypeVisitor8<R,P>
io.micronaut.annotation.processing.SuperclassAwareTypeVisitor<R,P>
io.micronaut.annotation.processing.PublicMethodVisitor<R,P>
io.micronaut.annotation.processing.PublicAbstractMethodVisitor<R,P>
- Type Parameters:
R
- The return type of the visitor's methodP
- The type of the additional parameter to the visitor's methods.
- All Implemented Interfaces:
TypeVisitor<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 Summary
Modifier and TypeMethodDescriptionprotected boolean
isAcceptable
(Element element) Only accepts public non file or static methods.protected boolean
isAcceptableMethod
(ExecutableElement executableElement) Return whether the given executable element is acceptable.Methods inherited from class io.micronaut.annotation.processing.SuperclassAwareTypeVisitor
accept, visitArray, visitDeclared, visitError, visitExecutable, visitIntersection, visitNoType, visitNull, visitPrimitive, visitTypeVariable, visitUnion, visitWildcard
Methods inherited from class javax.lang.model.util.AbstractTypeVisitor6
visit, visit, visitUnknown
-
Method Details
-
isAcceptable
Description copied from class:PublicMethodVisitor
Only accepts public non file or static methods.- Overrides:
isAcceptable
in classPublicMethodVisitor<R,
P> - Parameters:
element
- TheElement
- Returns:
- If the element is acceptable
-
isAcceptableMethod
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
-