Class ASTModifierNode
- java.lang.Object
-
- net.sourceforge.pmd.lang.ast.AbstractNode
-
- net.sourceforge.pmd.lang.apex.ast.AbstractApexNodeBase
-
- net.sourceforge.pmd.lang.apex.ast.AbstractApexNode<apex.jorje.semantic.ast.modifier.ModifierNode>
-
- net.sourceforge.pmd.lang.apex.ast.ASTModifierNode
-
- All Implemented Interfaces:
AccessNode
,ApexNode<apex.jorje.semantic.ast.modifier.ModifierNode>
,Node
public class ASTModifierNode extends AbstractApexNode<apex.jorje.semantic.ast.modifier.ModifierNode> implements AccessNode
-
-
Field Summary
-
Fields inherited from class net.sourceforge.pmd.lang.apex.ast.AbstractApexNode
node
-
Fields inherited from class net.sourceforge.pmd.lang.ast.AbstractNode
beginColumn, beginLine, childIndex, children, endColumn, endLine, firstToken, id, lastToken, parent
-
-
Constructor Summary
Constructors Constructor Description ASTModifierNode(apex.jorje.semantic.ast.modifier.ModifierNode modifierNode)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getModifiers()
boolean
hasDeprecatedTestMethod()
Returns true if function has `testmethod` modifierboolean
isAbstract()
boolean
isFinal()
boolean
isGlobal()
boolean
isInheritedSharing()
boolean
isOverride()
boolean
isPrivate()
boolean
isProtected()
boolean
isPublic()
boolean
isStatic()
boolean
isTest()
Returns true if function has `@isTest` annotation or `testmethod` modifierboolean
isTestOrTestSetup()
boolean
isTransient()
boolean
isVirtual()
boolean
isWebService()
boolean
isWithoutSharing()
boolean
isWithSharing()
Object
jjtAccept(ApexParserVisitor visitor, Object data)
Accept the visitor.-
Methods inherited from class net.sourceforge.pmd.lang.apex.ast.AbstractApexNode
children, getChild, getDefiningType, getLocation, getNamespace, getNode, getParent, handleSourceCode, hasRealLoc
-
Methods inherited from class net.sourceforge.pmd.lang.apex.ast.AbstractApexNodeBase
childrenAccept, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getXPathNodeName
-
Methods inherited from class net.sourceforge.pmd.lang.ast.AbstractNode
appendElement, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getDataFlowNode, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getIndexInParent, getNthParent, getNumChildren, getParentsOfType, getUserData, getUserMap, getXPathAttributesIterator, hasDecendantOfAnyType, hasDescendantMatchingXPath, hasDescendantOfAnyType, hasDescendantOfType, hasImageEqualTo, isFindBoundary, isSingleLine, jjtAddChild, jjtClose, jjtGetChild, jjtGetChildIndex, jjtGetFirstToken, jjtGetId, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetChildIndex, jjtSetFirstToken, jjtSetLastToken, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData, testingOnlySetBeginColumn, testingOnlySetBeginLine, testingOnlySetEndColumn, testingOnlySetEndLine, toString
-
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.apex.ast.ApexNode
childrenAccept
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.Node
findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getIndexInParent, getNthParent, getNumChildren, getParentsOfType, getUserData, getUserMap, getXPathAttributesIterator, getXPathNodeName, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtClose, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData
-
-
-
-
Constructor Detail
-
ASTModifierNode
@Deprecated @InternalApi public ASTModifierNode(apex.jorje.semantic.ast.modifier.ModifierNode modifierNode)
Deprecated.
-
-
Method Detail
-
jjtAccept
public Object jjtAccept(ApexParserVisitor visitor, Object data)
Description copied from class:AbstractApexNodeBase
Accept the visitor. *- Specified by:
jjtAccept
in interfaceApexNode<apex.jorje.semantic.ast.modifier.ModifierNode>
- Specified by:
jjtAccept
in classAbstractApexNodeBase
-
getModifiers
public int getModifiers()
- Specified by:
getModifiers
in interfaceAccessNode
-
isPublic
public boolean isPublic()
- Specified by:
isPublic
in interfaceAccessNode
-
isProtected
public boolean isProtected()
- Specified by:
isProtected
in interfaceAccessNode
-
isPrivate
public boolean isPrivate()
- Specified by:
isPrivate
in interfaceAccessNode
-
isAbstract
public boolean isAbstract()
- Specified by:
isAbstract
in interfaceAccessNode
-
isStatic
public boolean isStatic()
- Specified by:
isStatic
in interfaceAccessNode
-
isFinal
public boolean isFinal()
- Specified by:
isFinal
in interfaceAccessNode
-
isTransient
public boolean isTransient()
- Specified by:
isTransient
in interfaceAccessNode
-
isTest
public boolean isTest()
Returns true if function has `@isTest` annotation or `testmethod` modifier
-
hasDeprecatedTestMethod
public boolean hasDeprecatedTestMethod()
Returns true if function has `testmethod` modifier
-
isTestOrTestSetup
public boolean isTestOrTestSetup()
-
isWithSharing
public boolean isWithSharing()
-
isWithoutSharing
public boolean isWithoutSharing()
-
isInheritedSharing
public boolean isInheritedSharing()
-
isWebService
public boolean isWebService()
-
isGlobal
public boolean isGlobal()
-
isOverride
public boolean isOverride()
-
isVirtual
public boolean isVirtual()
-
-