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.ObjectchildrenAccept(ApexParserVisitor visitor, java.lang.Object data)Accept the visitor.intgetBeginColumn()intgetBeginLine()intgetEndColumn()intgetEndLine()java.lang.StringgetLocation()TgetNode()Get the underlying AST node.java.lang.StringgetXPathNodeName()protected voidhandleSourceCode(java.lang.String source)protected booleanhasRealLoc()-
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 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, 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:
getBeginLinein interfacenet.sourceforge.pmd.lang.ast.Node- Overrides:
getBeginLinein classnet.sourceforge.pmd.lang.ast.AbstractNode
-
getBeginColumn
public int getBeginColumn()
- Specified by:
getBeginColumnin interfacenet.sourceforge.pmd.lang.ast.Node- Overrides:
getBeginColumnin classnet.sourceforge.pmd.lang.ast.AbstractNode
-
getEndLine
public int getEndLine()
- Specified by:
getEndLinein interfacenet.sourceforge.pmd.lang.ast.Node- Overrides:
getEndLinein classnet.sourceforge.pmd.lang.ast.AbstractNode
-
getEndColumn
public int getEndColumn()
- Specified by:
getEndColumnin interfacenet.sourceforge.pmd.lang.ast.Node- Overrides:
getEndColumnin classnet.sourceforge.pmd.lang.ast.AbstractNode
-
childrenAccept
public java.lang.Object childrenAccept(ApexParserVisitor visitor, java.lang.Object data)
Accept the visitor. *- Specified by:
childrenAcceptin interfaceApexNode<T extends apex.jorje.semantic.ast.AstNode>
-
hasRealLoc
protected boolean hasRealLoc()
-
getXPathNodeName
public final java.lang.String getXPathNodeName()
- Specified by:
getXPathNodeNamein interfacenet.sourceforge.pmd.lang.ast.Node- Overrides:
getXPathNodeNamein classnet.sourceforge.pmd.lang.ast.AbstractNode
-
getLocation
public java.lang.String getLocation()
-
-