Uses of Class
com.sonar.sslr.api.AstNode

Packages that use AstNode
com.sonar.c.api   
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.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
abstract  AstNode PreprocessingDirective.getAst()
           
 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.previousAstNode()
          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.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
 java.util.List<AstNode> AstNode.findChildren(AstNodeType... nodeTypes)
          Find the all children having the requested type(s).
 java.util.List<AstNode> AstNode.findDirectChildren(AstNodeType... nodeTypes)
          Find the all children among direct children having the requested type(s).
 java.util.List<AstNode> AstNode.getChildren()
          Get the list of children.
 java.util.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)
           
static PreprocessingDirective PreprocessingDirective.create(AstNode ast, Grammar grammar)
           
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.
 

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()
           
 AstNode Branch.getCondition()
           
 

Methods in com.sonar.sslr.api.flow with parameters of type AstNode
 void ExecutionFlowEngine.callVisitBranchOnVisitors(Statement conditionalStatement, AstNode condition)
           
 Statement ExecutionFlowEngine.getStatement(AstNode stmtNode)
           
 void Branch.setCondition(AstNode condition)
           
 void ExecutionFlowEngine.visitFlow(AstNode stmtToStartVisitFrom, ExecutionFlowVisitor... 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)
           
 



Copyright © 2012 SonarSource. All Rights Reserved.