Class AnnotationSource

java.lang.Object
org.inferred.freebuilder.processor.source.AnnotationSource

public class AnnotationSource extends Object
Static methods for annotation-related source-code generation.
  • Constructor Details

    • AnnotationSource

      private AnnotationSource()
  • Method Details

    • addSource

      public static void addSource(SourceBuilder code, AnnotationMirror annotation)
      Adds a source-code representation of annotation to .
    • hasSingleValueWithDefaultKey

      private static boolean hasSingleValueWithDefaultKey(AnnotationMirror annotation)
      Returns true if annotation has a single element named "value", letting us drop the 'value=' prefix in the source code.