public class ContextConfigurerVisitor extends Object implements TypeElementVisitor<ContextConfigurer,Object>
ContextConfigurer
.TypeElementVisitor.VisitorKind
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
ContextConfigurerVisitor() |
Modifier and Type | Method and Description |
---|---|
static void |
assertNoConstructorForContextAnnotation(ClassElement element)
Checks that a class annotated with
ContextConfigurer doesn't have any constructor
with parameters, which is unsupported. |
String |
getElementType() |
TypeElementVisitor.VisitorKind |
getVisitorKind() |
void |
visitClass(ClassElement element,
VisitorContext context)
Executed when a class is encountered that matches the <C> generic.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
finish, getClassType, getSupportedAnnotationNames, getSupportedOptions, start, visitConstructor, visitEnumConstant, visitField, visitMethod
isEnabled
public TypeElementVisitor.VisitorKind getVisitorKind()
getVisitorKind
in interface TypeElementVisitor<ContextConfigurer,Object>
public String getElementType()
getElementType
in interface TypeElementVisitor<ContextConfigurer,Object>
public void visitClass(ClassElement element, VisitorContext context)
TypeElementVisitor
visitClass
in interface TypeElementVisitor<ContextConfigurer,Object>
element
- The elementcontext
- The visitor contextpublic static void assertNoConstructorForContextAnnotation(ClassElement element)
ContextConfigurer
doesn't have any constructor
with parameters, which is unsupported.element
- the class to check