com.sun.tools.apt.mirror.declaration
Class EnumConstantDeclarationImpl

java.lang.Object
  extended by com.sun.tools.apt.mirror.declaration.DeclarationImpl
      extended by com.sun.tools.apt.mirror.declaration.MemberDeclarationImpl
          extended by com.sun.tools.apt.mirror.declaration.FieldDeclarationImpl
              extended by com.sun.tools.apt.mirror.declaration.EnumConstantDeclarationImpl
All Implemented Interfaces:
Declaration, EnumConstantDeclaration, FieldDeclaration, MemberDeclaration

public class EnumConstantDeclarationImpl
extends FieldDeclarationImpl
implements EnumConstantDeclaration

Implementation of EnumConstantDeclaration


Field Summary
 
Fields inherited from class com.sun.tools.apt.mirror.declaration.FieldDeclarationImpl
sym
 
Fields inherited from class com.sun.tools.apt.mirror.declaration.DeclarationImpl
env, identityFilter
 
Constructor Summary
EnumConstantDeclarationImpl(AptEnv env, Symbol.VarSymbol sym)
           
 
Method Summary
 void accept(DeclarationVisitor v)
          Applies a visitor to this declaration.
 EnumDeclaration getDeclaringType()
          Returns the type declaration within which this member or constructor is declared. If this is the declaration of a top-level type (a non-nested class or interface), returns null.
 
Methods inherited from class com.sun.tools.apt.mirror.declaration.FieldDeclarationImpl
getConstantExpression, getConstantValue, getType, toString
 
Methods inherited from class com.sun.tools.apt.mirror.declaration.MemberDeclarationImpl
getFormalTypeParameters, typeParamsToString
 
Methods inherited from class com.sun.tools.apt.mirror.declaration.DeclarationImpl
equals, getAnnotation, getAnnotation, getAnnotationMirrors, getDocComment, getMembers, getModifiers, getPosition, getSimpleName, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.sun.mirror.declaration.FieldDeclaration
getConstantExpression, getConstantValue, getType
 
Methods inherited from interface com.sun.mirror.declaration.Declaration
equals, getAnnotation, getAnnotationMirrors, getDocComment, getModifiers, getPosition, getSimpleName
 

Constructor Detail

EnumConstantDeclarationImpl

EnumConstantDeclarationImpl(AptEnv env,
                            Symbol.VarSymbol sym)
Method Detail

getDeclaringType

public EnumDeclaration getDeclaringType()
Returns the type declaration within which this member or constructor is declared. If this is the declaration of a top-level type (a non-nested class or interface), returns null.

Specified by:
getDeclaringType in interface EnumConstantDeclaration
Specified by:
getDeclaringType in interface MemberDeclaration
Overrides:
getDeclaringType in class MemberDeclarationImpl
Returns:
the type declaration within which this member or constructor is declared, or null if there is none

accept

public void accept(DeclarationVisitor v)
Applies a visitor to this declaration.

Specified by:
accept in interface Declaration
Overrides:
accept in class FieldDeclarationImpl
Parameters:
v - the visitor operating on this declaration