Interface ArrayBuilder
public interface ArrayBuilder
Builds an array that will serve as a field of an annotation; created by
AnnotationBuilder.beginArrayField(java.lang.String, org.checkerframework.afu.scenelib.field.ArrayAFT)
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
Appends a value to the array.void
finish()
Finishes building the array.
-
Method Details
-
appendElement
Appends a value to the array. Call this method for each desired array element, in order. See the rules for values onAnnotation.getFieldValue(java.lang.String)
; furthermore, a subannotation must have been created by the same factory as the annotation of which it is a field.- Parameters:
x
- the next array element
-
finish
void finish()Finishes building the array. Call this method after all elements have been appended.
-