Uses of Class
com.sonar.sslr.api.AstNode
-
-
Uses of AstNode in com.sonar.sslr.api
Methods in com.sonar.sslr.api that return AstNode Modifier and Type Method Description AstNodeAstNode. findFirstChild(AstNodeType... nodeTypes)Deprecated.in 1.17, usegetFirstDescendant(AstNodeType...)insteadAstNodeAstNode. findFirstDirectChild(AstNodeType... nodeTypes)Deprecated.in 1.17, usegetFirstChild(AstNodeType...)insteadAstNodeAstNode. findFirstParent(AstNodeType nodeType)Deprecated.in 1.17, usegetFirstAncestor(AstNodeType)insteadabstract AstNodePreprocessingDirective. getAst()Deprecated.AstNodeAstNode. getChild(int index)Deprecated.in 1.19.2, usegetFirstChild(AstNodeType...)insteadAstNodeAstNode. getFirstAncestor(AstNodeType nodeType)AstNodeAstNode. getFirstAncestor(AstNodeType... nodeTypes)AstNodeAstNode. getFirstChild()Returns the first child of this node.AstNodeAstNode. getFirstChild(AstNodeType... nodeTypes)Returns first child of one of specified types.AstNodeAstNode. getFirstDescendant(AstNodeType... nodeTypes)Returns first descendant of one of specified types.AstNodeAstNode. getLastChild()Returns the last child of this node.AstNodeAstNode. getLastChild(AstNodeType... nodeTypes)Returns last child of one of specified types.AstNodeAstNode. 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.AstNodeAstNode. getNextSibling()Get the next sibling AstNode if exists in the tree.AstNodeAstNode. getParent()Get the parent of this node in the tree.AstNodeAstNode. 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.AstNodeAstNode. getPreviousSibling()Get the previous sibling AstNode if exists in the tree.AstNodeAstNodeBrowser. getResult()AstNodeAstNode. nextAstNode()Deprecated.in 1.17, usegetNextAstNode()insteadAstNodeAstNode. nextSibling()Deprecated.in 1.17, usegetNextSibling()insteadAstNodeAstNode. previousAstNode()Deprecated.in 1.17, usegetPreviousAstNode()insteadAstNodeAstNode. previousSibling()Deprecated.in 1.17, usegetPreviousSibling()Methods in com.sonar.sslr.api that return types with arguments of type AstNode Modifier and Type Method Description List<AstNode>AstNode. findChildren(AstNodeType... nodeTypes)Deprecated.in 1.17, usegetDescendants(AstNodeType...)instead, but don't forget that those methods behave differently due to bug SSLR-249List<AstNode>AstNode. findDirectChildren(AstNodeType... nodeTypes)Deprecated.in 1.17, usegetChildren(AstNodeType...)insteadList<AstNode>AstNode. getChildren()Get the list of children.List<AstNode>AstNode. getChildren(AstNodeType... nodeTypes)Returns children of specified types.List<AstNode>AstNode. getDescendants(AstNodeType... nodeTypes)Returns descendants of specified types.List<AstNode>AstNodeBrowser. getResults()Methods in com.sonar.sslr.api with parameters of type AstNode Modifier and Type Method Description voidAstNode. addChild(AstNode child)static AstNodeBrowserAstNodeBrowser. browse(AstNode rootNode)static PreprocessingDirectivePreprocessingDirective. create(AstNode ast, Grammar grammar)Deprecated.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)voidAstVisitor. leaveFile(AstNode ast)Called once a computation unit tree has been fully visited.voidAstVisitor. leaveNode(AstNode ast)Called once an AST node has been fully visited.voidAstVisitor. visitFile(AstNode ast)Called before starting visiting a computation unit tree.voidAstVisitor. visitNode(AstNode ast)Called to process an AST node whose type has been registered to be visited.Constructors in com.sonar.sslr.api with parameters of type AstNode Constructor Description AstNodeBrowser(AstNode rootNode) -
Uses of AstNode in com.sonar.sslr.api.flow
Methods in com.sonar.sslr.api.flow that return AstNode Modifier and Type Method Description AstNodeBranch. getCondition()Deprecated.Methods in com.sonar.sslr.api.flow with parameters of type AstNode Modifier and Type Method Description voidBranch. setCondition(AstNode condition)Deprecated.voidCobolExecutionFlow. visitFlow(AstNode stmtToStartVisitFrom, CobolExecutionFlowVisitor... visitors)Deprecated. -
Uses of AstNode in com.sonar.sslr.api.symbol
Methods in com.sonar.sslr.api.symbol that return AstNode Modifier and Type Method Description AstNodeSymbol. getAstNode()Constructors in com.sonar.sslr.api.symbol with parameters of type AstNode Constructor Description Symbol(AstNode node) -
Uses of AstNode in com.sonar.sslr.api.typed
Methods in com.sonar.sslr.api.typed that return AstNode Modifier and Type Method Description AstNodeAstNodeBuilder. createNonTerminal(GrammarRuleKey ruleKey, Rule rule, List<Object> children, int startIndex, int endIndex)AstNodeAstNodeBuilder. createTerminal(Input input, int startIndex, int endIndex, List<Trivia> trivias, TokenType type)AstNodeGrammarBuilder. invokeRule(GrammarRuleKey ruleKey) -
Uses of AstNode in com.sonar.sslr.impl
Methods in com.sonar.sslr.impl that return AstNode Modifier and Type Method Description AstNodeParser. parse(CobolFile file)AstNodeParser. parse(File file)AstNodeParser. parse(String source)AstNodeParser. parse(List<Token> tokens) -
Uses of AstNode in com.sonar.sslr.impl.ast
Methods in com.sonar.sslr.impl.ast with parameters of type AstNode Modifier and Type Method Description booleanAlwaysSkipFromAst. hasToBeSkippedFromAst(AstNode node)booleanNeverSkipFromAst. hasToBeSkippedFromAst(AstNode node)booleanSkipFromAstIfOnlyOneChild. hasToBeSkippedFromAst(AstNode node)static StringAstXmlPrinter. print(AstNode rootNode)static voidAstXmlPrinter. print(AstNode rootNode, Writer writer)voidAstWalker. 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 Modifier and Type Method Description booleanRuleDefinition. hasToBeSkippedFromAst(AstNode node) -
Uses of AstNode in com.sonar.sslr.impl.typed
Methods in com.sonar.sslr.impl.typed that return AstNode Modifier and Type Method Description AstNodeGrammarBuilderInterceptor. invokeRule(GrammarRuleKey grammarRuleKey)Methods in com.sonar.sslr.impl.typed with parameters of type AstNode Modifier and Type Method Description static voidAstNodeReflector. setChildIndex(AstNode astNode, int childIndex)static voidAstNodeReflector. setParent(AstNode astNode, AstNode parent)static voidAstNodeReflector. setToken(AstNode astNode, Token token) -
Uses of AstNode in com.sonarsource.cobol.api
Methods in com.sonarsource.cobol.api with parameters of type AstNode Modifier and Type Method Description booleanAcuCobolKeyword. 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 AstNode Modifier and Type Method Description voidCobolAstVisitor. leaveFile(AstNode astNode)Called once a computation unit tree has been fully visited.voidCobolAstVisitor. leaveNode(AstNode astNode)Called once an AST node has been fully visited.protected voidCobolAstCheck. log(String messageText, AstNode node, Object... messageParameters)Deprecated.Use:protected voidCobolAstCheck. logWithCost(AstNode node, Double cost, String messageText, Object... messageParameters)Deprecated.Use:voidCobolAstVisitor. visitFile(AstNode astNode)Called before starting visiting a computation unit tree.voidCobolAstVisitor. visitNode(AstNode astNode)Called to process an AST node whose type has been registered to be visited. -
Uses of AstNode in com.sonarsource.cobol.api.flow
Methods in com.sonarsource.cobol.api.flow that return AstNode Modifier and Type Method Description AstNodeCobolStmt. getAstNode()Deprecated.Methods in com.sonarsource.cobol.api.flow with parameters of type AstNode Modifier and Type Method Description protected voidCobolStmt. setOutputDataItem(AstNode qualifiedDataNameNode)Deprecated.Method parameters in com.sonarsource.cobol.api.flow with type arguments of type AstNode Modifier and Type Method Description protected voidCobolStmt. setInputDataItems(List<AstNode> qualifiedDataNameNodes)Deprecated.protected voidCobolStmt. setOutputDataItems(List<AstNode> qualifiedDataNameNodes)Deprecated.Constructors in com.sonarsource.cobol.api.flow with parameters of type AstNode Constructor Description CobolStmt(AstNode stmtAstNode)Deprecated.CobolStmt(AstNode stmtAstNode, CobolGrammar grammar, CobolSymbolTable symbolTable)Deprecated. -
Uses of AstNode in com.sonarsource.cobol.api.issue
Methods in com.sonarsource.cobol.api.issue with parameters of type AstNode Modifier and Type Method Description TLocationBuilder. on(AstNode node)TLocationBuilder. onRange(AstNode firstNode, AstNode lastNode)precise issue location, seeLocationBuilder.onRange(Token, Token)Method parameters in com.sonarsource.cobol.api.issue with type arguments of type AstNode Modifier and Type Method Description TMultiLocationBuilder. onNodes(Stream<AstNode> nodeStream)TLocationBuilder. onRange(List<AstNode> nodeList)precise issue location, seeLocationBuilder.onRange(Token, Token) -
Uses of AstNode in com.sonarsource.cobol.api.symbol
Methods in com.sonarsource.cobol.api.symbol that return types with arguments of type AstNode Modifier and Type Method Description List<AstNode>Module. getCalls()Methods in com.sonarsource.cobol.api.symbol with parameters of type AstNode Modifier and Type Method Description static DataItemDataItemFinder. find(CobolGrammar grammar, CobolSymbolTable symbolTable, AstNode qualifiedDataNameNode)Method parameters in com.sonarsource.cobol.api.symbol with type arguments of type AstNode Modifier and Type Method Description voidModule. addCalls(List<AstNode> calls)Constructors in com.sonarsource.cobol.api.symbol with parameters of type AstNode Constructor Description DataItem(AstNode node)FileSymbol(String name, AstNode node)Module(Procedure startProcedure, AstNode call)Module(Procedure startProcedure, Procedure endProcedure, AstNode call)Paragraph(String name, AstNode node)Procedure(String name, AstNode node)Section(String name, AstNode node) -
Uses of AstNode in org.sonar.sslr.ast
Methods in org.sonar.sslr.ast that return AstNode Modifier and Type Method Description AstNodeAstSelect. 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 AstNode Modifier and Type Method Description Iterator<AstNode>AstSelect. iterator()Deprecated.Returns an iterator over the elements in this selection.Method parameters in org.sonar.sslr.ast with type arguments of type AstNode Modifier and Type Method Description AstSelectAstSelect. filter(Predicate<AstNode> predicate)Deprecated.Returns new selection, which contains elements of this selection that satisfy a predicate. -
Uses of AstNode in org.sonar.sslr.internal.ast.select
Methods in org.sonar.sslr.internal.ast.select that return AstNode Modifier and Type Method Description AstNodeEmptyAstSelect. get(int index)AstNodeListAstSelect. get(int index)AstNodeSingleAstSelect. get(int index)Methods in org.sonar.sslr.internal.ast.select that return types with arguments of type AstNode Modifier and Type Method Description Iterator<AstNode>EmptyAstSelect. iterator()Iterator<AstNode>ListAstSelect. iterator()Iterator<AstNode>SingleAstSelect. iterator()Methods in org.sonar.sslr.internal.ast.select with parameters of type AstNode Modifier and Type Method Description static AstSelectAstSelectFactory. select(AstNode node)Method parameters in org.sonar.sslr.internal.ast.select with type arguments of type AstNode Modifier and Type Method Description static AstSelectAstSelectFactory. create(List<AstNode> list)AstSelectEmptyAstSelect. filter(Predicate<AstNode> predicate)AstSelectListAstSelect. filter(Predicate<AstNode> predicate)AstSelectSingleAstSelect. filter(Predicate<AstNode> predicate)Constructors in org.sonar.sslr.internal.ast.select with parameters of type AstNode Constructor Description SingleAstSelect(AstNode node)Constructor parameters in org.sonar.sslr.internal.ast.select with type arguments of type AstNode Constructor Description ListAstSelect(List<AstNode> list) -
Uses of AstNode in org.sonar.sslr.internal.grammar
Methods in org.sonar.sslr.internal.grammar with parameters of type AstNode Modifier and Type Method Description booleanMutableParsingRule. hasToBeSkippedFromAst(AstNode node) -
Uses of AstNode in org.sonar.sslr.internal.matchers
Methods in org.sonar.sslr.internal.matchers that return AstNode Modifier and Type Method Description static AstNodeAstCreator. create(ParsingResult parsingResult, LocatedText input)static AstNodeLexerfulAstCreator. create(ParseNode node, List<Token> tokens) -
Uses of AstNode in org.sonar.sslr.parser
Methods in org.sonar.sslr.parser that return AstNode Modifier and Type Method Description AstNodeParserAdapter. parse(File file)AstNodeParserAdapter. parse(String source)AstNodeParserAdapter. parse(List<Token> tokens)
-