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 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()voidsetEnclosingScope(Java.Scope enclosingScope) Sets the enclosing scope for this annotation.toString()Methods inherited from class 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.AnnotationSets the enclosing scope for this annotation.- Specified by:
setEnclosingScopein interfaceJava.Annotation- Specified by:
setEnclosingScopein interfaceJava.ElementValue- Overrides:
setEnclosingScopein 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
-