Class AnnotationAFT
java.lang.Object
org.checkerframework.afu.scenelib.util.EqualByStringRepresentation
org.checkerframework.afu.scenelib.field.AnnotationFieldType
org.checkerframework.afu.scenelib.field.ScalarAFT
org.checkerframework.afu.scenelib.field.AnnotationAFT
An
AnnotationAFT represents a subannotation as the type of an annotation field and
contains the definition of the subannotation.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAnnotationAFT(AnnotationDef annotationDef) Constructs a newAnnotationAFTfor a subannotation of the given definition. -
Method Summary
Modifier and TypeMethodDescription<R,T> R accept(AFTVisitor<R, T> v, T arg) voidformat(StringBuilder sb, Object o) Formats an annotation field value.booleanReturns true if this value is valid for this AnnotationFieldType.toString()The string representation of anAnnotationAFTlooks like@Fooeven though the subannotation definition is logically part of theAnnotationAFT.Methods inherited from class org.checkerframework.afu.scenelib.field.AnnotationFieldType
format, fromClass, unifyMethods inherited from class org.checkerframework.afu.scenelib.util.EqualByStringRepresentation
equals, hashCode
-
Field Details
-
annotationDef
The definition of the subannotation.
-
-
Constructor Details
-
AnnotationAFT
Constructs a newAnnotationAFTfor a subannotation of the given definition.
-
-
Method Details
-
isValidValue
Description copied from class:AnnotationFieldTypeReturns true if this value is valid for this AnnotationFieldType.- Specified by:
isValidValuein classAnnotationFieldType
-
toString
The string representation of anAnnotationAFTlooks like@Fooeven though the subannotation definition is logically part of theAnnotationAFT. This is because the subannotation field type appears as@Fooin an index file and the subannotation definition is written separately.- Specified by:
toStringin classAnnotationFieldType
-
format
Description copied from class:AnnotationFieldTypeFormats an annotation field value.- Specified by:
formatin classAnnotationFieldType- Parameters:
sb- where to format the value too- the value to format
-
accept
- Specified by:
acceptin classAnnotationFieldType
-