Package pascal.taie.language.annotation
Class Annotation
java.lang.Object
pascal.taie.language.annotation.Annotation
- All Implemented Interfaces:
Serializable
Represents annotations in the program.
Each annotation contains 0 or more named elements.
Currently, we use String
(instead of JClass
or ClassType
) to represent the type of an annotation.
This makes it easier for the frontends to extract annotations
from the program (The type string is ready in the program,
and the frontends do not need to resolve the string to JClass
).
TODO: add ElementType and RetentionPolicy.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
Represents name-element entries in annotations. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetElement
(String name) getType()
boolean
hasElement
(String name) toString()