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 AstNode
AstNode. findFirstChild(AstNodeType... nodeTypes)
Deprecated.in 1.17, usegetFirstDescendant(AstNodeType...)
insteadAstNode
AstNode. findFirstDirectChild(AstNodeType... nodeTypes)
Deprecated.in 1.17, usegetFirstChild(AstNodeType...)
insteadAstNode
AstNode. findFirstParent(AstNodeType nodeType)
Deprecated.in 1.17, usegetFirstAncestor(AstNodeType)
insteadabstract AstNode
PreprocessingDirective. getAst()
Deprecated.AstNode
AstNode. getChild(int index)
Deprecated.in 1.19.2, usegetFirstChild(AstNodeType...)
insteadAstNode
AstNode. getFirstAncestor(AstNodeType nodeType)
AstNode
AstNode. getFirstAncestor(AstNodeType... nodeTypes)
AstNode
AstNode. getFirstChild()
Returns the first child of this node.AstNode
AstNode. getFirstChild(AstNodeType... nodeTypes)
Returns first child of one of specified types.AstNode
AstNode. getFirstDescendant(AstNodeType... nodeTypes)
Returns first descendant of one of specified types.AstNode
AstNode. getLastChild()
Returns the last child of this node.AstNode
AstNode. getLastChild(AstNodeType... nodeTypes)
Returns last child of one of specified types.AstNode
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
AstNode. getNextSibling()
Get the next sibling AstNode if exists in the tree.AstNode
AstNode. getParent()
Get the parent of this node in the tree.AstNode
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
AstNode. getPreviousSibling()
Get the previous sibling AstNode if exists in the tree.AstNode
AstNodeBrowser. getResult()
AstNode
AstNode. nextAstNode()
Deprecated.in 1.17, usegetNextAstNode()
insteadAstNode
AstNode. nextSibling()
Deprecated.in 1.17, usegetNextSibling()
insteadAstNode
AstNode. previousAstNode()
Deprecated.in 1.17, usegetPreviousAstNode()
insteadAstNode
AstNode. 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 void
AstNode. addChild(AstNode child)
static AstNodeBrowser
AstNodeBrowser. browse(AstNode rootNode)
static PreprocessingDirective
PreprocessingDirective. create(AstNode ast, Grammar grammar)
Deprecated.static Trivia
Trivia. createPreprocessingDirective(AstNode ast, Grammar grammar)
boolean
AstNodeSkippingPolicy. hasToBeSkippedFromAst(AstNode node)
Some AstNode can be pretty useless and makes a global AST less readable.boolean
GenericTokenType. hasToBeSkippedFromAst(AstNode node)
boolean
TokenType. hasToBeSkippedFromAst(AstNode node)
void
AstVisitor. leaveFile(AstNode ast)
Called once a computation unit tree has been fully visited.void
AstVisitor. leaveNode(AstNode ast)
Called once an AST node has been fully visited.void
AstVisitor. visitFile(AstNode ast)
Called before starting visiting a computation unit tree.void
AstVisitor. 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.symbol
Methods in com.sonar.sslr.api.symbol that return AstNode Modifier and Type Method Description AstNode
Symbol. 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 AstNode
AstNodeBuilder. createNonTerminal(GrammarRuleKey ruleKey, Rule rule, List<Object> children, int startIndex, int endIndex)
AstNode
AstNodeBuilder. createTerminal(Input input, int startIndex, int endIndex, List<Trivia> trivias, TokenType type)
AstNode
GrammarBuilder. 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 AstNode
Parser. parse(CobolFile file)
AstNode
Parser. parse(File file)
AstNode
Parser. parse(String source)
AstNode
Parser. 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 boolean
AlwaysSkipFromAst. hasToBeSkippedFromAst(AstNode node)
boolean
NeverSkipFromAst. hasToBeSkippedFromAst(AstNode node)
boolean
SkipFromAstIfOnlyOneChild. hasToBeSkippedFromAst(AstNode node)
static String
AstXmlPrinter. print(AstNode rootNode)
static void
AstXmlPrinter. print(AstNode rootNode, Writer writer)
void
AstWalker. walkAndVisit(AstNode ast)
void
AstWalker. 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 boolean
RuleDefinition. 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 AstNode
GrammarBuilderInterceptor. invokeRule(GrammarRuleKey grammarRuleKey)
Methods in com.sonar.sslr.impl.typed with parameters of type AstNode Modifier and Type Method Description static void
AstNodeReflector. setChildIndex(AstNode astNode, int childIndex)
static void
AstNodeReflector. setParent(AstNode astNode, AstNode parent)
static void
AstNodeReflector. 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 boolean
AcuCobolKeyword. hasToBeSkippedFromAst(AstNode node)
boolean
AcuCobolTokenType. hasToBeSkippedFromAst(AstNode node)
boolean
CICSKeyword. hasToBeSkippedFromAst(AstNode node)
boolean
CobolKeyword. hasToBeSkippedFromAst(AstNode node)
boolean
CobolSpecialCharacter. hasToBeSkippedFromAst(AstNode node)
boolean
CobolTokenType. hasToBeSkippedFromAst(AstNode node)
boolean
DliKeyword. hasToBeSkippedFromAst(AstNode node)
boolean
EnterpriseKeyword. hasToBeSkippedFromAst(AstNode node)
boolean
GcosKeyword. hasToBeSkippedFromAst(AstNode node)
boolean
HpKeyword. hasToBeSkippedFromAst(AstNode node)
boolean
IleCobolKeyword. hasToBeSkippedFromAst(AstNode node)
boolean
MicrofocusKeyword. hasToBeSkippedFromAst(AstNode node)
boolean
SQLKeyword. 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 void
CobolAstVisitor. leaveFile(AstNode astNode)
Called once a computation unit tree has been fully visited.void
CobolAstVisitor. leaveNode(AstNode astNode)
Called once an AST node has been fully visited.void
CobolAstVisitor. visitFile(AstNode astNode)
Called before starting visiting a computation unit tree.void
CobolAstVisitor. 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.issue
Methods in com.sonarsource.cobol.api.issue with parameters of type AstNode Modifier and Type Method Description T
LocationBuilder. on(AstNode node)
T
LocationBuilder. 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 T
MultiLocationBuilder. onNodes(Stream<AstNode> nodeStream)
T
LocationBuilder. 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 DataItem
DataItemFinder. 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 void
Module. 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 AstNode
AstSelect. 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 AstSelect
AstSelect. 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 AstNode
EmptyAstSelect. get(int index)
AstNode
ListAstSelect. get(int index)
AstNode
SingleAstSelect. 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 AstSelect
AstSelectFactory. select(AstNode node)
Method parameters in org.sonar.sslr.internal.ast.select with type arguments of type AstNode Modifier and Type Method Description static AstSelect
AstSelectFactory. create(List<AstNode> list)
AstSelect
EmptyAstSelect. filter(Predicate<AstNode> predicate)
AstSelect
ListAstSelect. filter(Predicate<AstNode> predicate)
AstSelect
SingleAstSelect. 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 boolean
MutableParsingRule. 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 AstNode
AstCreator. create(ParsingResult parsingResult, LocatedText input)
static AstNode
LexerfulAstCreator. 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 AstNode
ParserAdapter. parse(File file)
AstNode
ParserAdapter. parse(String source)
AstNode
ParserAdapter. parse(List<Token> tokens)
-