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
A "normal annotation", i.e. an annotation with multiple elements in parentheses and curly braces.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Java.ElementValuePair[]
The element-value-pairs associated with this annotation.Fields inherited from class org.codehaus.janino.Java.AbstractAnnotation
type
-
Constructor Summary
ConstructorsConstructorDescriptionNormalAnnotation
(Java.ReferenceType type, Java.ElementValuePair[] elementValuePairs) -
Method Summary
Modifier and TypeMethodDescription<R,
EX extends Throwable>
Raccept
(Visitor.AnnotationVisitor<R, EX> visitor) getType()
void
setEnclosingScope
(Java.Scope enclosingScope) Sets the enclosing scope for this annotation.toString()
Methods inherited from class org.codehaus.janino.Java.AbstractAnnotation
accept, accept, getLocation, throwCompileException
-
Field Details
-
elementValuePairs
The element-value-pairs associated with this annotation.
-
-
Constructor Details
-
NormalAnnotation
-
-
Method Details
-
setEnclosingScope
Description copied from interface:Java.Annotation
Sets the enclosing scope for this annotation.- Specified by:
setEnclosingScope
in interfaceJava.Annotation
- Specified by:
setEnclosingScope
in interfaceJava.ElementValue
- Overrides:
setEnclosingScope
in classJava.AbstractAnnotation
-
getType
- Returns:
- The type of this annotation
-
toString
-
accept
@Nullable public <R,EX extends Throwable> R accept(Visitor.AnnotationVisitor<R, EX> visitor) throws EXDescription copied from interface:Java.Annotation
- Throws:
EX extends Throwable
-