net.sourceforge.pmd.lang.java.ast
Class ASTMethodDeclaration
java.lang.Object
net.sourceforge.pmd.lang.ast.AbstractNode
net.sourceforge.pmd.lang.java.ast.AbstractJavaNode
net.sourceforge.pmd.lang.java.ast.AbstractJavaAccessNode
net.sourceforge.pmd.lang.java.ast.ASTMethodDeclaration
- All Implemented Interfaces:
- Node, DFAGraphMethod, AccessNode, JavaNode, ScopedNode
public class ASTMethodDeclaration
- extends AbstractJavaAccessNode
- implements DFAGraphMethod
Fields inherited from interface net.sourceforge.pmd.lang.java.ast.AccessNode |
ABSTRACT, DEFAULT, FINAL, NATIVE, PRIVATE, PROTECTED, PUBLIC, STATIC, STRICTFP, SYNCHRONIZED, TRANSIENT, VOLATILE |
Methods inherited from class net.sourceforge.pmd.lang.java.ast.AbstractJavaAccessNode |
getModifiers, isDefault, isFinal, isNative, isPackagePrivate, isPrivate, isProtected, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile, setAbstract, setDefault, setFinal, setModifiers, setNative, setPrivate, setProtected, setPublic, setStatic, setStrictfp, setSynchronized, setTransient, setVolatile |
Methods inherited from class net.sourceforge.pmd.lang.ast.AbstractNode |
appendElement, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, hasDecendantOfAnyType, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, isSingleLine, jjtAddChild, jjtGetChild, jjtGetChildIndex, jjtGetFirstToken, jjtGetId, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtSetChildIndex, jjtSetFirstToken, jjtSetLastToken, jjtSetParent, setDataFlowNode, setImage, setUserData, testingOnly__setBeginColumn, testingOnly__setBeginLine, testingOnly__setEndColumn, testingOnly__setEndLine |
Methods inherited from interface net.sourceforge.pmd.lang.ast.Node |
findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtClose, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetChildIndex, jjtSetParent, setDataFlowNode, setImage, setUserData |
ASTMethodDeclaration
public ASTMethodDeclaration(int id)
ASTMethodDeclaration
public ASTMethodDeclaration(JavaParser p,
int id)
jjtAccept
public Object jjtAccept(JavaParserVisitor visitor,
Object data)
- Accept the visitor. *
- Specified by:
jjtAccept
in interface JavaNode
- Overrides:
jjtAccept
in class AbstractJavaNode
getMethodName
public String getMethodName()
- Gets the name of the method.
- Returns:
- a String representing the name of the method
getName
public String getName()
- Specified by:
getName
in interface DFAGraphMethod
isSyntacticallyPublic
public boolean isSyntacticallyPublic()
isSyntacticallyAbstract
public boolean isSyntacticallyAbstract()
isPublic
public boolean isPublic()
- Specified by:
isPublic
in interface AccessNode
- Overrides:
isPublic
in class AbstractJavaAccessNode
isAbstract
public boolean isAbstract()
- Specified by:
isAbstract
in interface AccessNode
- Overrides:
isAbstract
in class AbstractJavaAccessNode
isInterfaceMember
public boolean isInterfaceMember()
isVoid
public boolean isVoid()
getResultType
public ASTResultType getResultType()
getBlock
public ASTBlock getBlock()
getThrows
public ASTNameList getThrows()
Copyright © 2002-2016 InfoEther. All Rights Reserved.