Class AnnotationDescImpl.ElementValuePairImpl
- java.lang.Object
-
- gw.gosudoc.com.sun.tools.javadoc.main.AnnotationDescImpl.ElementValuePairImpl
-
- All Implemented Interfaces:
AnnotationDesc.ElementValuePair
- Enclosing class:
- AnnotationDescImpl
public static class AnnotationDescImpl.ElementValuePairImpl extends java.lang.Object implements AnnotationDesc.ElementValuePair
Represents an association between an annotation type element and one of its values.
-
-
Constructor Summary
Constructors Constructor Description ElementValuePairImpl(DocEnv env, com.sun.tools.javac.code.Symbol.MethodSymbol meth, com.sun.tools.javac.code.Attribute value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotationTypeElementDocelement()Returns the annotation type element.java.lang.StringtoString()Returns a string representation of this pair of the form "name=value".AnnotationValuevalue()Returns the value associated with the annotation type element.
-
-
-
Field Detail
-
env
private final DocEnv env
-
meth
private final com.sun.tools.javac.code.Symbol.MethodSymbol meth
-
value
private final com.sun.tools.javac.code.Attribute value
-
-
Constructor Detail
-
ElementValuePairImpl
ElementValuePairImpl(DocEnv env, com.sun.tools.javac.code.Symbol.MethodSymbol meth, com.sun.tools.javac.code.Attribute value)
-
-
Method Detail
-
element
public AnnotationTypeElementDoc element()
Returns the annotation type element.- Specified by:
elementin interfaceAnnotationDesc.ElementValuePair- Returns:
- the annotation type element.
-
value
public AnnotationValue value()
Returns the value associated with the annotation type element.- Specified by:
valuein interfaceAnnotationDesc.ElementValuePair- Returns:
- the value associated with the annotation type element.
-
toString
public java.lang.String toString()
Returns a string representation of this pair of the form "name=value".- Overrides:
toStringin classjava.lang.Object
-
-