net.sourceforge.pmd.lang.java.ast
Class ASTMethodDeclaration

java.lang.Object
  extended by net.sourceforge.pmd.lang.ast.AbstractNode
      extended by net.sourceforge.pmd.lang.java.ast.AbstractJavaNode
          extended by net.sourceforge.pmd.lang.java.ast.AbstractJavaAccessNode
              extended by net.sourceforge.pmd.lang.java.ast.ASTMethodDeclaration
All Implemented Interfaces:
Node, DFAGraphMethod, AccessNode, JavaNode, ScopedNode

public class ASTMethodDeclaration
extends AbstractJavaAccessNode
implements DFAGraphMethod


Field Summary
 
Fields inherited from class net.sourceforge.pmd.lang.java.ast.AbstractJavaNode
parser
 
Fields inherited from class net.sourceforge.pmd.lang.ast.AbstractNode
beginColumn, beginLine, childIndex, children, endColumn, endLine, firstToken, id, lastToken, parent
 
Fields inherited from interface net.sourceforge.pmd.lang.java.ast.AccessNode
ABSTRACT, DEFAULT, FINAL, NATIVE, PRIVATE, PROTECTED, PUBLIC, STATIC, STRICTFP, SYNCHRONIZED, TRANSIENT, VOLATILE
 
Constructor Summary
ASTMethodDeclaration(int id)
           
ASTMethodDeclaration(JavaParser p, int id)
           
 
Method Summary
 ASTBlock getBlock()
           
 String getMethodName()
          Gets the name of the method.
 String getName()
           
 ASTResultType getResultType()
           
 ASTNameList getThrows()
           
 boolean isAbstract()
           
 boolean isInterfaceMember()
           
 boolean isPublic()
           
 boolean isSyntacticallyAbstract()
           
 boolean isSyntacticallyPublic()
           
 boolean isVoid()
           
 Object jjtAccept(JavaParserVisitor visitor, Object data)
          Accept the visitor.
 
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.java.ast.AbstractJavaNode
childrenAccept, comment, comment, getScope, jjtClose, jjtOpen, setScope, toString
 
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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
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
 

Constructor Detail

ASTMethodDeclaration

public ASTMethodDeclaration(int id)

ASTMethodDeclaration

public ASTMethodDeclaration(JavaParser p,
                            int id)
Method Detail

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.