Class ShouldBeFinalProcessor

java.lang.Object
javax.annotation.processing.AbstractProcessor
com.github.tadukoo.annotation.processor.AbstractAnnotationProcessor
com.github.tadukoo.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.annotation.processor.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 for ShouldBeFinal.
  • Method Summary

    Modifier and Type Method Description
    protected void processElements​(java.util.Set<? extends javax.lang.model.element.Element> elements)
    Processes the given Elements, putting the warning on them that the method/field should be marked as final soon.

    Methods inherited from class com.github.tadukoo.annotation.processor.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 for ShouldBeFinal.
  • Method Details

    • processElements

      protected void processElements​(java.util.Set<? extends javax.lang.model.element.Element> elements)
      Processes the given Elements, putting the warning on them that the method/field should be marked as final soon.
      Specified by:
      processElements in class AbstractAnnotationProcessor
      Parameters:
      elements - The Elements to process