com.sun.tools.apt.mirror.declaration
Class ConstructorDeclarationImpl
java.lang.Object
com.sun.tools.apt.mirror.declaration.DeclarationImpl
com.sun.tools.apt.mirror.declaration.MemberDeclarationImpl
com.sun.tools.apt.mirror.declaration.ExecutableDeclarationImpl
com.sun.tools.apt.mirror.declaration.ConstructorDeclarationImpl
- All Implemented Interfaces:
- ConstructorDeclaration, Declaration, ExecutableDeclaration, MemberDeclaration
public class ConstructorDeclarationImpl
- extends ExecutableDeclarationImpl
- implements ConstructorDeclaration
Implementation of ConstructorDeclaration
|
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 java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ConstructorDeclarationImpl
ConstructorDeclarationImpl(AptEnv env,
Symbol.MethodSymbol sym)
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