Package org.codehaus.janino
Interface IClass.IAnnotation
-
- Enclosing class:
- IClass
public static interface IClass.IAnnotation
Representation of a Java "annotation".
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IType
getAnnotationType()
java.lang.Object
getElementValue(java.lang.String name)
Returns the value of the named element:Boolean
Byte
Character
Double
Float
Integer
Long
Short
A primitive valueString
A string valueIClass.IField
An enum constantIClass
A class literalIClass.IAnnotation
An annotationObject
[]
An array value
-
-
-
Method Detail
-
getAnnotationType
IType getAnnotationType() throws CompileException
- Returns:
- The type of the annotation
- Throws:
CompileException
-
getElementValue
java.lang.Object getElementValue(java.lang.String name) throws CompileException
Returns the value of the named element:Boolean
Byte
Character
Double
Float
Integer
Long
Short
- A primitive value
String
- A string value
IClass.IField
- An enum constant
IClass
- A class literal
IClass.IAnnotation
- An annotation
Object
[]
- An array value
Notice that
null
is not a valid return value.- Throws:
CompileException
-
-