public static final class Java.SingleElementAnnotation extends Java.AbstractAnnotation
| Modifier and Type | Field and Description |
|---|---|
Java.ElementValue |
elementValue
The element value associated with this single-element annotation.
|
type| Constructor and Description |
|---|
SingleElementAnnotation(Java.ReferenceType type,
Java.ElementValue elementValue) |
| Modifier and Type | Method and Description |
|---|---|
<R,EX extends Throwable> |
accept(Visitor.AnnotationVisitor<R,EX> visitor)
|
Java.Type |
getType() |
void |
setEnclosingScope(Java.Scope enclosingScope)
Sets the enclosing scope for this annotation.
|
String |
toString() |
accept, getLocation, throwCompileExceptionpublic final Java.ElementValue elementValue
public SingleElementAnnotation(Java.ReferenceType type, Java.ElementValue elementValue)
public void setEnclosingScope(Java.Scope enclosingScope)
Java.AnnotationsetEnclosingScope in interface Java.AnnotationsetEnclosingScope in interface Java.ElementValuesetEnclosingScope in class Java.AbstractAnnotationpublic Java.Type getType()
@Nullable public <R,EX extends Throwable> R accept(Visitor.AnnotationVisitor<R,EX> visitor) throws EX extends Throwable
Java.AnnotationEX extends ThrowableCopyright © 2019. All rights reserved.