janino.net

org.codehaus.janino
Class Java.NormalAnnotation

java.lang.Object
  extended by 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
 Java.ElementValuePair[] elementValuePairs
          The element-value-pairs associated with this annotation.
 Java.Type type
          The type of this normal annotation.
 
Constructor Summary
Java.NormalAnnotation(Java.Type type, Java.ElementValuePair[] elementValuePairs)
           
 
Method Summary
 void accept(Visitor.AnnotationVisitor visitor)
          Invokes the 'visit...()' method of Visitor.AnnotationVisitor for the concrete Java.Annotation type.
 void accept(Visitor.ElementValueVisitor visitor)
          Invokes the 'visit...()' method of Visitor.ElementValueVisitor for the concrete Java.ElementValue type.
 Java.Type getType()
           
 void setEnclosingScope(Java.Scope enclosingScope)
          Sets the enclosing scope for this annotation.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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

Java.NormalAnnotation

public Java.NormalAnnotation(Java.Type type,
                             Java.ElementValuePair[] elementValuePairs)
Method Detail

getType

public Java.Type getType()
Specified by:
getType in interface Java.Annotation
Returns:
The type of this annotation

toString

public String toString()
Overrides:
toString in class Object

setEnclosingScope

public void setEnclosingScope(Java.Scope enclosingScope)
Description copied from interface: Java.Annotation
Sets the enclosing scope for this annotation.

Specified by:
setEnclosingScope in interface Java.Annotation

accept

public void accept(Visitor.AnnotationVisitor visitor)
Description copied from interface: Java.Annotation
Invokes the 'visit...()' method of Visitor.AnnotationVisitor for the concrete Java.Annotation type.

Specified by:
accept in interface Java.Annotation

accept

public void accept(Visitor.ElementValueVisitor visitor)
Description copied from interface: Java.ElementValue
Invokes the 'visit...()' method of Visitor.ElementValueVisitor for the concrete Java.ElementValue type.

Specified by:
accept in interface Java.ElementValue

janino.net