|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.tools.javac.code.Attribute
com.sun.tools.javac.code.Attribute.Compound
public static class Attribute.Compound
A compound annotation element value, the type of which is an attribute interface.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.sun.tools.javac.code.Attribute |
|---|
Attribute.Array, Attribute.Class, Attribute.Compound, Attribute.Constant, Attribute.Enum, Attribute.Error, Attribute.Visitor |
| Field Summary | |
|---|---|
List<Pair<Symbol.MethodSymbol,Attribute>> |
values
The attributes values, as pairs. |
| Fields inherited from class com.sun.tools.javac.code.Attribute |
|---|
type |
| Constructor Summary | |
|---|---|
Attribute.Compound(Type type,
List<Pair<Symbol.MethodSymbol,Attribute>> values)
|
|
| Method Summary | ||
|---|---|---|
|
accept(AnnotationValueVisitor<R,P> v,
P p)
Applies a visitor to this value. |
|
void |
accept(Attribute.Visitor v)
|
|
DeclaredType |
getAnnotationType()
Returns the type of this annotation. |
|
java.util.Map<Symbol.MethodSymbol,Attribute> |
getElementValues()
Returns the values of this annotation's elements. |
|
Attribute.Compound |
getValue()
Returns the value. |
|
Attribute |
member(Name member)
|
|
java.lang.String |
toString()
Returns a string representation of this annotation. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final List<Pair<Symbol.MethodSymbol,Attribute>> values
| Constructor Detail |
|---|
public Attribute.Compound(Type type,
List<Pair<Symbol.MethodSymbol,Attribute>> values)
| Method Detail |
|---|
public void accept(Attribute.Visitor v)
accept in class Attributepublic java.lang.String toString()
toString in interface AnnotationValuetoString in class java.lang.Objectpublic Attribute member(Name member)
public Attribute.Compound getValue()
AnnotationValue
getValue in interface AnnotationValuegetValue in class Attribute
public <R,P> R accept(AnnotationValueVisitor<R,P> v,
P p)
AnnotationValue
accept in interface AnnotationValueaccept in class AttributeR - 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
public DeclaredType getAnnotationType()
AnnotationMirror
getAnnotationType in interface AnnotationMirrorpublic java.util.Map<Symbol.MethodSymbol,Attribute> getElementValues()
AnnotationMirrorNote that an annotation mirror of a marker annotation type will by definition have an empty map.
To fill in default values, use getElementValuesWithDefaults.
getElementValues in interface AnnotationMirror
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||