Package org.codehaus.janino
Class Java.NormalAnnotation
- java.lang.Object
-
- org.codehaus.janino.Java.NormalAnnotation
-
- All Implemented Interfaces:
Java.Annotation
,Java.ElementValue
- Enclosing class:
- Java
public static final class Java.NormalAnnotation extends Object implements Java.Annotation
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[]
elementValuePairs
The element-value-pairs associated with this annotation.Java.Type
type
The type of this normal annotation.
-
Constructor Summary
Constructors Constructor Description NormalAnnotation(Java.Type type, Java.ElementValuePair[] elementValuePairs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(Visitor.AnnotationVisitor visitor)
void
accept(Visitor.ElementValueVisitor visitor)
Invokes the 'visit...()
' method ofVisitor.ElementValueVisitor
for the concreteJava.ElementValue
type.Java.Type
getType()
void
setEnclosingScope(Java.Scope enclosingScope)
Sets the enclosing scope for this annotation.String
toString()
-
-
-
Field Detail
-
type
public final Java.Type type
The type of this normal annotation.
-
elementValuePairs
public final Java.ElementValuePair[] elementValuePairs
The element-value-pairs associated with this annotation.
-
-
Constructor Detail
-
NormalAnnotation
public NormalAnnotation(Java.Type type, Java.ElementValuePair[] elementValuePairs)
-
-
Method Detail
-
getType
public Java.Type getType()
- Specified by:
getType
in interfaceJava.Annotation
- Returns:
- The type of this annotation
-
setEnclosingScope
public void setEnclosingScope(Java.Scope enclosingScope)
Description copied from interface:Java.Annotation
Sets the enclosing scope for this annotation.- Specified by:
setEnclosingScope
in interfaceJava.Annotation
-
accept
public void accept(Visitor.AnnotationVisitor visitor)
Description copied from interface:Java.Annotation
- Specified by:
accept
in interfaceJava.Annotation
-
accept
public void accept(Visitor.ElementValueVisitor visitor)
Description copied from interface:Java.ElementValue
Invokes the 'visit...()
' method ofVisitor.ElementValueVisitor
for the concreteJava.ElementValue
type.- Specified by:
accept
in interfaceJava.ElementValue
-
-