Class AnnotationSource
- java.lang.Object
-
- org.inferred.freebuilder.processor.source.AnnotationSource
-
public class AnnotationSource extends java.lang.ObjectStatic methods for annotation-related source-code generation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classAnnotationSource.ValueSourceAdder
-
Constructor Summary
Constructors Modifier Constructor Description privateAnnotationSource()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddSource(SourceBuilder code, javax.lang.model.element.AnnotationMirror annotation)Adds a source-code representation ofannotationto .private static booleanhasSingleValueWithDefaultKey(javax.lang.model.element.AnnotationMirror annotation)Returns true ifannotationhas a single element named "value", letting us drop the 'value=' prefix in the source code.
-
-
-
Method Detail
-
addSource
public static void addSource(SourceBuilder code, javax.lang.model.element.AnnotationMirror annotation)
Adds a source-code representation ofannotationto .
-
hasSingleValueWithDefaultKey
private static boolean hasSingleValueWithDefaultKey(javax.lang.model.element.AnnotationMirror annotation)
Returns true ifannotationhas a single element named "value", letting us drop the 'value=' prefix in the source code.
-
-