Uses of Class
com.sonar.sslr.api.AstNode
Packages that use AstNode
Package
Description
Internals of Grammar API.
Internals of Parser.
-
Uses of AstNode in com.sonar.sslr.api
Methods in com.sonar.sslr.api that return AstNodeModifier and TypeMethodDescriptionAstNode.findFirstChild(AstNodeType... nodeTypes) Deprecated.AstNode.findFirstDirectChild(AstNodeType... nodeTypes) Deprecated.in 1.17, usegetFirstChild(AstNodeType...)insteadAstNode.findFirstParent(AstNodeType nodeType) Deprecated.in 1.17, usegetFirstAncestor(AstNodeType)insteadabstract AstNodePreprocessingDirective.getAst()Deprecated.AstNode.getChild(int index) Deprecated.in 1.19.2, usegetFirstChild(AstNodeType...)insteadAstNode.getFirstAncestor(AstNodeType nodeType) AstNode.getFirstAncestor(AstNodeType... nodeTypes) AstNode.getFirstChild()Returns the first child of this node.AstNode.getFirstChild(AstNodeType... nodeTypes) Returns first child of one of specified types.AstNode.getFirstDescendant(AstNodeType... nodeTypes) Returns first descendant of one of specified types.AstNode.getLastChild()Returns the last child of this node.AstNode.getLastChild(AstNodeType... nodeTypes) Returns last child of one of specified types.AstNode.getNextAstNode()Get the next sibling AstNode in the tree and if this node doesn't exist try to get the next AST Node of the parent.AstNode.getNextSibling()Get the next sibling AstNode if exists in the tree.AstNode.getParent()Get the parent of this node in the tree.AstNode.getPreviousAstNode()Get the previous sibling AstNode in the tree and if this node doesn't exist try to get the next AST Node of the parent.AstNode.getPreviousSibling()Get the previous sibling AstNode if exists in the tree.AstNodeBrowser.getResult()AstNode.nextAstNode()Deprecated.in 1.17, usegetNextAstNode()insteadAstNode.nextSibling()Deprecated.in 1.17, usegetNextSibling()insteadAstNode.previousAstNode()Deprecated.in 1.17, usegetPreviousAstNode()insteadAstNode.previousSibling()Deprecated.in 1.17, usegetPreviousSibling()Methods in com.sonar.sslr.api that return types with arguments of type AstNodeModifier and TypeMethodDescriptionAstNode.findChildren(AstNodeType... nodeTypes) Deprecated.in 1.17, usegetDescendants(AstNodeType...)instead, but don't forget that those methods behave differently due to bug SSLR-249AstNode.findDirectChildren(AstNodeType... nodeTypes) Deprecated.in 1.17, usegetChildren(AstNodeType...)insteadAstNode.getChildren()Get the list of children.AstNode.getChildren(AstNodeType... nodeTypes) Returns children of specified types.AstNode.getDescendants(AstNodeType... nodeTypes) Returns descendants of specified types.AstNodeBrowser.getResults()Methods in com.sonar.sslr.api with parameters of type AstNodeModifier and TypeMethodDescriptionvoidstatic AstNodeBrowserstatic PreprocessingDirectiveDeprecated.static TriviaTrivia.createPreprocessingDirective(AstNode ast, Grammar grammar) booleanAstNodeSkippingPolicy.hasToBeSkippedFromAst(AstNode node) Some AstNode can be pretty useless and makes a global AST less readable.booleanGenericTokenType.hasToBeSkippedFromAst(AstNode node) booleanTokenType.hasToBeSkippedFromAst(AstNode node) voidCalled once a computation unit tree has been fully visited.voidCalled once an AST node has been fully visited.voidCalled before starting visiting a computation unit tree.voidCalled to process an AST node whose type has been registered to be visited.Constructors in com.sonar.sslr.api with parameters of type AstNode -
Uses of AstNode in com.sonar.sslr.api.symbol
Methods in com.sonar.sslr.api.symbol that return AstNodeConstructors in com.sonar.sslr.api.symbol with parameters of type AstNode -
Uses of AstNode in com.sonar.sslr.api.typed
Methods in com.sonar.sslr.api.typed that return AstNodeModifier and TypeMethodDescriptionAstNodeBuilder.createNonTerminal(GrammarRuleKey ruleKey, Rule rule, List<Object> children, int startIndex, int endIndex) AstNodeBuilder.createTerminal(Input input, int startIndex, int endIndex, List<Trivia> trivias, TokenType type) GrammarBuilder.invokeRule(GrammarRuleKey ruleKey) -
Uses of AstNode in com.sonar.sslr.impl
Methods in com.sonar.sslr.impl that return AstNode -
Uses of AstNode in com.sonar.sslr.impl.ast
Methods in com.sonar.sslr.impl.ast with parameters of type AstNodeModifier and TypeMethodDescriptionbooleanAlwaysSkipFromAst.hasToBeSkippedFromAst(AstNode node) booleanNeverSkipFromAst.hasToBeSkippedFromAst(AstNode node) booleanSkipFromAstIfOnlyOneChild.hasToBeSkippedFromAst(AstNode node) static Stringstatic voidvoidAstWalker.walkAndVisit(AstNode ast) voidAstWalker.walkVisitAndListen(AstNode ast, Object output) Deprecated.in 1.18, useAstWalker.walkAndVisit(AstNode)instead -
Uses of AstNode in com.sonar.sslr.impl.matcher
Methods in com.sonar.sslr.impl.matcher with parameters of type AstNode -
Uses of AstNode in com.sonar.sslr.impl.typed
Methods in com.sonar.sslr.impl.typed that return AstNodeModifier and TypeMethodDescriptionGrammarBuilderInterceptor.invokeRule(GrammarRuleKey grammarRuleKey) Methods in com.sonar.sslr.impl.typed with parameters of type AstNode -
Uses of AstNode in com.sonarsource.cobol.api
Methods in com.sonarsource.cobol.api with parameters of type AstNodeModifier and TypeMethodDescriptionbooleanAcuCobolKeyword.hasToBeSkippedFromAst(AstNode node) booleanAcuCobolTokenType.hasToBeSkippedFromAst(AstNode node) booleanCICSKeyword.hasToBeSkippedFromAst(AstNode node) booleanCobolKeyword.hasToBeSkippedFromAst(AstNode node) booleanCobolSpecialCharacter.hasToBeSkippedFromAst(AstNode node) booleanCobolTokenType.hasToBeSkippedFromAst(AstNode node) booleanDliKeyword.hasToBeSkippedFromAst(AstNode node) booleanEnterpriseKeyword.hasToBeSkippedFromAst(AstNode node) booleanGcosKeyword.hasToBeSkippedFromAst(AstNode node) booleanHpKeyword.hasToBeSkippedFromAst(AstNode node) booleanIleCobolKeyword.hasToBeSkippedFromAst(AstNode node) booleanMicrofocusKeyword.hasToBeSkippedFromAst(AstNode node) booleanSQLKeyword.hasToBeSkippedFromAst(AstNode node) -
Uses of AstNode in com.sonarsource.cobol.api.ast
Methods in com.sonarsource.cobol.api.ast with parameters of type AstNodeModifier and TypeMethodDescriptionvoidCalled once a computation unit tree has been fully visited.voidCalled once an AST node has been fully visited.voidCalled before starting visiting a computation unit tree.voidCalled to process an AST node whose type has been registered to be visited. -
Uses of AstNode in com.sonarsource.cobol.api.issue
Methods in com.sonarsource.cobol.api.issue with parameters of type AstNodeModifier and TypeMethodDescriptionprecise issue location, seeLocationBuilder.onRange(Token, Token)Method parameters in com.sonarsource.cobol.api.issue with type arguments of type AstNode -
Uses of AstNode in com.sonarsource.cobol.api.symbol
Methods in com.sonarsource.cobol.api.symbol that return types with arguments of type AstNodeMethods in com.sonarsource.cobol.api.symbol with parameters of type AstNodeModifier and TypeMethodDescriptionstatic DataItemDataItemFinder.find(CobolGrammar grammar, CobolSymbolTable symbolTable, AstNode qualifiedDataNameNode) Method parameters in com.sonarsource.cobol.api.symbol with type arguments of type AstNodeConstructors in com.sonarsource.cobol.api.symbol with parameters of type AstNode -
Uses of AstNode in org.sonar.sslr.ast
Methods in org.sonar.sslr.ast that return AstNodeModifier and TypeMethodDescriptionAstSelect.get(int index) Deprecated.Returns the element at the specified position in this selection.Methods in org.sonar.sslr.ast that return types with arguments of type AstNodeModifier and TypeMethodDescriptionAstSelect.iterator()Deprecated.Returns an iterator over the elements in this selection.Method parameters in org.sonar.sslr.ast with type arguments of type AstNode -
Uses of AstNode in org.sonar.sslr.internal.ast.select
Methods in org.sonar.sslr.internal.ast.select that return AstNodeModifier and TypeMethodDescriptionEmptyAstSelect.get(int index) ListAstSelect.get(int index) SingleAstSelect.get(int index) Methods in org.sonar.sslr.internal.ast.select that return types with arguments of type AstNodeModifier and TypeMethodDescriptionEmptyAstSelect.iterator()ListAstSelect.iterator()SingleAstSelect.iterator()Methods in org.sonar.sslr.internal.ast.select with parameters of type AstNodeMethod parameters in org.sonar.sslr.internal.ast.select with type arguments of type AstNodeConstructors in org.sonar.sslr.internal.ast.select with parameters of type AstNodeConstructor parameters in org.sonar.sslr.internal.ast.select with type arguments of type AstNode -
Uses of AstNode in org.sonar.sslr.internal.grammar
Methods in org.sonar.sslr.internal.grammar with parameters of type AstNode -
Uses of AstNode in org.sonar.sslr.internal.matchers
Methods in org.sonar.sslr.internal.matchers that return AstNodeModifier and TypeMethodDescriptionstatic AstNodeAstCreator.create(ParsingResult parsingResult, LocatedText input) static AstNode -
Uses of AstNode in org.sonar.sslr.parser
Methods in org.sonar.sslr.parser that return AstNode
getFirstDescendant(AstNodeType...)instead