Package org.codehaus.janino
Interface Java.Annotation
-
- All Superinterfaces:
Java.ElementValue
,Java.Locatable
,Java.Modifier
- All Known Implementing Classes:
Java.AbstractAnnotation
,Java.MarkerAnnotation
,Java.NormalAnnotation
,Java.SingleElementAnnotation
- Enclosing class:
- Java
public static interface Java.Annotation extends Java.Locatable, Java.ElementValue, Java.Modifier
Representation of a Java annotation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <R,EX extends java.lang.Throwable>
Raccept(Visitor.AnnotationVisitor<R,EX> visitor)
Java.Type
getType()
void
setEnclosingScope(Java.Scope enclosingScope)
Sets the enclosing scope for this annotation.-
Methods inherited from interface org.codehaus.janino.Java.ElementValue
accept
-
Methods inherited from interface org.codehaus.janino.Java.Locatable
getLocation, throwCompileException
-
Methods inherited from interface org.codehaus.janino.Java.Modifier
accept
-
-
-
-
Method Detail
-
accept
@Nullable <R,EX extends java.lang.Throwable> R accept(Visitor.AnnotationVisitor<R,EX> visitor) throws EX extends java.lang.Throwable
- Throws:
EX extends java.lang.Throwable
-
setEnclosingScope
void setEnclosingScope(Java.Scope enclosingScope)
Sets the enclosing scope for this annotation.- Specified by:
setEnclosingScope
in interfaceJava.ElementValue
-
getType
Java.Type getType()
- Returns:
- The type of this annotation
-
-