Class AbstractApexNode<T extends apex.jorje.semantic.ast.AstNode>
- java.lang.Object
-
- net.sourceforge.pmd.lang.ast.AbstractNode
-
- net.sourceforge.pmd.lang.apex.ast.AbstractApexNode<T>
-
- All Implemented Interfaces:
ApexNode<T>
,net.sourceforge.pmd.lang.ast.Node
- Direct Known Subclasses:
ApexRootNode
,ASTAnnotation
,ASTAnnotationParameter
,ASTArrayLoadExpression
,ASTArrayStoreExpression
,ASTAssignmentExpression
,ASTBinaryExpression
,ASTBindExpressions
,ASTBlockStatement
,ASTBooleanExpression
,ASTBreakStatement
,ASTBridgeMethodCreator
,ASTCastExpression
,ASTCatchBlockStatement
,ASTClassRefExpression
,ASTConstructorPreamble
,ASTConstructorPreambleStatement
,ASTContinueStatement
,ASTDmlDeleteStatement
,ASTDmlInsertStatement
,ASTDmlMergeStatement
,ASTDmlUndeleteStatement
,ASTDmlUpdateStatement
,ASTDmlUpsertStatement
,ASTDoLoopStatement
,ASTExpression
,ASTExpressionStatement
,ASTField
,ASTFieldDeclaration
,ASTFieldDeclarationStatements
,ASTForEachStatement
,ASTForLoopStatement
,ASTIfBlockStatement
,ASTIfElseBlockStatement
,ASTIllegalStoreExpression
,ASTInstanceOfExpression
,ASTJavaMethodCallExpression
,ASTJavaVariableExpression
,ASTLiteralExpression
,ASTMapEntryNode
,ASTMethod
,ASTMethodBlockStatement
,ASTMethodCallExpression
,ASTModifier
,ASTModifierNode
,ASTModifierOrAnnotation
,ASTMultiStatement
,ASTNestedExpression
,ASTNestedStoreExpression
,ASTNewKeyValueObjectExpression
,ASTNewListInitExpression
,ASTNewListLiteralExpression
,ASTNewMapInitExpression
,ASTNewMapLiteralExpression
,ASTNewObjectExpression
,ASTNewSetInitExpression
,ASTNewSetLiteralExpression
,ASTPackageVersionExpression
,ASTParameter
,ASTPostfixExpression
,ASTPrefixExpression
,ASTProperty
,ASTReferenceExpression
,ASTReturnStatement
,ASTRunAsBlockStatement
,ASTSoqlExpression
,ASTSoslExpression
,ASTStandardCondition
,ASTStatement
,ASTStatementExecuted
,ASTSuperMethodCallExpression
,ASTSuperVariableExpression
,ASTTernaryExpression
,ASTThisMethodCallExpression
,ASTThisVariableExpression
,ASTThrowStatement
,ASTTriggerVariableExpression
,ASTTryCatchFinallyBlockStatement
,ASTUserClassMethods
,ASTUserExceptionMethods
,ASTVariableDeclaration
,ASTVariableDeclarationStatements
,ASTVariableExpression
,ASTWhileLoopStatement
public abstract class AbstractApexNode<T extends apex.jorje.semantic.ast.AstNode> extends net.sourceforge.pmd.lang.ast.AbstractNode implements ApexNode<T>
-
-
Constructor Summary
Constructors Constructor Description AbstractApexNode(T node)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
childrenAccept(ApexParserVisitor visitor, java.lang.Object data)
Accept the visitor.int
getBeginColumn()
int
getBeginLine()
int
getEndColumn()
int
getEndLine()
java.lang.String
getLocation()
T
getNode()
Get the underlying AST node.java.lang.String
getXPathNodeName()
protected void
handleSourceCode(java.lang.String source)
protected boolean
hasRealLoc()
-
Methods inherited from class net.sourceforge.pmd.lang.ast.AbstractNode
appendElement, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getDataFlowNode, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, 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 interface net.sourceforge.pmd.lang.ast.Node
findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getDataFlowNode, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, getXPathAttributesIterator, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtClose, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData
-
-
-
-
Field Detail
-
node
protected final T extends apex.jorje.semantic.ast.AstNode node
-
-
Constructor Detail
-
AbstractApexNode
public AbstractApexNode(T node)
-
-
Method Detail
-
handleSourceCode
protected void handleSourceCode(java.lang.String source)
-
getBeginLine
public int getBeginLine()
- Specified by:
getBeginLine
in interfacenet.sourceforge.pmd.lang.ast.Node
- Overrides:
getBeginLine
in classnet.sourceforge.pmd.lang.ast.AbstractNode
-
getBeginColumn
public int getBeginColumn()
- Specified by:
getBeginColumn
in interfacenet.sourceforge.pmd.lang.ast.Node
- Overrides:
getBeginColumn
in classnet.sourceforge.pmd.lang.ast.AbstractNode
-
getEndLine
public int getEndLine()
- Specified by:
getEndLine
in interfacenet.sourceforge.pmd.lang.ast.Node
- Overrides:
getEndLine
in classnet.sourceforge.pmd.lang.ast.AbstractNode
-
getEndColumn
public int getEndColumn()
- Specified by:
getEndColumn
in interfacenet.sourceforge.pmd.lang.ast.Node
- Overrides:
getEndColumn
in classnet.sourceforge.pmd.lang.ast.AbstractNode
-
childrenAccept
public java.lang.Object childrenAccept(ApexParserVisitor visitor, java.lang.Object data)
Accept the visitor. *- Specified by:
childrenAccept
in interfaceApexNode<T extends apex.jorje.semantic.ast.AstNode>
-
hasRealLoc
protected boolean hasRealLoc()
-
getXPathNodeName
public final java.lang.String getXPathNodeName()
- Specified by:
getXPathNodeName
in interfacenet.sourceforge.pmd.lang.ast.Node
- Overrides:
getXPathNodeName
in classnet.sourceforge.pmd.lang.ast.AbstractNode
-
getLocation
public java.lang.String getLocation()
-
-