net.sourceforge.pmd.lang.java.symboltable
Class VariableNameDeclaration

java.lang.Object
  extended by net.sourceforge.pmd.lang.symboltable.AbstractNameDeclaration
      extended by net.sourceforge.pmd.lang.java.symboltable.VariableNameDeclaration
All Implemented Interfaces:
TypedNameDeclaration, NameDeclaration

public class VariableNameDeclaration
extends AbstractNameDeclaration
implements TypedNameDeclaration


Field Summary
 
Fields inherited from class net.sourceforge.pmd.lang.symboltable.AbstractNameDeclaration
node
 
Constructor Summary
VariableNameDeclaration(ASTVariableDeclaratorId node)
           
 
Method Summary
 boolean equals(Object o)
           
 AccessNode getAccessNodeParent()
           
 ASTVariableDeclaratorId getDeclaratorId()
           
 Scope getScope()
           
 Class<?> getType()
           
 String getTypeImage()
           
 int hashCode()
           
 boolean isArray()
           
 boolean isExceptionBlockParameter()
           
 boolean isLambdaTypelessParameter()
           
 boolean isPrimitiveType()
           
 boolean isReferenceType()
          Note that an array of primitive types (int[]) is a reference type.
 String toString()
           
 
Methods inherited from class net.sourceforge.pmd.lang.symboltable.AbstractNameDeclaration
getImage, getName, getNode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VariableNameDeclaration

public VariableNameDeclaration(ASTVariableDeclaratorId node)
Method Detail

getScope

public Scope getScope()
Specified by:
getScope in interface NameDeclaration
Overrides:
getScope in class AbstractNameDeclaration

isArray

public boolean isArray()

isExceptionBlockParameter

public boolean isExceptionBlockParameter()

isLambdaTypelessParameter

public boolean isLambdaTypelessParameter()

isPrimitiveType

public boolean isPrimitiveType()

getTypeImage

public String getTypeImage()
Specified by:
getTypeImage in interface TypedNameDeclaration

isReferenceType

public boolean isReferenceType()
Note that an array of primitive types (int[]) is a reference type.


getAccessNodeParent

public AccessNode getAccessNodeParent()

getDeclaratorId

public ASTVariableDeclaratorId getDeclaratorId()

getType

public Class<?> getType()
Specified by:
getType in interface TypedNameDeclaration

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2015 InfoEther. All Rights Reserved.