Class ArrayAFT
java.lang.Object
org.checkerframework.afu.scenelib.util.EqualByStringRepresentation
org.checkerframework.afu.scenelib.field.AnnotationFieldType
org.checkerframework.afu.scenelib.field.ArrayAFT
An
ArrayAFT represents an annotation field type that is an array.-
Field Summary
FieldsModifier and TypeFieldDescriptionThe element type of the array, ornullif it is unknown (seeAnnotationBuilder.addEmptyArrayField(java.lang.String)). -
Constructor Summary
Constructors -
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()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
-
elementType
The element type of the array, ornullif it is unknown (seeAnnotationBuilder.addEmptyArrayField(java.lang.String)).
-
-
Constructor Details
-
ArrayAFT
Constructs a newArrayAFTrepresenting an array type with the given element type.elementTypemay benullto indicate that the element type is unknown (seeAnnotationBuilder.addEmptyArrayField(java.lang.String)).- Parameters:
elementType- the element type of the array, ornullif it is unknown
-
-
Method Details
-
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
-