net.sourceforge.pmd.ast

Class ASTLocalVariableDeclaration

public class ASTLocalVariableDeclaration extends AccessNode implements Dimensionable, CanSuppressWarnings

Constructor Summary
ASTLocalVariableDeclaration(int id)
ASTLocalVariableDeclaration(JavaParser p, int id)
Method Summary
voiddump(String prefix)
intgetArrayDepth()
ASTTypegetTypeNode()
StringgetVariableName()
Gets the variable name of this field.
booleanhasSuppressWarningsAnnotationFor(Rule rule)
booleanisArray()
ObjectjjtAccept(JavaParserVisitor visitor, Object data)
Accept the visitor.

Constructor Detail

ASTLocalVariableDeclaration

public ASTLocalVariableDeclaration(int id)

ASTLocalVariableDeclaration

public ASTLocalVariableDeclaration(JavaParser p, int id)

Method Detail

dump

public void dump(String prefix)

getArrayDepth

public int getArrayDepth()

getTypeNode

public ASTType getTypeNode()

getVariableName

public String getVariableName()
Gets the variable name of this field. This method searches the first VariableDeclartorId node and returns it's image or null if the child node is not found.

Returns: a String representing the name of the variable

hasSuppressWarningsAnnotationFor

public boolean hasSuppressWarningsAnnotationFor(Rule rule)

isArray

public boolean isArray()

jjtAccept

public Object jjtAccept(JavaParserVisitor visitor, Object data)
Accept the visitor. *