TypedNameDeclaration
, net.sourceforge.pmd.lang.symboltable.NameDeclaration
public class VariableNameDeclaration extends net.sourceforge.pmd.lang.symboltable.AbstractNameDeclaration implements TypedNameDeclaration
Constructor | Description |
---|---|
VariableNameDeclaration(ASTVariableDeclaratorId node) |
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.
use
isTypeInferred() |
boolean |
isPrimitiveType() |
|
boolean |
isReferenceType() |
Note that an array of primitive types (int[]) is a reference type.
|
boolean |
isTypeInferred() |
|
boolean |
isVarargs() |
|
java.lang.String |
toString() |
public VariableNameDeclaration(ASTVariableDeclaratorId node)
public net.sourceforge.pmd.lang.symboltable.Scope getScope()
getScope
in interface net.sourceforge.pmd.lang.symboltable.NameDeclaration
getScope
in class net.sourceforge.pmd.lang.symboltable.AbstractNameDeclaration
public boolean isArray()
public int getArrayDepth()
public boolean isVarargs()
public boolean isExceptionBlockParameter()
@Deprecated public boolean isLambdaTypelessParameter()
isTypeInferred()
public boolean isTypeInferred()
public boolean isPrimitiveType()
public java.lang.String getTypeImage()
getTypeImage
in interface TypedNameDeclaration
public boolean isReferenceType()
public AccessNode getAccessNodeParent()
public ASTVariableDeclaratorId getDeclaratorId()
public java.lang.Class<?> getType()
getType
in interface TypedNameDeclaration
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2002–2018 PMD. All rights reserved.