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>
public interface Annotation<O extends JavaType<O>> extends Internal, Origin<O>
Represents an annotation on a Java element.- Author:
- Lincoln Baxter, III
-
-
Method Summary
-
Methods inherited from interface org.jboss.forge.roaster.Internal
getInternal
-
-
-
-
Method Detail
-
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:
Types.toSimpleName(String)
-
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
-
getLiteralValue
String getLiteralValue()
-
getStringValue
String getStringValue()
-
getStringArrayValue
String[] getStringArrayValue()
-
getAnnotationValue
Annotation<O> getAnnotationValue()
-
getAnnotationValue
Annotation<O> getAnnotationValue(String name)
-
getAnnotationArrayValue
Annotation<O>[] getAnnotationArrayValue()
-
getAnnotationArrayValue
Annotation<O>[] getAnnotationArrayValue(String name)
-
getClassValue
Class<?> getClassValue()
-
getClassArrayValue
Class<?>[] getClassArrayValue()
-
isTypeElementDefined
boolean isTypeElementDefined(String name)
-
-