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.ScopedNodepublic class ASTMethodDeclaration extends AbstractJavaAccessNode implements net.sourceforge.pmd.lang.dfa.DFAGraphMethod, ASTMethodOrConstructorDeclaration
parserbeginColumn, 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, setVolatilechildrenAccept, comment, comment, getScope, getXPathNodeName, jjtClose, jjtOpen, setScopeappendElement, 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, toStringgetModifiers, isDefault, isFinal, isNative, isPackagePrivate, isPrivate, isProtected, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile, setAbstract, setDefault, setFinal, setModifiers, setNative, setPrivate, setProtected, setPublic, setStatic, setStrictfp, setSynchronized, setTransient, setVolatilechildrenAccept, getScope, setScopepublic ASTMethodDeclaration(int id)
public ASTMethodDeclaration(JavaParser p, int id)
public java.lang.Object jjtAccept(JavaParserVisitor visitor, java.lang.Object data)
jjtAccept in interface JavaNodejjtAccept in class AbstractJavaNodepublic java.lang.String getMethodName()
public java.lang.String getName()
getName in interface net.sourceforge.pmd.lang.dfa.DFAGraphMethodpublic boolean isSyntacticallyPublic()
public boolean isSyntacticallyAbstract()
public boolean isPublic()
isPublic in interface AccessNodeisPublic in class AbstractJavaAccessNodepublic boolean isAbstract()
isAbstract in interface AccessNodeisAbstract in class AbstractJavaAccessNodepublic boolean isInterfaceMember()
public boolean isVoid()
public ASTResultType getResultType()
public ASTBlock getBlock()
public ASTNameList getThrows()
public JavaQualifiedName getQualifiedName()
JavaQualifiableNodegetQualifiedName in interface JavaQualifiableNodegetQualifiedName in interface net.sourceforge.pmd.lang.ast.QualifiableNodepublic JavaOperationSignature getSignature()
getSignature in interface ASTMethodOrConstructorDeclarationgetSignature in interface net.sourceforge.pmd.lang.ast.SignedNode<ASTMethodOrConstructorDeclaration>Copyright © 2002–2018 PMD. All rights reserved.