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

java.lang.Object
  extended by com.sun.tools.apt.mirror.declaration.DeclarationImpl
      extended by com.sun.tools.apt.mirror.declaration.ParameterDeclarationImpl
All Implemented Interfaces:
Declaration, ParameterDeclaration

public class ParameterDeclarationImpl
extends DeclarationImpl
implements ParameterDeclaration

Implementation of ParameterDeclaration


Field Summary
protected  Symbol.VarSymbol sym
           
 
Fields inherited from class com.sun.tools.apt.mirror.declaration.DeclarationImpl
env, identityFilter
 
Constructor Summary
ParameterDeclarationImpl(AptEnv env, Symbol.VarSymbol sym)
           
 
Method Summary
 void accept(DeclarationVisitor v)
          Applies a visitor to this declaration.
 boolean equals(java.lang.Object obj)
          Tests whether an object represents the same declaration as this.
 TypeMirror getType()
          Returns the type of this parameter.
 int hashCode()
          
 java.lang.String toString()
          Returns the simple name of the parameter.
 
Methods inherited from class com.sun.tools.apt.mirror.declaration.DeclarationImpl
getAnnotation, getAnnotation, getAnnotationMirrors, getDocComment, getMembers, getModifiers, getPosition, getSimpleName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.sun.mirror.declaration.Declaration
getAnnotation, getAnnotationMirrors, getDocComment, getModifiers, getPosition, getSimpleName
 

Field Detail

sym

protected Symbol.VarSymbol sym
Constructor Detail

ParameterDeclarationImpl

ParameterDeclarationImpl(AptEnv env,
                         Symbol.VarSymbol sym)
Method Detail

toString

public java.lang.String toString()
Returns the simple name of the parameter.

Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Tests whether an object represents the same declaration as this.

ParameterDeclarationImpl overrides this implementation.

Specified by:
equals in interface Declaration
Overrides:
equals in class DeclarationImpl
Parameters:
obj - the object to be compared with this declaration
Returns:
true if the specified object represents the same declaration as this

hashCode

public int hashCode()

ParameterDeclarationImpl overrides this implementation.

Overrides:
hashCode in class DeclarationImpl

getType

public TypeMirror getType()
Returns the type of this parameter.

Specified by:
getType in interface ParameterDeclaration
Returns:
the type of this parameter

accept

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

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