com.sun.tools.apt.mirror.declaration
Class ExecutableDeclarationImpl
java.lang.Object
com.sun.tools.apt.mirror.declaration.DeclarationImpl
com.sun.tools.apt.mirror.declaration.MemberDeclarationImpl
com.sun.tools.apt.mirror.declaration.ExecutableDeclarationImpl
- All Implemented Interfaces:
- Declaration, ExecutableDeclaration, MemberDeclaration
- Direct Known Subclasses:
- ConstructorDeclarationImpl, MethodDeclarationImpl
public abstract class ExecutableDeclarationImpl
- extends MemberDeclarationImpl
- implements ExecutableDeclaration
Implementation of ExecutableDeclaration
|
Method Summary |
java.util.Collection<ParameterDeclaration> |
getParameters()
Returns the formal parameters of this method or constructor. |
java.util.Collection<ReferenceType> |
getThrownTypes()
Returns the exceptions and other throwables listed in this
method or constructor's throws clause. |
boolean |
isVarArgs()
Returns true if this method or constructor accepts a variable
number of arguments. |
java.lang.String |
toString()
Returns type parameters (if any), method name, and signature
(value parameter types). |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
sym
public Symbol.MethodSymbol sym
ExecutableDeclarationImpl
protected ExecutableDeclarationImpl(AptEnv env,
Symbol.MethodSymbol sym)
toString
public java.lang.String toString()
- Returns type parameters (if any), method name, and signature
(value parameter types).
- Overrides:
toString in class java.lang.Object
isVarArgs
public boolean isVarArgs()
- Returns true if this method or constructor accepts a variable
number of arguments.
- Specified by:
isVarArgs in interface ExecutableDeclaration
- Returns:
- true if this method or constructor accepts a variable
number of arguments
getParameters
public java.util.Collection<ParameterDeclaration> getParameters()
- Returns the formal parameters of this method or constructor.
They are returned in declaration order.
- Specified by:
getParameters in interface ExecutableDeclaration
- Returns:
- the formal parameters of this method or constructor,
or an empty collection if there are none
getThrownTypes
public java.util.Collection<ReferenceType> getThrownTypes()
- Returns the exceptions and other throwables listed in this
method or constructor's throws clause.
- Specified by:
getThrownTypes in interface ExecutableDeclaration
- Returns:
- the exceptions and other throwables listed in the
throws clause, or an empty collection if there are none