|
janino.net | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.janino.Java.SingleElementAnnotation
public static final class Java.SingleElementAnnotation
Representation of a 'single-element annotation', i.e. an annotation followed by a single element in parentheses.
| Field Summary | |
|---|---|
Java.ElementValue |
elementValue
The element value associated with this single-element annotation. |
Java.Type |
type
The type of this single-element annotation. |
| Constructor Summary | |
|---|---|
Java.SingleElementAnnotation(Java.Type type,
Java.ElementValue elementValue)
|
|
| 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 |
|---|
public final Java.Type type
public final Java.ElementValue elementValue
| Constructor Detail |
|---|
public Java.SingleElementAnnotation(Java.Type type,
Java.ElementValue elementValue)
| Method Detail |
|---|
public void setEnclosingScope(Java.Scope enclosingScope)
Java.Annotation
setEnclosingScope in interface Java.Annotationpublic String toString()
toString in class Objectpublic Java.Type getType()
getType in interface Java.Annotationpublic void accept(Visitor.AnnotationVisitor visitor)
Java.Annotationvisit...()' method of Visitor.AnnotationVisitor for the concrete Java.Annotation type.
accept in interface Java.Annotationpublic void accept(Visitor.ElementValueVisitor visitor)
Java.ElementValuevisit...()' method of Visitor.ElementValueVisitor for the concrete Java.ElementValue type.
accept in interface Java.ElementValue
|
janino.net | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||