com.sun.tools.javac.code
Class Attribute.Enum

java.lang.Object
  extended by com.sun.tools.javac.code.Attribute
      extended by com.sun.tools.javac.code.Attribute.Enum
All Implemented Interfaces:
AnnotationValue
Enclosing class:
Attribute

public static class Attribute.Enum
extends Attribute

The value for an annotation element of an enum type.


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
 Symbol.VarSymbol value
           
 
Fields inherited from class com.sun.tools.javac.code.Attribute
type
 
Constructor Summary
Attribute.Enum(Type type, Symbol.VarSymbol value)
           
 
Method Summary
<R,P> R
accept(AnnotationValueVisitor<R,P> v, P p)
          Applies a visitor to this value.
 void accept(Attribute.Visitor v)
           
 Symbol.VarSymbol getValue()
          Returns the value.
 java.lang.String toString()
          Returns a string representation of this value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

public Symbol.VarSymbol value
Constructor Detail

Attribute.Enum

public Attribute.Enum(Type type,
                      Symbol.VarSymbol value)
Method Detail

accept

public void accept(Attribute.Visitor v)
Specified by:
accept in class Attribute

toString

public java.lang.String toString()
Description copied from interface: AnnotationValue
Returns a string representation of this value. This is returned in a form suitable for representing this value in the source code of an annotation.

Specified by:
toString in interface AnnotationValue
Overrides:
toString in class java.lang.Object
Returns:
a string representation of this value

getValue

public Symbol.VarSymbol getValue()
Description copied from interface: AnnotationValue
Returns the value.

Specified by:
getValue in interface AnnotationValue
Overrides:
getValue in class Attribute
Returns:
the value

accept

public <R,P> R accept(AnnotationValueVisitor<R,P> v,
                      P p)
Description copied from interface: AnnotationValue
Applies a visitor to this value.

Specified by:
accept in interface AnnotationValue
Overrides:
accept in class Attribute
Type Parameters:
R - the return type of the visitor's methods
P - the type of the additional parameter to the visitor's methods
Parameters:
v - the visitor operating on this value
p - additional parameter to the visitor
Returns:
a visitor-specified result