C
- The annotation required on the class. Use Object
for all classes.E
- The annotation required on the element. Use Object
for all elements.public interface TypeElementVisitor<C,E> extends Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Modifier and Type | Method and Description |
---|---|
default void |
finish(VisitorContext visitorContext)
Called once when visitor processing finishes.
|
default void |
start(VisitorContext visitorContext)
Called once when visitor processing starts.
|
default void |
visitClass(ClassElement element,
VisitorContext context)
Executed when a class is encountered that matches the
|
default void |
visitConstructor(ConstructorElement element,
VisitorContext context)
Executed when a constructor is encountered that matches the
|
default void |
visitField(FieldElement element,
VisitorContext context)
Executed when a field is encountered that matches the
|
default void |
visitMethod(MethodElement element,
VisitorContext context)
Executed when a method is encountered that matches the
|
default void visitClass(ClassElement element, VisitorContext context)
element
- The elementcontext
- The visitor contextdefault void visitMethod(MethodElement element, VisitorContext context)
element
- The elementcontext
- The visitor contextdefault void visitConstructor(ConstructorElement element, VisitorContext context)
element
- The elementcontext
- The visitor contextdefault void visitField(FieldElement element, VisitorContext context)
element
- The elementcontext
- The visitor contextdefault void start(VisitorContext visitorContext)
visitorContext
- The visitor contextdefault void finish(VisitorContext visitorContext)
visitorContext
- The visitor context