|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<AnnotationType>
de.cau.cs.kieler.core.annotations.AnnotationType
public enum AnnotationType
Enumeration of annotation types and utility methods for conversion.
Enum Constant Summary | |
---|---|
BOOLEAN
boolean annotation. |
|
CONTAINMENT
containment annotation. |
|
FLOAT
floating point annotation. |
|
INT
integer annotation. |
|
NONE
non-typed annotation. |
|
REFERENCE
reference annotation. |
|
STRING
string annotation. |
|
TYPED_STRING
typed string annotation. |
Method Summary | |
---|---|
Annotation |
create()
Create an annotation that corresponds to this annotation type. |
static AnnotationType |
of(Annotation annotation)
Determine the type of the given annotation. |
static void |
setValue(Annotation annotation,
Object value)
Set a new annotation value from the given object. |
static AnnotationType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static AnnotationType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final AnnotationType NONE
public static final AnnotationType STRING
public static final AnnotationType INT
public static final AnnotationType FLOAT
public static final AnnotationType BOOLEAN
public static final AnnotationType TYPED_STRING
public static final AnnotationType REFERENCE
public static final AnnotationType CONTAINMENT
Method Detail |
---|
public static AnnotationType[] values()
for (AnnotationType c : AnnotationType.values()) System.out.println(c);
public static AnnotationType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static AnnotationType of(Annotation annotation)
annotation
- an annotation
public static void setValue(Annotation annotation, Object value)
annotation
- an annotationvalue
- a value in serialized or non-serialized formpublic Annotation create()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |