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, ornull
if 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) void
format
(StringBuilder sb, Object o) Formats an annotation field value.boolean
Returns 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, unify
Methods inherited from class org.checkerframework.afu.scenelib.util.EqualByStringRepresentation
equals, hashCode
-
Field Details
-
elementType
The element type of the array, ornull
if it is unknown (seeAnnotationBuilder.addEmptyArrayField(java.lang.String)
).
-
-
Constructor Details
-
ArrayAFT
Constructs a newArrayAFT
representing an array type with the given element type.elementType
may benull
to indicate that the element type is unknown (seeAnnotationBuilder.addEmptyArrayField(java.lang.String)
).- Parameters:
elementType
- the element type of the array, ornull
if it is unknown
-
-
Method Details
-
isValidValue
Description copied from class:AnnotationFieldType
Returns true if this value is valid for this AnnotationFieldType.- Specified by:
isValidValue
in classAnnotationFieldType
-
toString
Description copied from class:AnnotationFieldType
Returns the string representation of the type that would appear in an index file. Used byIndexFileWriter
.- Specified by:
toString
in classAnnotationFieldType
-
format
Description copied from class:AnnotationFieldType
Formats an annotation field value.- Specified by:
format
in classAnnotationFieldType
- Parameters:
sb
- where to format the value too
- the value to format
-
accept
- Specified by:
accept
in classAnnotationFieldType
-