net.sourceforge.pmd.lang.ast.Node
, net.sourceforge.pmd.lang.ast.QualifiableNode
, net.sourceforge.pmd.lang.ast.SignedNode<ASTMethodOrConstructorDeclaration>
, net.sourceforge.pmd.lang.dfa.DFAGraphMethod
, AccessNode
, ASTMethodOrConstructorDeclaration
, JavaNode
, JavaQualifiableNode
, net.sourceforge.pmd.lang.symboltable.ScopedNode
public class ASTMethodDeclaration extends AbstractJavaAccessNode implements net.sourceforge.pmd.lang.dfa.DFAGraphMethod, ASTMethodOrConstructorDeclaration
parser
beginColumn, beginLine, childIndex, children, endColumn, endLine, firstToken, id, lastToken, parent
Constructor | Description |
---|---|
ASTMethodDeclaration(int id) |
|
ASTMethodDeclaration(JavaParser p,
int id) |
Modifier and Type | Method | Description |
---|---|---|
ASTBlock |
getBlock() |
|
java.lang.String |
getMethodName() |
Gets the name of the method.
|
java.lang.String |
getName() |
|
JavaQualifiedName |
getQualifiedName() |
Returns a qualified name for this node.
|
ASTResultType |
getResultType() |
|
JavaOperationSignature |
getSignature() |
|
ASTNameList |
getThrows() |
|
boolean |
isAbstract() |
|
boolean |
isInterfaceMember() |
|
boolean |
isPublic() |
|
boolean |
isSyntacticallyAbstract() |
|
boolean |
isSyntacticallyPublic() |
|
boolean |
isVoid() |
|
java.lang.Object |
jjtAccept(JavaParserVisitor visitor,
java.lang.Object data) |
Accept the visitor.
|
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
childrenAccept, comment, comment, getScope, getXPathNodeName, jjtClose, jjtOpen, setScope
appendElement, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, hasDecendantOfAnyType, hasDescendantMatchingXPath, hasDescendantOfAnyType, hasDescendantOfType, hasImageEqualTo, isFindBoundary, isSingleLine, jjtAddChild, jjtGetChild, jjtGetChildIndex, jjtGetFirstToken, jjtGetId, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtSetChildIndex, jjtSetFirstToken, jjtSetLastToken, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData, testingOnlySetBeginColumn, testingOnlySetBeginLine, testingOnlySetEndColumn, testingOnlySetEndLine, toString
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
childrenAccept, getScope, setScope
public ASTMethodDeclaration(int id)
public ASTMethodDeclaration(JavaParser p, int id)
public java.lang.Object jjtAccept(JavaParserVisitor visitor, java.lang.Object data)
jjtAccept
in interface JavaNode
jjtAccept
in class AbstractJavaNode
public java.lang.String getMethodName()
public java.lang.String getName()
getName
in interface net.sourceforge.pmd.lang.dfa.DFAGraphMethod
public boolean isSyntacticallyPublic()
public boolean isSyntacticallyAbstract()
public boolean isPublic()
isPublic
in interface AccessNode
isPublic
in class AbstractJavaAccessNode
public boolean isAbstract()
isAbstract
in interface AccessNode
isAbstract
in class AbstractJavaAccessNode
public boolean isInterfaceMember()
public boolean isVoid()
public ASTResultType getResultType()
public ASTBlock getBlock()
public ASTNameList getThrows()
public JavaQualifiedName getQualifiedName()
JavaQualifiableNode
getQualifiedName
in interface JavaQualifiableNode
getQualifiedName
in interface net.sourceforge.pmd.lang.ast.QualifiableNode
public JavaOperationSignature getSignature()
getSignature
in interface ASTMethodOrConstructorDeclaration
getSignature
in interface net.sourceforge.pmd.lang.ast.SignedNode<ASTMethodOrConstructorDeclaration>
Copyright © 2002–2018 PMD. All rights reserved.