Package ball.annotation.processing
Class AnnotatedNoAnnotationProcessor
- java.lang.Object
-
- ball.annotation.processing.JavaxLangModelUtilities
-
- ball.annotation.processing.AbstractProcessor
-
- ball.annotation.processing.AnnotatedNoAnnotationProcessor
-
- All Implemented Interfaces:
JavaLangReflectMethods
,Processor
- Direct Known Subclasses:
AntTaskMixInProcessor
,ClassFileProcessorProcessor
,NoOverrideProcessor
,ObjectCloneProcessor
,ObjectToStringProcessor
,SerializableProcessor
public abstract class AnnotatedNoAnnotationProcessor extends AbstractProcessor
AbstractProcessor
base class for processing "no"Annotation
("*"
).Bean Property Summary
Name Mode Type isHidden isBound isConstrained supportedAnnotationTypes R Set
<
String
>
false false false supportedOptions R Set
<
String
>
false false false supportedSourceVersion R SourceVersion
false false false - Author:
- Allen D. Ball
- See Also:
ForElementKinds
,ForSubclassesOf
,MustImplement
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ball.annotation.processing.AbstractProcessor
AbstractProcessor.Check<T extends Element>, AbstractProcessor.Criterion<T extends Element>
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Consumer<Element>>
checks
protected List<Predicate<Element>>
criteria
-
Fields inherited from class ball.annotation.processing.AbstractProcessor
filer, javac
-
Fields inherited from class ball.annotation.processing.JavaxLangModelUtilities
elements, fm, types
-
-
Constructor Summary
Constructors Constructor Description AnnotatedNoAnnotationProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected EnumSet<ElementKind>
getForElementKinds()
SeeForElementKinds
.protected Class<?>
getForSubclassesOf()
SeeForSubclassesOf
.protected Class<?>[]
getMustImplement()
SeeMustImplement
.Set<String>
getSupportedAnnotationTypes()
protected EnumSet<Modifier>
getWithModifiers()
SeeWithModifiers
.protected EnumSet<Modifier>
getWithoutModifiers()
SeeWithoutModifiers
.void
init(ProcessingEnvironment processingEnv)
boolean
process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
protected void
process(RoundEnvironment roundEnv, Element element)
Method to process eachElement
.-
Methods inherited from class ball.annotation.processing.AbstractProcessor
getCompletions, getSupportedOptions, getSupportedSourceVersion, print, print, print, print, print, whenAnnotationProcessingFinished
-
Methods inherited from class ball.annotation.processing.JavaxLangModelUtilities
asClass, asExecutableElement, asExecutableElement, asPackageInfoClass, asTypeElement, asTypeMirror, asTypeMirrorList, asVariableElement, getAnnotationMirror, getAnnotationMirror, getAnnotationValue, getClassLoader, getClassPathClassLoader, getClassPathClassLoader, getConstructor, getEnclosingTypeElement, getMethod, getPropertyName, getPropertyNames, getTypeElementFor, hasSameSignatureAs, hasSameSignatureAs, hasSameSignatureAs, implementationOf, isAssignableTo, isAssignableTo, isAssignableTo, isAssignableTo, isEmptyArray, isGenerated, isGetterMethod, named, overrides, overrides, signature, signature, specifiedBy, toEnumSet, toModifiers, with, withModifiers, withModifiers, without, withoutModifiers, withoutModifiers, withParameters, withParameters
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ball.lang.reflect.JavaLangReflectMethods
asModifierSet, declaration, declaration, declaration, declaration, declaration, declaration, declaration, declaration, exceptions, getModifiers, getModifiers, modifiers, parameters, type, type
-
-
-
-
Constructor Detail
-
AnnotatedNoAnnotationProcessor
public AnnotatedNoAnnotationProcessor()
-
-
Method Detail
-
getForElementKinds
protected EnumSet<ElementKind> getForElementKinds()
SeeForElementKinds
.- Returns:
- The
EnumSet
ofElementKind
s specified by the annotation (null
if no annotation present).
-
getWithModifiers
protected EnumSet<Modifier> getWithModifiers()
SeeWithModifiers
.
-
getWithoutModifiers
protected EnumSet<Modifier> getWithoutModifiers()
SeeWithoutModifiers
.
-
getForSubclassesOf
protected Class<?> getForSubclassesOf()
SeeForSubclassesOf
.- Returns:
- The
Class
specified by the annotation (null
if no annotation present).
-
getMustImplement
protected Class<?>[] getMustImplement()
SeeMustImplement
.- Returns:
- The array of
Class
es specified by the annotation (null
if no annotation present).
-
getSupportedAnnotationTypes
public Set<String> getSupportedAnnotationTypes()
- Specified by:
getSupportedAnnotationTypes
in interfaceProcessor
- Specified by:
getSupportedAnnotationTypes
in classAbstractProcessor
-
init
public void init(ProcessingEnvironment processingEnv)
- Specified by:
init
in interfaceProcessor
- Overrides:
init
in classAbstractProcessor
-
process
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
- Specified by:
process
in interfaceProcessor
- Specified by:
process
in classAbstractProcessor
- Returns:
false
always.
-
process
protected void process(RoundEnvironment roundEnv, Element element)
Method to process eachElement
. Default implementation does nothing.- Parameters:
roundEnv
- TheRoundEnvironment
.element
- TheElement
.
-
-