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
AbstractProcessorbase 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 SourceVersionfalse 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>>checksprotected 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.voidinit(ProcessingEnvironment processingEnv)booleanprocess(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)protected voidprocess(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
EnumSetofElementKinds specified by the annotation (nullif no annotation present).
-
getWithModifiers
protected EnumSet<Modifier> getWithModifiers()
SeeWithModifiers.
-
getWithoutModifiers
protected EnumSet<Modifier> getWithoutModifiers()
SeeWithoutModifiers.
-
getForSubclassesOf
protected Class<?> getForSubclassesOf()
SeeForSubclassesOf.- Returns:
- The
Classspecified by the annotation (nullif no annotation present).
-
getMustImplement
protected Class<?>[] getMustImplement()
SeeMustImplement.- Returns:
- The array of
Classes specified by the annotation (nullif no annotation present).
-
getSupportedAnnotationTypes
public Set<String> getSupportedAnnotationTypes()
- Specified by:
getSupportedAnnotationTypesin interfaceProcessor- Specified by:
getSupportedAnnotationTypesin classAbstractProcessor
-
init
public void init(ProcessingEnvironment processingEnv)
- Specified by:
initin interfaceProcessor- Overrides:
initin classAbstractProcessor
-
process
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
- Specified by:
processin interfaceProcessor- Specified by:
processin classAbstractProcessor- Returns:
falsealways.
-
process
protected void process(RoundEnvironment roundEnv, Element element)
Method to process eachElement. Default implementation does nothing.- Parameters:
roundEnv- TheRoundEnvironment.element- TheElement.
-
-