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

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

public class MethodDeclarationImpl
extends ExecutableDeclarationImpl
implements MethodDeclaration

Implementation of MethodDeclaration


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
MethodDeclarationImpl(AptEnv env, Symbol.MethodSymbol sym)
           
 
Method Summary
 void accept(DeclarationVisitor v)
          Applies a visitor to this declaration.
 TypeMirror getReturnType()
          Returns the formal return type of this method.
 
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, 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, 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, getSimpleName
 

Constructor Detail

MethodDeclarationImpl

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

getReturnType

public TypeMirror getReturnType()
Returns the formal return type of this method. Returns VoidType if this method does not return a value.

Specified by:
getReturnType in interface MethodDeclaration
Returns:
the formal return type of this method

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