Class PublicMethodVisitor<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>
- 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>
- Direct Known Subclasses:
PublicAbstractMethodVisitor
An adapter that implements all methods of the
TypeVisitor
interface subclasses can selectively override.- Since:
- 1.0
- Author:
- graemerocher
- See Also:
-
Constructor Summary
ModifierConstructorDescriptionprotected
PublicMethodVisitor
(JavaVisitorContext visitorContext) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
isAcceptable
(Element element) Only accepts public non file or static methods.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
-
Constructor Details
-
PublicMethodVisitor
Default constructor.- Parameters:
visitorContext
- The visitor context
-
-
Method Details
-
isAcceptable
Only accepts public non file or static methods.- Specified by:
isAcceptable
in classSuperclassAwareTypeVisitor<R,
P> - Parameters:
element
- TheElement
- Returns:
- If the element is acceptable
-