Interface ApexNode<T extends apex.jorje.semantic.ast.AstNode>
-
- Type Parameters:
T
- Type of the underlying Jorje node
- All Superinterfaces:
net.sourceforge.pmd.lang.ast.Node
- All Known Subinterfaces:
ASTUserClassOrInterface<T>
- All Known Implementing Classes:
AbstractApexNode
,ApexRootNode
,ASTAnnotation
,ASTAnnotationParameter
,ASTAnonymousClass
,ASTArrayLoadExpression
,ASTArrayStoreExpression
,ASTAssignmentExpression
,ASTBinaryExpression
,ASTBindExpressions
,ASTBlockStatement
,ASTBooleanExpression
,ASTBreakStatement
,ASTBridgeMethodCreator
,ASTCastExpression
,ASTCatchBlockStatement
,ASTClassRefExpression
,ASTConstructorPreamble
,ASTConstructorPreambleStatement
,ASTContinueStatement
,ASTDmlDeleteStatement
,ASTDmlInsertStatement
,ASTDmlMergeStatement
,ASTDmlUndeleteStatement
,ASTDmlUpdateStatement
,ASTDmlUpsertStatement
,ASTDoLoopStatement
,ASTElseWhenBlock
,ASTEmptyReferenceExpression
,ASTExpression
,ASTExpressionStatement
,ASTField
,ASTFieldDeclaration
,ASTFieldDeclarationStatements
,ASTForEachStatement
,ASTForLoopStatement
,ASTFormalComment
,ASTIdentifierCase
,ASTIfBlockStatement
,ASTIfElseBlockStatement
,ASTIllegalStoreExpression
,ASTInstanceOfExpression
,ASTJavaMethodCallExpression
,ASTJavaVariableExpression
,ASTLiteralCase
,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
,ASTSwitchStatement
,ASTTernaryExpression
,ASTThisMethodCallExpression
,ASTThisVariableExpression
,ASTThrowStatement
,ASTTriggerVariableExpression
,ASTTryCatchFinallyBlockStatement
,ASTTypeWhenBlock
,ASTUserClass
,ASTUserClassMethods
,ASTUserEnum
,ASTUserExceptionMethods
,ASTUserInterface
,ASTUserTrigger
,ASTValueWhenBlock
,ASTVariableDeclaration
,ASTVariableDeclarationStatements
,ASTVariableExpression
,ASTWhileLoopStatement
public interface ApexNode<T extends apex.jorje.semantic.ast.AstNode> extends net.sourceforge.pmd.lang.ast.Node
Root interface implemented by all Apex nodes. Apex nodes wrap a tree obtained from an external parser (Jorje). The underlying AST node is available withgetNode()
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Iterable<? extends ApexNode<?>>
children()
Object
childrenAccept(ApexParserVisitor visitor, Object data)
Deprecated.This method is not useful, the logic for combining children values should be present on the visitor, not the nodeApexNode<?>
getChild(int index)
T
getNode()
Get the underlying AST node.ApexNode<?>
getParent()
Object
jjtAccept(ApexParserVisitor visitor, Object data)
Accept the visitor.-
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
-
-
-
-
Method Detail
-
jjtAccept
Object jjtAccept(ApexParserVisitor visitor, Object data)
Accept the visitor.
-
childrenAccept
@Deprecated Object childrenAccept(ApexParserVisitor visitor, Object data)
Deprecated.This method is not useful, the logic for combining children values should be present on the visitor, not the nodeAccept the visitor. *
-
getNode
T getNode()
Get the underlying AST node.
-
children
Iterable<? extends ApexNode<?>> children()
- Specified by:
children
in interfacenet.sourceforge.pmd.lang.ast.Node
-
getChild
ApexNode<?> getChild(int index)
- Specified by:
getChild
in interfacenet.sourceforge.pmd.lang.ast.Node
-
getParent
ApexNode<?> getParent()
- Specified by:
getParent
in interfacenet.sourceforge.pmd.lang.ast.Node
-
-