Class AnnotationFactory
java.lang.Object
org.checkerframework.afu.scenelib.AnnotationFactory
A very simple
AnnotationFactory
that creates Annotation
s. It is
interested in all annotations and determines their definitions automatically from the fields
supplied. Use the singleton saf
.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbeginAnnotation
(@BinaryName String typeName, Set<Annotation> tlAnnotationsHere, String source) Returns anAnnotationBuilder
appropriate for building anAnnotation
of the given type name.beginAnnotation
(Annotation a, Map<String, AnnotationDef> adefs) Returns anAnnotationBuilder
.beginAnnotation
(AnnotationDef def, String source) Returns anAnnotationBuilder
appropriate for building anAnnotation
of the given type name.
-
Field Details
-
saf
The singletonAnnotationFactory
.
-
-
Method Details
-
beginAnnotation
Returns anAnnotationBuilder
appropriate for building anAnnotation
of the given type name.- Parameters:
def
- the definition for the annotation to be built
-
beginAnnotation
Returns anAnnotationBuilder
. Tries to look up the AnnotationDef in adefs; if not found, inserts in adefs. -
beginAnnotation
public AnnotationBuilder beginAnnotation(@BinaryName String typeName, Set<Annotation> tlAnnotationsHere, String source) Returns anAnnotationBuilder
appropriate for building anAnnotation
of the given type name.- Parameters:
typeName
- the name of the annotation being builttlAnnotationsHere
- the top-level meta-annotations on the annotation being builtsource
- where the annotation came from, such as a filename- Returns:
- an
AnnotationBuilder
appropriate for building aAnnotation
of the given type name
-