Interface SymbolMetadata
-
- All Known Implementing Classes:
SymbolMetadataResolve
public interface SymbolMetadata
Holds the metadata information (annotations) of a symbol.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
SymbolMetadata.AnnotationInstance
Occurrence of an annotation on a symbol.static interface
SymbolMetadata.AnnotationValue
Value of a property of an annotation.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<SymbolMetadata.AnnotationInstance>
annotations()
The list of annotations found on this symbol.boolean
isAnnotatedWith(String fullyQualifiedName)
Check if the symbol is annotated with the specified annotation.List<SymbolMetadata.AnnotationValue>
valuesForAnnotation(String fullyQualifiedNameOfAnnotation)
Get the annotation values for the specified annotation.
-
-
-
Method Detail
-
isAnnotatedWith
boolean isAnnotatedWith(String fullyQualifiedName)
Check if the symbol is annotated with the specified annotation.- Parameters:
fullyQualifiedName
- fully Qualified Name of the annotation- Returns:
- true if the symbol is annotated with the annotation
-
valuesForAnnotation
@CheckForNull List<SymbolMetadata.AnnotationValue> valuesForAnnotation(String fullyQualifiedNameOfAnnotation)
Get the annotation values for the specified annotation.- Parameters:
fullyQualifiedNameOfAnnotation
- fully Qualified Name of the annotation- Returns:
- null if the annotation is not present, a List otherwise
-
annotations
List<SymbolMetadata.AnnotationInstance> annotations()
The list of annotations found on this symbol.- Returns:
- A list of
SymbolMetadata.AnnotationInstance
-
-