Modifier and Type | Method and Description |
---|---|
AstNode |
AstNode.findFirstChild(AstNodeType... nodeTypes)
Deprecated.
in 1.17, use
getFirstDescendant(AstNodeType...) instead |
AstNode |
AstNode.findFirstDirectChild(AstNodeType... nodeTypes)
Deprecated.
in 1.17, use
getFirstChild(AstNodeType...) instead |
AstNode |
AstNode.findFirstParent(AstNodeType nodeType)
Deprecated.
in 1.17, use
getFirstAncestor(AstNodeType) instead |
abstract AstNode |
PreprocessingDirective.getAst()
Deprecated.
|
AstNode |
AstNode.getChild(int index)
Deprecated.
in 1.19.2, use
getFirstChild(AstNodeType...) instead |
AstNode |
AstNode.getFirstAncestor(AstNodeType... nodeTypes) |
AstNode |
AstNode.getFirstAncestor(AstNodeType nodeType) |
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, use
getNextAstNode() instead |
AstNode |
AstNode.nextSibling()
Deprecated.
in 1.17, use
getNextSibling() instead |
AstNode |
AstNode.previousAstNode()
Deprecated.
in 1.17, use
getPreviousAstNode() instead |
AstNode |
AstNode.previousSibling()
Deprecated.
in 1.17, use
getPreviousSibling() |
Modifier and Type | Method and Description |
---|---|
List<AstNode> |
AstNode.findChildren(AstNodeType... nodeTypes)
Deprecated.
in 1.17, use
getDescendants(AstNodeType...) instead, but don't forget that those methods behave differently due to bug SSLR-249 |
List<AstNode> |
AstNode.findDirectChildren(AstNodeType... nodeTypes)
Deprecated.
in 1.17, use
getChildren(AstNodeType...) instead |
List<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() |
Modifier and Type | Method and 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 |
TokenType.hasToBeSkippedFromAst(AstNode node) |
boolean |
GenericTokenType.hasToBeSkippedFromAst(AstNode node) |
boolean |
AstNodeSkippingPolicy.hasToBeSkippedFromAst(AstNode node)
Some AstNode can be pretty useless and makes a global AST less readable.
|
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.
|
Constructor and Description |
---|
AstNodeBrowser(AstNode rootNode) |
Modifier and Type | Method and Description |
---|---|
AstNode |
Branch.getCondition()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
Branch.setCondition(AstNode condition)
Deprecated.
|
void |
CobolExecutionFlow.visitFlow(AstNode stmtToStartVisitFrom,
CobolExecutionFlowVisitor... visitors)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
AstNode |
Symbol.getAstNode() |
Constructor and Description |
---|
Symbol(AstNode node) |
Modifier and Type | Method and Description |
---|---|
AstNode |
Parser.parse(CobolFile file) |
AstNode |
Parser.parse(File file) |
AstNode |
Parser.parse(List<Token> tokens) |
AstNode |
Parser.parse(String source) |
Modifier and Type | Method and Description |
---|---|
boolean |
SkipFromAstIfOnlyOneChild.hasToBeSkippedFromAst(AstNode node) |
boolean |
NeverSkipFromAst.hasToBeSkippedFromAst(AstNode node) |
boolean |
AlwaysSkipFromAst.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, use
AstWalker.walkAndVisit(AstNode) instead |
Modifier and Type | Method and Description |
---|---|
boolean |
RuleDefinition.hasToBeSkippedFromAst(AstNode node) |
Modifier and Type | Method and Description |
---|---|
boolean |
SQLKeyword.hasToBeSkippedFromAst(AstNode node) |
boolean |
MicrofocusKeyword.hasToBeSkippedFromAst(AstNode node) |
boolean |
HpKeyword.hasToBeSkippedFromAst(AstNode node) |
boolean |
GcosKeyword.hasToBeSkippedFromAst(AstNode node) |
boolean |
EnterpriseKeyword.hasToBeSkippedFromAst(AstNode node) |
boolean |
DliKeyword.hasToBeSkippedFromAst(AstNode node) |
boolean |
CobolTokenType.hasToBeSkippedFromAst(AstNode node) |
boolean |
CobolSpecialCharacter.hasToBeSkippedFromAst(AstNode node) |
boolean |
CobolKeyword.hasToBeSkippedFromAst(AstNode node) |
boolean |
CICSKeyword.hasToBeSkippedFromAst(AstNode node) |
boolean |
AcuCobolTokenType.hasToBeSkippedFromAst(AstNode node) |
boolean |
AcuCobolKeyword.hasToBeSkippedFromAst(AstNode node) |
Modifier and Type | Method and 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.
|
protected void |
CobolAstCheck.log(String messageText,
AstNode node,
Object... messageParameters)
Deprecated.
Use:
If "messageParameters" exists, format the message using: |
protected void |
CobolAstCheck.logWithCost(AstNode node,
Double cost,
String messageText,
Object... messageParameters)
Deprecated.
Use:
If "messageParameters" exists, format the message using: |
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.
|
Modifier and Type | Method and Description |
---|---|
AstNode |
CobolStmt.getAstNode()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
CobolStmt.setOutputDataItem(AstNode qualifiedDataNameNode)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
CobolStmt.setInputDataItems(List<AstNode> qualifiedDataNameNodes)
Deprecated.
|
protected void |
CobolStmt.setOutputDataItems(List<AstNode> qualifiedDataNameNodes)
Deprecated.
|
Constructor and Description |
---|
CobolStmt(AstNode stmtAstNode)
Deprecated.
|
CobolStmt(AstNode stmtAstNode,
CobolGrammar grammar,
CobolSymbolTable symbolTable)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
T |
LocationBuilder.on(AstNode node) |
T |
LocationBuilder.onRange(AstNode firstNode,
AstNode lastNode)
precise issue location, see
LocationBuilder.onRange(Token, Token) |
Modifier and Type | Method and Description |
---|---|
T |
MultiLocationBuilder.onNodes(Stream<AstNode> nodeStream) |
T |
LocationBuilder.onRange(List<AstNode> nodeList)
precise issue location, see
LocationBuilder.onRange(Token, Token) |
Modifier and Type | Method and Description |
---|---|
List<AstNode> |
Module.getCalls() |
Modifier and Type | Method and Description |
---|---|
static DataItem |
DataItemFinder.find(CobolGrammar grammar,
CobolSymbolTable symbolTable,
AstNode qualifiedDataNameNode) |
Modifier and Type | Method and Description |
---|---|
void |
Module.addCalls(List<AstNode> calls) |
Constructor and 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) |
Modifier and Type | Method and Description |
---|---|
AstNode |
AstSelect.get(int index)
Returns the element at the specified position in this selection.
|
Modifier and Type | Method and Description |
---|---|
Iterator<AstNode> |
AstSelect.iterator()
Returns an iterator over the elements in this selection.
|
Modifier and Type | Method and Description |
---|---|
AstSelect |
AstSelect.filter(com.google.common.base.Predicate<AstNode> predicate)
Returns new selection, which contains elements of this selection that satisfy a predicate.
|
Modifier and Type | Method and Description |
---|---|
AstNode |
SingleAstSelect.get(int index) |
AstNode |
ListAstSelect.get(int index) |
AstNode |
EmptyAstSelect.get(int index) |
Modifier and Type | Method and Description |
---|---|
Iterator<AstNode> |
SingleAstSelect.iterator() |
Iterator<AstNode> |
ListAstSelect.iterator() |
Iterator<AstNode> |
EmptyAstSelect.iterator() |
Modifier and Type | Method and Description |
---|---|
static AstSelect |
AstSelectFactory.select(AstNode node) |
Modifier and Type | Method and Description |
---|---|
static AstSelect |
AstSelectFactory.create(List<AstNode> list) |
AstSelect |
SingleAstSelect.filter(com.google.common.base.Predicate<AstNode> predicate) |
AstSelect |
ListAstSelect.filter(com.google.common.base.Predicate<AstNode> predicate) |
AstSelect |
EmptyAstSelect.filter(com.google.common.base.Predicate<AstNode> predicate) |
Constructor and Description |
---|
SingleAstSelect(AstNode node) |
Constructor and Description |
---|
ListAstSelect(List<AstNode> list) |
Modifier and Type | Method and Description |
---|---|
boolean |
MutableParsingRule.hasToBeSkippedFromAst(AstNode node) |
Modifier and Type | Method and Description |
---|---|
static AstNode |
LexerfulAstCreator.create(ParseNode node,
List<Token> tokens) |
static AstNode |
AstCreator.create(ParsingResult parsingResult,
Text input) |
Modifier and Type | Method and Description |
---|---|
AstNode |
ParserAdapter.parse(File file) |
AstNode |
ParserAdapter.parse(List<Token> tokens) |
AstNode |
ParserAdapter.parse(String source) |
Copyright © 2009–2017 SonarSource. All rights reserved.