|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.tools.javac.code.Attribute
public abstract class Attribute
An annotation value.
This is NOT part of any API supported by Sun Microsystems. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
| Nested Class Summary | |
|---|---|
static class |
Attribute.Array
The value for an annotation element of an array type. |
static class |
Attribute.Class
The value for an annotation element of type java.lang.Class, represented as a ClassSymbol. |
static class |
Attribute.Compound
A compound annotation element value, the type of which is an attribute interface. |
static class |
Attribute.Constant
The value for an annotation element of primitive type or String. |
static class |
Attribute.Enum
The value for an annotation element of an enum type. |
static class |
Attribute.Error
|
static interface |
Attribute.Visitor
A visitor type for dynamic dispatch on the kind of attribute value. |
| Field Summary | |
|---|---|
Type |
type
The type of the annotation element. |
| Constructor Summary | |
|---|---|
Attribute(Type type)
|
|
| Method Summary | ||
|---|---|---|
|
accept(AnnotationValueVisitor<R,P> v,
P p)
Applies a visitor to this value. |
|
abstract void |
accept(Attribute.Visitor v)
|
|
java.lang.Object |
getValue()
Returns the value. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.lang.model.element.AnnotationValue |
|---|
toString |
| Field Detail |
|---|
public Type type
| Constructor Detail |
|---|
public Attribute(Type type)
| Method Detail |
|---|
public abstract void accept(Attribute.Visitor v)
public java.lang.Object getValue()
AnnotationValue
getValue in interface AnnotationValue
public <R,P> R accept(AnnotationValueVisitor<R,P> v,
P p)
AnnotationValue
accept in interface AnnotationValueR - the return type of the visitor's methodsP - the type of the additional parameter to the visitor's methodsv - the visitor operating on this valuep - additional parameter to the visitor
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||