Interface ApexNode<T extends apex.jorje.semantic.ast.AstNode>
-
- Type Parameters:
T
- Type of the underlying Jorje node
- All Superinterfaces:
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
,ASTInvalidDependentCompilation
,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 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)
String
getDefiningType()
String
getNamespace()
T
getNode()
Deprecated.the underlying AST node should not be available outside of the AST node.ApexNode<?>
getParent()
boolean
hasRealLoc()
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
@Deprecated T getNode()
Deprecated.the underlying AST node should not be available outside of the AST node. If information is needed from the underlying node, then PMD's AST node need to expose this information.Get the underlying AST node.
-
hasRealLoc
boolean hasRealLoc()
-
getDefiningType
String getDefiningType()
-
getNamespace
String getNamespace()
-
-