Class ASTMethod
-
- All Implemented Interfaces:
-
net.sourceforge.pmd.lang.apex.ast.ApexNode
,net.sourceforge.pmd.lang.apex.ast.ApexQualifiableNode
,net.sourceforge.pmd.lang.ast.Node
,net.sourceforge.pmd.lang.ast.impl.GenericNode
,net.sourceforge.pmd.reporting.Reportable
public final class ASTMethod extends AbstractApexNode implements ApexQualifiableNode
-
-
Field Summary
Fields Modifier and Type Field Description public final String
returnType
public final static Comparator<Node>
COORDS_COMPARATOR
-
Method Summary
Modifier and Type Method Description String
getReturnType()
Returns the method return type name. boolean
hasRealLoc()
String
getImage()
String
getCanonicalName()
ApexQualifiedName
getQualifiedName()
boolean
isConstructor()
boolean
isStaticInitializer()
ASTModifierNode
getModifiers()
int
getArity()
boolean
isTriggerBlock()
Checks whether this method is the synthetic trigger method. -
Methods inherited from class net.sourceforge.pmd.lang.apex.ast.AbstractApexNode
acceptVisitor, getDefiningType, getRoot, getTextRegion, getXPathNodeName
-
Methods inherited from class net.sourceforge.pmd.lang.ast.impl.AbstractNode
children, firstChild, getChild, getIndexInParent, getNumChildren, getParent, getUserMap, toString
-
Methods inherited from class net.sourceforge.pmd.lang.ast.impl.GenericNode
ancestors, ancestorsOrSelf, asStream, descendants, descendantsOrSelf, getFirstChild, getLastChild, getNextSibling, getPreviousSibling
-
Methods inherited from class net.sourceforge.pmd.lang.ast.Node
acceptVisitor, ancestors, ancestors, ancestorsOrSelf, asStream, children, children, compareLocation, descendants, descendants, descendantsOrSelf, getAstInfo, getBeginColumn, getBeginLine, getChild, getEndColumn, getEndLine, getFirstChild, getLanguageVersion, getLastChild, getNextSibling, getParent, getPreviousSibling, getReportLocation, getRoot, getTextDocument, getTextRegion, getXPathAttributesIterator, getXPathNodeName, hasImageEqualTo, isFindBoundary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getReturnType
String getReturnType()
Returns the method return type name. This includes any type arguments. If the type is a primitive, its case will be normalized.
-
hasRealLoc
boolean hasRealLoc()
-
getCanonicalName
String getCanonicalName()
-
getQualifiedName
ApexQualifiedName getQualifiedName()
-
isConstructor
boolean isConstructor()
-
isStaticInitializer
boolean isStaticInitializer()
-
getModifiers
ASTModifierNode getModifiers()
-
getArity
int getArity()
-
isTriggerBlock
@NoAttribute() boolean isTriggerBlock()
Checks whether this method is the synthetic trigger method.
- Returns:
true if this method is the synthetic trigger method
- Since:
7.5.0
-
-
-
-