Class BasicAFT
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.BasicAFT
-
Field Summary
Fields -
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.static BasicAFTReturns theBasicAFTfortype, which should be primitive (e.g., int.class) or String.booleanReturns true if this value is valid for this AnnotationFieldType.toString()Returns the string representation of the type that would appear in an index file.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
-
type
The Java type backing this annotation field type. -
bafts
Maps fromtypetoBasicAFT. Contains every BasicAFT.
-
-
Method Details
-
forType
Returns theBasicAFTfortype, which should be primitive (e.g., int.class) or String. Returns null iftypeis not appropriate for a basic annotation field type. -
isValidValue
Description copied from class:AnnotationFieldTypeReturns true if this value is valid for this AnnotationFieldType.- Specified by:
isValidValuein classAnnotationFieldType
-
toString
Description copied from class:AnnotationFieldTypeReturns the string representation of the type that would appear in an index file. Used byIndexFileWriter.- 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
-