Interface ApexNode<T extends apex.jorje.semantic.ast.AstNode>
-
- Type Parameters:
T- Type of the underlying Jorje node
- All Superinterfaces:
GenericNode<ApexNode<?>>,Node,Reportable
- All Known Subinterfaces:
ASTCommentContainer<T>,ASTUserClassOrInterface<T>
- All Known Implementing Classes:
AbstractDmlStatement,ASTAnnotation,ASTAnnotationParameter,ASTAnonymousClass,ASTApexFile,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 GenericNode<ApexNode<?>>
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().
-
-
Field Summary
-
Fields inherited from interface net.sourceforge.pmd.lang.ast.Node
COORDS_COMPARATOR
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default doublegetApexVersion()Gets the apex version this class has been compiled with.StringgetDefiningType()StringgetNamespace()TgetNode()Deprecated.the underlying AST node should not be available outside of the AST node.@NonNull ASTApexFilegetRoot()booleanhasRealLoc()default ObjectjjtAccept(ApexParserVisitor visitor, Object data)Deprecated.-
Methods inherited from interface net.sourceforge.pmd.lang.ast.impl.GenericNode
ancestors, ancestorsOrSelf, asStream, children, descendants, descendantsOrSelf, getChild, getFirstChild, getLastChild, getNextSibling, getNthParent, getParent, getPreviousSibling
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.Node
acceptVisitor, ancestors, children, compareLocation, descendants, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, firstChild, getAstInfo, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfType, getImage, getIndexInParent, getLanguageVersion, getNumChildren, getParentsOfType, getReportLocation, getTextDocument, getTextRegion, getUserMap, getXPathAttributesIterator, getXPathNodeName, hasDescendantOfType, hasImageEqualTo, isFindBoundary
-
-
-
-
Method Detail
-
jjtAccept
@Deprecated default Object jjtAccept(ApexParserVisitor visitor, Object data)
Deprecated.Accept 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()
-
getRoot
@NonNull ASTApexFile getRoot()
-
getApexVersion
default double getApexVersion()
Gets the apex version this class has been compiled with. UseVersionto compare, e.g.node.getApexVersion() >= Version.V176.getExternal()- Returns:
- the apex version
-
-