TypedNameDeclaration, net.sourceforge.pmd.lang.symboltable.NameDeclarationpublic 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.NameDeclarationgetScope in class net.sourceforge.pmd.lang.symboltable.AbstractNameDeclarationpublic 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 TypedNameDeclarationpublic boolean isReferenceType()
public AccessNode getAccessNodeParent()
public ASTVariableDeclaratorId getDeclaratorId()
public java.lang.Class<?> getType()
getType in interface TypedNameDeclarationpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2002–2018 PMD. All rights reserved.