Class VariableNameDeclaration
- java.lang.Object
-
- net.sourceforge.pmd.lang.symboltable.AbstractNameDeclaration
-
- net.sourceforge.pmd.lang.java.symboltable.VariableNameDeclaration
-
- All Implemented Interfaces:
TypedNameDeclaration
,net.sourceforge.pmd.lang.symboltable.NameDeclaration
public class VariableNameDeclaration extends net.sourceforge.pmd.lang.symboltable.AbstractNameDeclaration implements TypedNameDeclaration
-
-
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(java.lang.Object o)
AccessNode
getAccessNodeParent()
int
getArrayDepth()
ASTVariableDeclaratorId
getDeclaratorId()
net.sourceforge.pmd.lang.symboltable.Scope
getScope()
java.lang.Class<?>
getType()
java.lang.String
getTypeImage()
int
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()
java.lang.String
toString()
-
-
-
Constructor Detail
-
VariableNameDeclaration
public VariableNameDeclaration(ASTVariableDeclaratorId node)
-
-
Method Detail
-
getScope
public net.sourceforge.pmd.lang.symboltable.Scope getScope()
- Specified by:
getScope
in interfacenet.sourceforge.pmd.lang.symboltable.NameDeclaration
- Overrides:
getScope
in classnet.sourceforge.pmd.lang.symboltable.AbstractNameDeclaration
-
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 java.lang.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()
-
getType
public java.lang.Class<?> getType()
- Specified by:
getType
in interfaceTypedNameDeclaration
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-