public class Annotation extends Object
Modifier and Type | Method and Description |
---|---|
AnnotationComponent |
getComponent(String name)
Returns the named component for this annotation, or null if
no component with that name exists.
|
AnnotationComponent[] |
getComponents()
Returns the named components for this annotation, as an
array of AnnotationComponents.
|
ClassName |
getType()
Returns the annotation type.
|
boolean |
isRuntimeVisible()
Returns true if this annotation is loaded by the Java Virtual
Machine to be available via the Java reflection facility.
|
String |
toString() |
public final ClassName getType()
public final AnnotationComponent[] getComponents()
public final AnnotationComponent getComponent(String name)
public boolean isRuntimeVisible()