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 booleanequals(Object o)AccessNodegetAccessNodeParent()intgetArrayDepth()ASTVariableDeclaratorIdgetDeclaratorId()net.sourceforge.pmd.lang.symboltable.ScopegetScope()Class<?>getType()StringgetTypeImage()inthashCode()booleanisArray()booleanisExceptionBlockParameter()booleanisLambdaTypelessParameter()Deprecated.useisTypeInferred()booleanisPrimitiveType()booleanisReferenceType()Note that an array of primitive types (int[]) is a reference type.booleanisTypeInferred()booleanisVarargs()StringtoString()
-
-
-
Constructor Detail
-
VariableNameDeclaration
public VariableNameDeclaration(ASTVariableDeclaratorId node)
-
-
Method Detail
-
getScope
public net.sourceforge.pmd.lang.symboltable.Scope getScope()
- Specified by:
getScopein interfacenet.sourceforge.pmd.lang.symboltable.NameDeclaration- Overrides:
getScopein 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 String getTypeImage()
- Specified by:
getTypeImagein 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 Class<?> getType()
- Specified by:
getTypein interfaceTypedNameDeclaration
-
-