Java.Annotation, Java.ElementValuepublic static final class Java.SingleElementAnnotation extends Object implements Java.Annotation
| Modifier and Type | Field | Description |
|---|---|---|
Java.ElementValue |
elementValue |
The element value associated with this single-element annotation.
|
Java.Type |
type |
The type of this single-element annotation.
|
| Constructor | Description |
|---|---|
SingleElementAnnotation(Java.Type type,
Java.ElementValue elementValue) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
accept(Visitor.AnnotationVisitor visitor) |
|
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() |
public final Java.Type type
public final Java.ElementValue elementValue
public SingleElementAnnotation(Java.Type type, Java.ElementValue elementValue)
public void setEnclosingScope(Java.Scope enclosingScope)
Java.AnnotationsetEnclosingScope in interface Java.Annotationpublic Java.Type getType()
getType in interface Java.Annotationpublic void accept(Visitor.AnnotationVisitor visitor)
Java.Annotationaccept 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.ElementValueCopyright © 2001–2019. All rights reserved.