net.sourceforge.pmd.ast

Class ASTMethodDeclaration

public class ASTMethodDeclaration extends AccessNode

Constructor Summary
ASTMethodDeclaration(int id)
ASTMethodDeclaration(JavaParser p, int id)
Method Summary
voiddump(String prefix)
ASTBlockgetBlock()
StringgetMethodName()
Gets the name of the method.
ASTResultTypegetResultType()
booleanisAbstract()
booleanisInterfaceMember()
booleanisPublic()
booleanisSyntacticallyAbstract()
booleanisSyntacticallyPublic()
booleanisVoid()
ObjectjjtAccept(JavaParserVisitor visitor, Object data)
Accept the visitor.

Constructor Detail

ASTMethodDeclaration

public ASTMethodDeclaration(int id)

ASTMethodDeclaration

public ASTMethodDeclaration(JavaParser p, int id)

Method Detail

dump

public void dump(String prefix)

getBlock

public ASTBlock getBlock()

getMethodName

public String getMethodName()
Gets the name of the method.

Returns: a String representing the name of the method

getResultType

public ASTResultType getResultType()

isAbstract

public boolean isAbstract()

isInterfaceMember

public boolean isInterfaceMember()

isPublic

public boolean isPublic()

isSyntacticallyAbstract

public boolean isSyntacticallyAbstract()

isSyntacticallyPublic

public boolean isSyntacticallyPublic()

isVoid

public boolean isVoid()

jjtAccept

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