Package org.jboss.forge.roaster.model
Interface Annotation<O extends JavaType<O>>
- Type Parameters:
O- the java type which can be annotated
- All Known Subinterfaces:
AnnotationSource<O>
Represents an annotation on a Java element.
- Author:
- Lincoln Baxter, III
-
Method Summary
Modifier and TypeMethodDescriptionAnnotation<O>[]Annotation<O>[]getAnnotationValue(String name) Class<?>[]Class<?>[]getClassArrayValue(String name) Class<?>Class<?>getClassValue(String name) <T extends Enum<T>>
T[]getEnumArrayValue(Class<T> type) <T extends Enum<T>>
T[]getEnumArrayValue(Class<T> type, String name) <T extends Enum<T>>
TgetEnumValue(Class<T> type) <T extends Enum<T>>
TgetEnumValue(Class<T> type, String name) getLiteralValue(String name) getName()Get the simple name of this annotation.Get the qualified name of this annotation.String[]String[]getStringArrayValue(String name) getStringValue(String name) booleanisMarker()Checks if this annotation is a marker annotation.booleanisNormal()booleanbooleanisTypeElementDefined(String name) Methods inherited from interface org.jboss.forge.roaster.Internal
getInternal
-
Method Details
-
isSingleValue
boolean isSingleValue() -
isMarker
boolean isMarker()Checks if this annotation is a marker annotation. A marker annotation is defined as @TypeName, e.g. @Overwrite. The annotation has no value.- Returns:
true, if this annotation is a marker annotation,falseotherwise.
-
isNormal
boolean isNormal() -
getName
String getName()Get the simple name of this annotation.NOTE: This method returns always the simple name indifferent if the type was imported or not.
- Returns:
- the simple name
- See Also:
-
getQualifiedName
String getQualifiedName()Get the qualified name of this annotation.NOTE: This method returns always the qualified name indifferent if the type was imported or not.
- Returns:
- the qualified name
-
getEnumValue
-
getEnumValue
-
getEnumArrayValue
-
getEnumArrayValue
-
getLiteralValue
String getLiteralValue() -
getLiteralValue
-
getValues
-
getStringValue
String getStringValue() -
getStringValue
-
getStringArrayValue
String[] getStringArrayValue() -
getStringArrayValue
-
getAnnotationValue
Annotation<O> getAnnotationValue() -
getAnnotationValue
-
getAnnotationArrayValue
Annotation<O>[] getAnnotationArrayValue() -
getAnnotationArrayValue
-
getClassValue
Class<?> getClassValue() -
getClassValue
-
getClassArrayValue
Class<?>[] getClassArrayValue() -
getClassArrayValue
-
isTypeElementDefined
-