|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use AstNode | |
---|---|
com.sonar.c.api | |
com.sonar.c.api.ast | |
com.sonar.sslr.api | |
com.sonar.sslr.api.flow | |
com.sonar.sslr.api.symbol |
Uses of AstNode in com.sonar.c.api |
---|
Methods in com.sonar.c.api with parameters of type AstNode | |
---|---|
boolean |
CTokenType.hasToBeSkippedFromAst(AstNode node)
|
boolean |
CPunctuator.hasToBeSkippedFromAst(AstNode node)
|
boolean |
CKeyword.hasToBeSkippedFromAst(AstNode node)
|
Uses of AstNode in com.sonar.c.api.ast |
---|
Methods in com.sonar.c.api.ast with parameters of type AstNode | |
---|---|
void |
CAstVisitor.beforeLeaveFile(AstNode astNode)
|
void |
CAstVisitor.leaveFile(AstNode astNode)
Called once a computation unit tree has been fully visited. |
void |
CAstVisitor.leaveNode(AstNode astNode)
Called once an AST node has been fully visited. |
protected void |
CAstCheck.log(String messageText,
AstNode node,
Object... messageParameters)
|
void |
CAstVisitor.visitFile(AstNode astNode)
Called before starting visiting a computation unit tree. |
void |
CAstVisitor.visitNode(AstNode astNode)
Called to process an AST node whose type has been registered to be visited. |
Uses of AstNode in com.sonar.sslr.api |
---|
Methods in com.sonar.sslr.api that return AstNode | |
---|---|
AstNode |
AstNode.findFirstChild(AstNodeType... nodeTypes)
Find the first child among all children and grand-children having one of the requested types. |
AstNode |
AstNode.findFirstDirectChild(AstNodeType... nodeTypes)
Find the first child among all direct children having one of the requested types. |
AstNode |
AstNode.findFirstParent(AstNodeType nodeType)
Find the first parent with the desired node type |
AstNode |
AstNode.getChild(int index)
Get the desired child |
AstNode |
AstNode.getFirstChild()
Get the first child of this node |
AstNode |
AstNode.getLastChild()
Get the last child of this node |
AstNode |
AstNode.getParent()
Get the parent of this node in the tree. |
AstNode |
AstNodeBrowser.getResult()
|
AstNode |
AstNode.nextAstNode()
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.nextSibling()
Get the next sibling AstNode if exists in the tree. |
AstNode |
AstNode.previousSibling()
Get the previous sibling AstNode if exists in the tree. |
Methods in com.sonar.sslr.api that return types with arguments of type AstNode | |
---|---|
List<AstNode> |
AstNode.findChildren(AstNodeType nodeType)
Find the all children having the requested type. |
List<AstNode> |
AstNode.findDirectChildren(AstNodeType nodeType)
Find the all children among direct children having the requested type. |
List<AstNode> |
AstNode.getChildren()
Get the list of children. |
List<AstNode> |
AstNodeBrowser.getResults()
|
Methods in com.sonar.sslr.api with parameters of type AstNode | |
---|---|
void |
AstNode.addChild(AstNode child)
|
static AstNodeBrowser |
AstNodeBrowser.browse(AstNode rootNode)
|
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. |
abstract void |
AstListener.startListening(AstNode astNode,
OUTPUT output)
|
void |
AstListener.stopListening(AstNode astNode,
OUTPUT output)
|
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 | |
---|---|
AstNodeBrowser(AstNode rootNode)
|
Uses of AstNode in com.sonar.sslr.api.flow |
---|
Methods in com.sonar.sslr.api.flow that return AstNode | |
---|---|
AstNode |
Statement.getAstNode()
|
Methods in com.sonar.sslr.api.flow with parameters of type AstNode | |
---|---|
STATEMENT |
ExecutionFlowEngine.getStatement(AstNode stmtNode)
|
void |
ExecutionFlowEngine.visitFlow(AstNode stmtToStartVisitFrom)
|
void |
ExecutionFlowEngine.visitFlow(AstNode stmtToStartVisitFrom,
ExecutionFlowVisitor<STATEMENT>... visitors)
|
void |
ExecutionFlow.visitFlow(AstNode stmtToStartVisitFrom,
ExecutionFlowVisitor<STATEMENT>... visitors)
|
Constructors in com.sonar.sslr.api.flow with parameters of type AstNode | |
---|---|
Statement(AstNode stmtAstNode)
|
Uses of AstNode in com.sonar.sslr.api.symbol |
---|
Methods in com.sonar.sslr.api.symbol that return AstNode | |
---|---|
AstNode |
Symbol.getAstNode()
|
Constructors in com.sonar.sslr.api.symbol with parameters of type AstNode | |
---|---|
Symbol(AstNode node)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |