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

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.ExecutableDeclarationImpl
              extended by com.sun.tools.apt.mirror.declaration.ConstructorDeclarationImpl
All Implemented Interfaces:
ConstructorDeclaration, Declaration, ExecutableDeclaration, MemberDeclaration

public class ConstructorDeclarationImpl
extends ExecutableDeclarationImpl
implements ConstructorDeclaration

Implementation of ConstructorDeclaration


Field Summary
 
Fields inherited from class com.sun.tools.apt.mirror.declaration.ExecutableDeclarationImpl
sym
 
Fields inherited from class com.sun.tools.apt.mirror.declaration.DeclarationImpl
env, identityFilter
 
Constructor Summary
ConstructorDeclarationImpl(AptEnv env, Symbol.MethodSymbol sym)
           
 
Method Summary
 void accept(DeclarationVisitor v)
          Applies a visitor to this declaration.
 java.lang.String getSimpleName()
          Returns the simple (unqualified) name of this declaration. The name of a generic type does not include any reference to its formal type parameters. For example, the simple name of the interface declaration java.util.Set<E> is "Set". If this declaration represents the empty package, an empty string is returned. If it represents a constructor, the simple name of its declaring class is returned. Overridden in some subclasses. Returns the simple name of the declaring class.
 
Methods inherited from class com.sun.tools.apt.mirror.declaration.ExecutableDeclarationImpl
getParameters, getThrownTypes, isVarArgs, toString
 
Methods inherited from class com.sun.tools.apt.mirror.declaration.MemberDeclarationImpl
getDeclaringType, getFormalTypeParameters, typeParamsToString
 
Methods inherited from class com.sun.tools.apt.mirror.declaration.DeclarationImpl
equals, getAnnotation, getAnnotation, getAnnotationMirrors, getDocComment, getMembers, getModifiers, getPosition, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.sun.mirror.declaration.ExecutableDeclaration
getFormalTypeParameters, getParameters, getThrownTypes, isVarArgs
 
Methods inherited from interface com.sun.mirror.declaration.MemberDeclaration
getDeclaringType
 
Methods inherited from interface com.sun.mirror.declaration.Declaration
equals, getAnnotation, getAnnotationMirrors, getDocComment, getModifiers, getPosition
 

Constructor Detail

ConstructorDeclarationImpl

ConstructorDeclarationImpl(AptEnv env,
                           Symbol.MethodSymbol sym)
Method Detail

getSimpleName

public java.lang.String getSimpleName()
Returns the simple (unqualified) name of this declaration. The name of a generic type does not include any reference to its formal type parameters. For example, the simple name of the interface declaration java.util.Set<E> is "Set". If this declaration represents the empty package, an empty string is returned. If it represents a constructor, the simple name of its declaring class is returned. Overridden in some subclasses. Returns the simple name of the declaring class.

Specified by:
getSimpleName in interface Declaration
Overrides:
getSimpleName in class DeclarationImpl
Returns:
the simple name of this declaration

accept

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

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