Class ShouldBeFinalProcessor
java.lang.Object
javax.annotation.processing.AbstractProcessor
com.github.tadukoo.util.annotation.process.AbstractAnnotationProcessor
com.github.tadukoo.util.annotation.process.ShouldBeFinalProcessor
- All Implemented Interfaces:
javax.annotation.processing.Processor
@AnnotationProcessor public class ShouldBeFinalProcessor extends AbstractAnnotationProcessor
Annotation Processor for
ShouldBeFinal
that gives a warning message on
methods or fields that include the annotation.- Version:
- Pre-Alpha
- Author:
- Logan Ferree (Tadukoo)
-
Field Summary
Fields inherited from class com.github.tadukoo.util.annotation.process.AbstractAnnotationProcessor
annotationUtil
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv
-
Constructor Summary
Constructors Constructor Description ShouldBeFinalProcessor()
Constructor to designate this as being an Annotation Processor forShouldBeFinal
. -
Method Summary
Modifier and Type Method Description protected void
processElements(java.util.Set<? extends javax.lang.model.element.Element> elements)
Processes the givenElements
, putting the warning on them that the method/field should be marked as final soon.Methods inherited from class com.github.tadukoo.util.annotation.process.AbstractAnnotationProcessor
getSupportedAnnotationTypes, init, process
Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedOptions, getSupportedSourceVersion, isInitialized
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ShouldBeFinalProcessor
public ShouldBeFinalProcessor()Constructor to designate this as being an Annotation Processor forShouldBeFinal
.
-
-
Method Details
-
processElements
protected void processElements(java.util.Set<? extends javax.lang.model.element.Element> elements)Processes the givenElements
, putting the warning on them that the method/field should be marked as final soon.- Specified by:
processElements
in classAbstractAnnotationProcessor
- Parameters:
elements
- The Elements to process
-