net.sourceforge.pmd.ast

Class ASTFieldDeclaration

public class ASTFieldDeclaration extends SimpleJavaAccessTypeNode implements Dimensionable

Constructor Summary
ASTFieldDeclaration(int id)
ASTFieldDeclaration(JavaParser p, int id)
Method Summary
voiddump(String prefix)
intgetArrayDepth()
StringgetVariableName()
Gets the variable name of this field.
booleanisArray()
booleanisFinal()
booleanisInterfaceMember()
booleanisPackagePrivate()
booleanisPrivate()
booleanisProtected()
booleanisPublic()
booleanisStatic()
booleanisSyntacticallyFinal()
booleanisSyntacticallyPublic()
booleanisSyntacticallyStatic()
ObjectjjtAccept(JavaParserVisitor visitor, Object data)
Accept the visitor.

Constructor Detail

ASTFieldDeclaration

public ASTFieldDeclaration(int id)

ASTFieldDeclaration

public ASTFieldDeclaration(JavaParser p, int id)

Method Detail

dump

public void dump(String prefix)

getArrayDepth

public int getArrayDepth()

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

isArray

public boolean isArray()

isFinal

public boolean isFinal()

isInterfaceMember

public boolean isInterfaceMember()

isPackagePrivate

public boolean isPackagePrivate()

isPrivate

public boolean isPrivate()

isProtected

public boolean isProtected()

isPublic

public boolean isPublic()

isStatic

public boolean isStatic()

isSyntacticallyFinal

public boolean isSyntacticallyFinal()

isSyntacticallyPublic

public boolean isSyntacticallyPublic()

isSyntacticallyStatic

public boolean isSyntacticallyStatic()

jjtAccept

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