|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use AstNode | |
|---|---|
| com.sonar.c.api | |
| com.sonar.c.api.ast | |
| com.sonar.sslr.api | |
| 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.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 desired types. |
AstNode |
AstNode.findFirstDirectChild(AstNodeType... nodeTypes)
Find the first child among all direct children having one of the desired 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 |
AstNode.nextAstNode()
|
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.findDirectChildren(AstNodeType nodeType)
Find the all children among direct children having the desired type. |
List<AstNode> |
AstNode.getChildren()
Get the list of children. |
| Methods in com.sonar.sslr.api with parameters of type AstNode | |
|---|---|
void |
AstNode.addChild(AstNode child)
|
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. |
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||