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() |
void |
visitClass(ClassElement element,
VisitorContext context)
Executed when a class is encountered that matches the
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
finish, getClassType, getSupportedAnnotationNames, getSupportedOptions, getVisitorKind, start, visitConstructor, visitField, visitMethod
isEnabled
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