Class VariableNameDeclaration
- java.lang.Object
-
- net.sourceforge.pmd.lang.symboltable.AbstractNameDeclaration
-
- 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
Constructors Constructor Description VariableNameDeclaration(ASTVariableDeclaratorId node)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(Object o)
AccessNode
getAccessNodeParent()
int
getArrayDepth()
ASTVariableDeclaratorId
getDeclaratorId()
Scope
getScope()
Class<?>
getType()
String
getTypeImage()
TypeNode
getTypeNode()
Nullableint
hashCode()
boolean
isArray()
boolean
isExceptionBlockParameter()
boolean
isLambdaTypelessParameter()
Deprecated.useisTypeInferred()
boolean
isPrimitiveType()
boolean
isReferenceType()
Note that an array of primitive types (int[]) is a reference type.boolean
isTypeInferred()
boolean
isVarargs()
String
toString()
-
Methods inherited from class net.sourceforge.pmd.lang.symboltable.AbstractNameDeclaration
getImage, getName, getNode
-
-
-
-
Constructor Detail
-
VariableNameDeclaration
public VariableNameDeclaration(ASTVariableDeclaratorId node)
-
-
Method Detail
-
getScope
public Scope getScope()
- Specified by:
getScope
in interfaceNameDeclaration
- Overrides:
getScope
in classAbstractNameDeclaration
-
isArray
public boolean isArray()
-
getArrayDepth
public int getArrayDepth()
-
isVarargs
public boolean isVarargs()
-
isExceptionBlockParameter
public boolean isExceptionBlockParameter()
-
isLambdaTypelessParameter
@Deprecated public boolean isLambdaTypelessParameter()
Deprecated.useisTypeInferred()
-
isTypeInferred
public boolean isTypeInferred()
-
isPrimitiveType
public boolean isPrimitiveType()
-
getTypeImage
public String getTypeImage()
- Specified by:
getTypeImage
in interfaceTypedNameDeclaration
-
isReferenceType
public boolean isReferenceType()
Note that an array of primitive types (int[]) is a reference type.
-
getAccessNodeParent
public AccessNode getAccessNodeParent()
-
getDeclaratorId
public ASTVariableDeclaratorId getDeclaratorId()
-
getTypeNode
public TypeNode getTypeNode()
Description copied from interface:TypedNameDeclaration
Nullable- Specified by:
getTypeNode
in interfaceTypedNameDeclaration
-
getType
public Class<?> getType()
- Specified by:
getType
in interfaceTypedNameDeclaration
-
-