Package org.codehaus.janino
Interface IClass.IAnnotation
-
- Enclosing class:
- IClass
public static interface IClass.IAnnotationRepresentation of a Java "annotation".
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IClassgetAnnotationType()ObjectgetElementValue(String name)
-
-
-
Method Detail
-
getAnnotationType
IClass getAnnotationType() throws CompileException
- Returns:
- The type of the annotation
- Throws:
CompileException
-
getElementValue
Object getElementValue(String name) throws CompileException
Returns the value of the named element:BooleanByteCharacterDoubleFloatIntegerLongShort- 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
nullis not a valid return value.- Throws:
CompileException
-
-