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

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
All Implemented Interfaces:
Declaration, ExecutableDeclaration, MemberDeclaration
Direct Known Subclasses:
ConstructorDeclarationImpl, MethodDeclarationImpl

public abstract class ExecutableDeclarationImpl
extends MemberDeclarationImpl
implements ExecutableDeclaration

Implementation of ExecutableDeclaration


Field Summary
 Symbol.MethodSymbol sym
           
 
Fields inherited from class com.sun.tools.apt.mirror.declaration.DeclarationImpl
env, identityFilter
 
Constructor Summary
protected ExecutableDeclarationImpl(AptEnv env, Symbol.MethodSymbol sym)
           
 
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 com.sun.tools.apt.mirror.declaration.MemberDeclarationImpl
accept, getDeclaringType, 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.ExecutableDeclaration
getFormalTypeParameters
 
Methods inherited from interface com.sun.mirror.declaration.MemberDeclaration
getDeclaringType
 
Methods inherited from interface com.sun.mirror.declaration.Declaration
accept, equals, getAnnotation, getAnnotationMirrors, getDocComment, getModifiers, getPosition, getSimpleName
 

Field Detail

sym

public Symbol.MethodSymbol sym
Constructor Detail

ExecutableDeclarationImpl

protected ExecutableDeclarationImpl(AptEnv env,
                                    Symbol.MethodSymbol sym)
Method Detail

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