Package org.codehaus.janino
Class Java.NormalAnnotation
- java.lang.Object
-
- org.codehaus.janino.Java.AbstractAnnotation
-
- org.codehaus.janino.Java.NormalAnnotation
-
- All Implemented Interfaces:
Java.Annotation,Java.ElementValue,Java.Locatable,Java.Modifier
- Enclosing class:
- Java
public static final class Java.NormalAnnotation extends Java.AbstractAnnotation
A "normal annotation", i.e. an annotation with multiple elements in parentheses and curly braces.
-
-
Field Summary
Fields Modifier and Type Field Description Java.ElementValuePair[]elementValuePairsThe element-value-pairs associated with this annotation.-
Fields inherited from class org.codehaus.janino.Java.AbstractAnnotation
type
-
-
Constructor Summary
Constructors Constructor Description NormalAnnotation(Java.ReferenceType type, Java.ElementValuePair[] elementValuePairs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R,EX extends Throwable>
Raccept(Visitor.AnnotationVisitor<R,EX> visitor)Java.TypegetType()voidsetEnclosingScope(Java.Scope enclosingScope)Sets the enclosing scope for this annotation.StringtoString()-
Methods inherited from class org.codehaus.janino.Java.AbstractAnnotation
accept, accept, getLocation, throwCompileException
-
-
-
-
Field Detail
-
elementValuePairs
public final Java.ElementValuePair[] elementValuePairs
The element-value-pairs associated with this annotation.
-
-
Constructor Detail
-
NormalAnnotation
public NormalAnnotation(Java.ReferenceType type, Java.ElementValuePair[] elementValuePairs)
-
-
Method Detail
-
setEnclosingScope
public void setEnclosingScope(Java.Scope enclosingScope)
Description copied from interface:Java.AnnotationSets the enclosing scope for this annotation.- Specified by:
setEnclosingScopein interfaceJava.Annotation- Specified by:
setEnclosingScopein interfaceJava.ElementValue- Overrides:
setEnclosingScopein classJava.AbstractAnnotation
-
getType
public Java.Type getType()
- Returns:
- The type of this annotation
-
accept
@Nullable public <R,EX extends Throwable> R accept(Visitor.AnnotationVisitor<R,EX> visitor) throws EX extends Throwable
Description copied from interface:Java.Annotation- Throws:
EX extends Throwable
-
-