A B C D E F G H I J K L M N O P R S T U V W

A

abstractDeclarator - Variable in class com.sonar.c.api.CGrammar
 
add(Statement) - Method in class com.sonar.sslr.api.flow.ExecutionFlowEngine
 
add(FlowHandler) - Method in class com.sonar.sslr.api.flow.ExecutionFlowEngine.FunctionCallStack
 
addChild(AstNode) - Method in class com.sonar.sslr.api.AstNode
 
additiveExpression - Variable in class com.sonar.c.api.CGrammar
 
additiveExpression - Variable in class com.sonar.c.api.CPreprocessorGrammar
 
addTrivia(Trivia) - Method in class com.sonar.sslr.api.Token.Builder
 
aggregateIfThereIsAlreadyAValue() - Method in enum com.sonar.c.api.CMetric
 
and(Object...) - Method in interface com.sonar.sslr.api.Rule
The method Rule.is(Object...) must be first called to be able to extend this rule definition
andExpression - Variable in class com.sonar.c.api.CGrammar
 
andExpression - Variable in class com.sonar.c.api.CPreprocessorGrammar
 
argumentExpressionList - Variable in class com.sonar.c.api.CGrammar
 
assignementOperator - Variable in class com.sonar.c.api.CGrammar
 
assignmentExpression - Variable in class com.sonar.c.api.CGrammar
 
AstAndTokenVisitor - Interface in com.sonar.sslr.api
The AstVisitor allows to visit some desired AstNode.
AstNode - Class in com.sonar.sslr.api
the parser is in charge to construct an abstract syntax tree (AST) which is a tree representation of the abstract syntactic structure of source code.
AstNode(Token) - Constructor for class com.sonar.sslr.api.AstNode
 
AstNode(AstNodeType, String, Token) - Constructor for class com.sonar.sslr.api.AstNode
 
AstNodeBrowser - Class in com.sonar.sslr.api
 
AstNodeBrowser(AstNode) - Constructor for class com.sonar.sslr.api.AstNodeBrowser
 
AstNodeSkippingPolicy - Interface in com.sonar.sslr.api
Specific Ast node types that can tell whether they should be skipped from being attached to the AST or not.
AstNodeType - Interface in com.sonar.sslr.api
Each AST Node has a type which can be for instance the Rule of a Grammar, a language keyword or a language special token like a WORD.
AstVisitor - Interface in com.sonar.sslr.api
 
AuditListener - Interface in com.sonar.sslr.api
An AuditListener must be used to be notified of parsing error or standard exception which might occur when analysing a source code

B

BarrierSignal - Exception in com.sonar.sslr.api.flow
A Barrier signal is used to silently stop exploring a path.
BarrierSignal() - Constructor for exception com.sonar.sslr.api.flow.BarrierSignal
 
blockItem - Variable in class com.sonar.c.api.CGrammar
 
Branch - Class in com.sonar.sslr.api.flow
 
Branch(Branch) - Constructor for class com.sonar.sslr.api.flow.Branch
 
Branch() - Constructor for class com.sonar.sslr.api.flow.Branch
 
browse(AstNode) - Static method in class com.sonar.sslr.api.AstNodeBrowser
 
build() - Method in class com.sonar.sslr.api.Token.Builder
 
builder() - Static method in class com.sonar.sslr.api.Token
 
builder(Token) - Static method in class com.sonar.sslr.api.Token
 

C

callEndPathOnVisitors() - Method in class com.sonar.sslr.api.flow.ExecutionFlowEngine
 
callLeaveBranchOnVisitors() - Method in class com.sonar.sslr.api.flow.ExecutionFlowEngine
 
callLeaveMandatoryBranches() - Method in class com.sonar.sslr.api.flow.ExecutionFlowEngine
 
callVisitBranchOnVisitors(Statement, AstNode) - Method in class com.sonar.sslr.api.flow.ExecutionFlowEngine
 
callVisitMandatoryBranches() - Method in class com.sonar.sslr.api.flow.ExecutionFlowEngine
 
caseLabel - Variable in class com.sonar.c.api.CGrammar
 
castExpression - Variable in class com.sonar.c.api.CGrammar
 
CGrammar - Class in com.sonar.c.api
 
CGrammar() - Constructor for class com.sonar.c.api.CGrammar
 
CKeyword - Enum in com.sonar.c.api
 
clone() - Method in class com.sonar.sslr.api.flow.ExecutionFlowEngine.FunctionCallStack
 
CMetric - Enum in com.sonar.c.api
 
com.sonar.c.api - package com.sonar.c.api
 
com.sonar.sslr.api - package com.sonar.sslr.api
 
com.sonar.sslr.api.flow - package com.sonar.sslr.api.flow
 
com.sonar.sslr.api.symbol - package com.sonar.sslr.api.symbol
 
CommentAnalyser - Class in com.sonar.sslr.api
 
CommentAnalyser() - Constructor for class com.sonar.sslr.api.CommentAnalyser
 
compoundStatement - Variable in class com.sonar.c.api.CGrammar
 
conditionalExpression - Variable in class com.sonar.c.api.CGrammar
 
conditionalExpression - Variable in class com.sonar.c.api.CPreprocessorGrammar
 
constant - Variable in class com.sonar.c.api.CGrammar
 
constantExpression - Variable in class com.sonar.c.api.CGrammar
 
constantExpression - Variable in class com.sonar.c.api.CPreprocessorGrammar
 
contains(FlowHandler) - Method in class com.sonar.sslr.api.flow.ExecutionFlowEngine.FunctionCallStack
 
CPreprocessorGrammar - Class in com.sonar.c.api
 
CPreprocessorGrammar() - Constructor for class com.sonar.c.api.CPreprocessorGrammar
 
CPunctuator - Enum in com.sonar.c.api
 
create(AstNode, Grammar) - Static method in class com.sonar.sslr.api.PreprocessingDirective
 
createComment(Token) - Static method in class com.sonar.sslr.api.Trivia
 
createPreprocessingDirective(PreprocessingDirective) - Static method in class com.sonar.sslr.api.Trivia
 
createPreprocessingDirective(AstNode, Grammar) - Static method in class com.sonar.sslr.api.Trivia
 
createPreprocessingToken(Token) - Static method in class com.sonar.sslr.api.Trivia
 
createSkippedText(List<Token>) - Static method in class com.sonar.sslr.api.Trivia
 
createSkippedText(Token...) - Static method in class com.sonar.sslr.api.Trivia
 
CTokenType - Enum in com.sonar.c.api
 
customLabel - Variable in class com.sonar.c.api.CGrammar
 

D

declaration - Variable in class com.sonar.c.api.CGrammar
 
declarationSpecifiers - Variable in class com.sonar.c.api.CGrammar
 
declarator - Variable in class com.sonar.c.api.CGrammar
 
defaultLabel - Variable in class com.sonar.c.api.CGrammar
 
definedExpression - Variable in class com.sonar.c.api.CPreprocessorGrammar
 
designation - Variable in class com.sonar.c.api.CGrammar
 
designator - Variable in class com.sonar.c.api.CGrammar
 
directAbstractDeclarator - Variable in class com.sonar.c.api.CGrammar
 
directDeclarator - Variable in class com.sonar.c.api.CGrammar
 
directive - Variable in class com.sonar.c.api.CPreprocessorGrammar
 
doWhileStatement - Variable in class com.sonar.c.api.CGrammar
 

E

elifDirective - Variable in class com.sonar.c.api.CPreprocessorGrammar
 
elseDirective - Variable in class com.sonar.c.api.CPreprocessorGrammar
 
elseStatement - Variable in class com.sonar.c.api.CGrammar
 
endifDirective - Variable in class com.sonar.c.api.CPreprocessorGrammar
 
endPath(Branch) - Method in class com.sonar.sslr.api.flow.ExecutionFlowVisitor
 
enumerationConstant - Variable in class com.sonar.c.api.CGrammar
 
enumerator - Variable in class com.sonar.c.api.CGrammar
 
enumeratorList - Variable in class com.sonar.c.api.CGrammar
 
enumSpecifier - Variable in class com.sonar.c.api.CGrammar
 
equalityExpression - Variable in class com.sonar.c.api.CGrammar
 
equalityExpression - Variable in class com.sonar.c.api.CPreprocessorGrammar
 
errorDirective - Variable in class com.sonar.c.api.CPreprocessorGrammar
 
exclusiveOrExpression - Variable in class com.sonar.c.api.CGrammar
 
exclusiveOrExpression - Variable in class com.sonar.c.api.CPreprocessorGrammar
 
ExecutionFlow<STATEMENT extends Statement> - Interface in com.sonar.sslr.api.flow
 
ExecutionFlowEngine - Class in com.sonar.sslr.api.flow
 
ExecutionFlowEngine() - Constructor for class com.sonar.sslr.api.flow.ExecutionFlowEngine
 
ExecutionFlowEngine.FunctionCallStack - Class in com.sonar.sslr.api.flow
 
ExecutionFlowEngine.FunctionCallStack() - Constructor for class com.sonar.sslr.api.flow.ExecutionFlowEngine.FunctionCallStack
 
ExecutionFlowError - Exception in com.sonar.sslr.api.flow
 
ExecutionFlowError(String) - Constructor for exception com.sonar.sslr.api.flow.ExecutionFlowError
 
ExecutionFlowSignal - Exception in com.sonar.sslr.api.flow
 
ExecutionFlowSignal() - Constructor for exception com.sonar.sslr.api.flow.ExecutionFlowSignal
 
ExecutionFlowVisitor<STATEMENT extends Statement> - Class in com.sonar.sslr.api.flow
 
ExecutionFlowVisitor() - Constructor for class com.sonar.sslr.api.flow.ExecutionFlowVisitor
 
expression - Variable in class com.sonar.c.api.CGrammar
 
expressionList - Variable in class com.sonar.c.api.CGrammar
 
expressionStatement - Variable in class com.sonar.c.api.CGrammar
 
externalDeclaration - Variable in class com.sonar.c.api.CGrammar
 

F

findChildren(AstNodeType...) - Method in class com.sonar.sslr.api.AstNode
Find the all children having the requested type(s).
findChildren(AstNodeType) - Method in class com.sonar.sslr.api.AstNodeBrowser
 
findDirectChildren(AstNodeType...) - Method in class com.sonar.sslr.api.AstNode
Find the all children among direct children having the requested type(s).
findFirstChild(AstNodeType...) - Method in class com.sonar.sslr.api.AstNode
Find the first child among all children and grand-children having one of the requested types.
findFirstChild(AstNodeType...) - Method in class com.sonar.sslr.api.AstNodeBrowser
 
findFirstDirectChild(AstNodeType...) - Method in class com.sonar.sslr.api.AstNode
Find the first child among all direct children having one of the requested types.
findFirstDirectChild(AstNodeType...) - Method in class com.sonar.sslr.api.AstNodeBrowser
 
findFirstDirectChild(AstNodeType, String) - Method in class com.sonar.sslr.api.AstNodeBrowser
 
findFirstParent(AstNodeType) - Method in class com.sonar.sslr.api.AstNode
Find the first parent with the desired node type
floatingConstant - Variable in class com.sonar.c.api.CGrammar
 
FlowHandler - Class in com.sonar.sslr.api.flow
 
FlowHandler() - Constructor for class com.sonar.sslr.api.flow.FlowHandler
 
forStatement - Variable in class com.sonar.c.api.CGrammar
 
functionDeclarator - Variable in class com.sonar.c.api.CGrammar
 
functionDefinition - Variable in class com.sonar.c.api.CGrammar
 
functionLikeDefineDirective - Variable in class com.sonar.c.api.CPreprocessorGrammar
 
functionLikeDefineParameters - Variable in class com.sonar.c.api.CPreprocessorGrammar
 
functionLikeDefineVariadicParameter - Variable in class com.sonar.c.api.CPreprocessorGrammar
 
functionName - Variable in class com.sonar.c.api.CGrammar
 
functionSpecifier - Variable in class com.sonar.c.api.CGrammar
 

G

gccAsm - Variable in class com.sonar.c.api.CGrammar
 
gccAsmStatement - Variable in class com.sonar.c.api.CGrammar
 
gccAttribute - Variable in class com.sonar.c.api.CGrammar
 
gccCaseRange - Variable in class com.sonar.c.api.CGrammar
 
GenericTokenType - Enum in com.sonar.sslr.api
 
getAggregationFormula() - Method in enum com.sonar.c.api.CMetric
 
getAllRuleFields(Class) - Static method in class com.sonar.sslr.api.Grammar
Find all direct and indirect rule fields declared in the given Grammar class.
getAst() - Method in class com.sonar.sslr.api.PreprocessingDirective
 
getAstNode() - Method in class com.sonar.sslr.api.flow.Statement
 
getAstNode() - Method in class com.sonar.sslr.api.symbol.Symbol
 
getAstNodeTypesToVisit() - Method in interface com.sonar.sslr.api.AstVisitor
The AST node types that this check must be registered for.
getCalculatedMetricFormula() - Method in enum com.sonar.c.api.CMetric
 
getChild(int) - Method in class com.sonar.sslr.api.AstNode
Get the desired child
getChildren() - Method in class com.sonar.sslr.api.AstNode
Get the list of children.
getColumn() - Method in class com.sonar.sslr.api.Token
 
getCondition() - Method in class com.sonar.sslr.api.flow.Branch
 
getConditionalStatement() - Method in class com.sonar.sslr.api.flow.Branch
 
getContents(String) - Method in class com.sonar.sslr.api.CommentAnalyser
Extract the content of a comment, i.e.
getCopyBookOriginalFileName() - Method in class com.sonar.sslr.api.Token
 
getCopyBookOriginalLine() - Method in class com.sonar.sslr.api.Token
 
getDepth() - Method in class com.sonar.sslr.api.flow.Branch
 
getDepthDetail() - Method in class com.sonar.sslr.api.flow.Branch
 
getEndLine() - Method in class com.sonar.sslr.api.symbol.Symbol
 
getFirstChild() - Method in class com.sonar.sslr.api.AstNode
Get the first child of this node
getFlowHandler() - Method in class com.sonar.sslr.api.flow.Statement
 
getFromIndex() - Method in class com.sonar.sslr.api.AstNode
 
getFunctionCallStack() - Method in class com.sonar.sslr.api.flow.ExecutionFlowEngine
 
getGrammar() - Method in class com.sonar.sslr.api.PreprocessingDirective
 
getInitValue() - Method in enum com.sonar.c.api.CMetric
 
getLastChild() - Method in class com.sonar.sslr.api.AstNode
Get the last child of this node
getLastToken() - Method in class com.sonar.sslr.api.AstNode
 
getLine() - Method in exception com.sonar.sslr.api.RecognitionException
Line where the parsing error has occurred.
getLine() - Method in class com.sonar.sslr.api.Token
 
getName() - Method in enum com.sonar.c.api.CKeyword
 
getName() - Method in enum com.sonar.c.api.CMetric
 
getName() - Method in enum com.sonar.c.api.CPunctuator
 
getName() - Method in enum com.sonar.c.api.CTokenType
 
getName() - Method in class com.sonar.sslr.api.AstNode
 
getName() - Method in enum com.sonar.sslr.api.GenericTokenType
 
getName() - Method in interface com.sonar.sslr.api.TokenType
 
getNext() - Method in class com.sonar.sslr.api.flow.Statement
 
getNumberOfChildren() - Method in class com.sonar.sslr.api.AstNode
 
getNumberOfConsumedTokens() - Method in class com.sonar.sslr.api.PreprocessorAction
 
getOriginalValue() - Method in class com.sonar.sslr.api.Token
 
getParent() - Method in class com.sonar.sslr.api.AstNode
Get the parent of this node in the tree.
getParent() - Method in class com.sonar.sslr.api.flow.Branch
 
getPreprocessingDirective() - Method in class com.sonar.sslr.api.Trivia
 
getPrevious() - Method in class com.sonar.sslr.api.flow.Statement
 
getResult() - Method in class com.sonar.sslr.api.AstNodeBrowser
 
getResults() - Method in class com.sonar.sslr.api.AstNodeBrowser
 
getRootRule() - Method in class com.sonar.c.api.CGrammar
 
getRootRule() - Method in class com.sonar.c.api.CPreprocessorGrammar
 
getRootRule() - Method in class com.sonar.sslr.api.Grammar
Each Grammar has always an entry point whose name is usually by convention the "Computation Unit".
getRuleFields(Class) - Static method in class com.sonar.sslr.api.Grammar
Find all the direct rule fields declared in the given Grammar class.
getStartLine() - Method in class com.sonar.sslr.api.symbol.Symbol
 
getStatement(AstNode) - Method in class com.sonar.sslr.api.flow.ExecutionFlowEngine
 
getStatements() - Method in class com.sonar.sslr.api.flow.ExecutionFlowEngine
 
getToIndex() - Method in class com.sonar.sslr.api.AstNode
 
getToken() - Method in class com.sonar.sslr.api.AstNode
Get the Token associated to this AstNode
getToken() - Method in class com.sonar.sslr.api.Trivia
 
getTokenLine() - Method in class com.sonar.sslr.api.AstNode
Get the Token's line associated to this AstNode
getTokenOriginalValue() - Method in class com.sonar.sslr.api.AstNode
Get the Token's original value associated to this AstNode
getTokens() - Method in class com.sonar.sslr.api.AstNode
Return all tokens contained in this tree node.
getTokens() - Method in class com.sonar.sslr.api.Trivia
 
getTokensToInject() - Method in class com.sonar.sslr.api.PreprocessorAction
 
getTokenValue() - Method in class com.sonar.sslr.api.AstNode
Get the Token's value associated to this AstNode
getTrivia() - Method in class com.sonar.sslr.api.Token
 
getTriviaToInject() - Method in class com.sonar.sslr.api.PreprocessorAction
 
getType() - Method in class com.sonar.sslr.api.AstNode
 
getType() - Method in class com.sonar.sslr.api.Token
 
getURI() - Method in class com.sonar.sslr.api.Token
 
getValue() - Method in enum com.sonar.c.api.CKeyword
 
getValue() - Method in enum com.sonar.c.api.CPunctuator
 
getValue() - Method in enum com.sonar.c.api.CTokenType
 
getValue() - Method in enum com.sonar.sslr.api.GenericTokenType
 
getValue() - Method in class com.sonar.sslr.api.Token
 
getValue() - Method in interface com.sonar.sslr.api.TokenType
 
gotoStatement - Variable in class com.sonar.c.api.CGrammar
 
Grammar - Class in com.sonar.sslr.api
 
Grammar() - Constructor for class com.sonar.sslr.api.Grammar
 

H

hasChildren() - Method in class com.sonar.sslr.api.AstNode
 
hasChildren(AstNodeType...) - Method in class com.sonar.sslr.api.AstNode
 
hasDirectChildren(AstNodeType...) - Method in class com.sonar.sslr.api.AstNode
 
hasFlowHandler() - Method in class com.sonar.sslr.api.flow.Statement
 
hasNext() - Method in class com.sonar.sslr.api.flow.Statement
 
hasParents(AstNodeType) - Method in class com.sonar.sslr.api.AstNode
 
hasPreprocessingDirective() - Method in class com.sonar.sslr.api.Trivia
 
hasPrevious() - Method in class com.sonar.sslr.api.flow.Statement
 
hasResult() - Method in class com.sonar.sslr.api.AstNodeBrowser
 
hasToBeSkippedFromAst(AstNode) - Method in enum com.sonar.c.api.CKeyword
 
hasToBeSkippedFromAst(AstNode) - Method in enum com.sonar.c.api.CPunctuator
 
hasToBeSkippedFromAst(AstNode) - Method in enum com.sonar.c.api.CTokenType
 
hasToBeSkippedFromAst() - Method in class com.sonar.sslr.api.AstNode
 
hasToBeSkippedFromAst(AstNode) - Method in interface com.sonar.sslr.api.AstNodeSkippingPolicy
Some AstNode can be pretty useless and makes a global AST less readable.
hasToBeSkippedFromAst(AstNode) - Method in enum com.sonar.sslr.api.GenericTokenType
 
hasToBeSkippedFromAst(AstNode) - Method in interface com.sonar.sslr.api.TokenType
 
hasToken() - Method in class com.sonar.sslr.api.AstNode
 
hasTrivia() - Method in class com.sonar.sslr.api.Token
 

I

identifierList - Variable in class com.sonar.c.api.CGrammar
 
ifdefDirective - Variable in class com.sonar.c.api.CPreprocessorGrammar
 
ifDirective - Variable in class com.sonar.c.api.CPreprocessorGrammar
 
ifndefDirective - Variable in class com.sonar.c.api.CPreprocessorGrammar
 
ifStatement - Variable in class com.sonar.c.api.CGrammar
 
includeDirective - Variable in class com.sonar.c.api.CPreprocessorGrammar
 
inclusiveOrExpression - Variable in class com.sonar.c.api.CGrammar
 
inclusiveOrExpression - Variable in class com.sonar.c.api.CPreprocessorGrammar
 
incorrectExternalDeclaration - Variable in class com.sonar.c.api.CGrammar
 
init() - Method in class com.sonar.sslr.api.Preprocessor
Method called before the lexing starts which can be overridden to initialize a state for instance.
initDeclarator - Variable in class com.sonar.c.api.CGrammar
 
initializer - Variable in class com.sonar.c.api.CGrammar
 
initializerList - Variable in class com.sonar.c.api.CGrammar
 
integerConstant - Variable in class com.sonar.c.api.CGrammar
 
is(AstNodeType...) - Method in class com.sonar.sslr.api.AstNode
 
is(Object...) - Method in interface com.sonar.sslr.api.Rule
This method allows to provide the definition of a context-free grammar rule.
isBlank(String) - Method in class com.sonar.sslr.api.CommentAnalyser
Check whether or not a comment line is blank
isCalculatedMetric() - Method in enum com.sonar.c.api.CMetric
 
isComment() - Method in class com.sonar.sslr.api.Trivia
 
isCopyBook() - Method in class com.sonar.sslr.api.Token
 
isCopyBookOrGeneratedNode() - Method in class com.sonar.sslr.api.AstNode
 
isEmpty() - Method in class com.sonar.sslr.api.flow.ExecutionFlowEngine.FunctionCallStack
 
isFatal() - Method in exception com.sonar.sslr.api.RecognitionException
 
isGeneratedCode() - Method in class com.sonar.sslr.api.Token
 
isNot(AstNodeType...) - Method in class com.sonar.sslr.api.AstNode
 
isOnSameLineThan(Token) - Method in class com.sonar.sslr.api.Token
 
isOr(Object...) - Method in interface com.sonar.sslr.api.Rule
The method Rule.is(Object...) is just a utility method which prevents writing is(or());
isParentOf(Branch) - Method in class com.sonar.sslr.api.flow.Branch
 
isParentOrChildOf(Branch) - Method in class com.sonar.sslr.api.flow.Branch
 
isPreprocessor() - Method in class com.sonar.sslr.api.Trivia
 
isSkippedText() - Method in class com.sonar.sslr.api.Trivia
 
isThereAggregationFormula() - Method in enum com.sonar.c.api.CMetric
 
isToRetryWithExtendStackTrace() - Method in exception com.sonar.sslr.api.RecognitionException
 

J

jumpStatement - Variable in class com.sonar.c.api.CGrammar
 

K

keywordValues() - Static method in enum com.sonar.c.api.CKeyword
 

L

labeledStatement - Variable in class com.sonar.c.api.CGrammar
 
leaveBranch(Branch) - Method in class com.sonar.sslr.api.flow.ExecutionFlowVisitor
 
leaveFile(AstNode) - Method in interface com.sonar.sslr.api.AstVisitor
Called once a computation unit tree has been fully visited.
leaveMandatoryBranches() - Method in class com.sonar.sslr.api.flow.ExecutionFlowVisitor
 
leaveNode(AstNode) - Method in interface com.sonar.sslr.api.AstVisitor
Called once an AST node has been fully visited.
lineDirective - Variable in class com.sonar.c.api.CPreprocessorGrammar
 
literal - Variable in class com.sonar.c.api.CGrammar
 
logicalAndExpression - Variable in class com.sonar.c.api.CGrammar
 
logicalAndExpression - Variable in class com.sonar.c.api.CPreprocessorGrammar
 
logicalOrExpression - Variable in class com.sonar.c.api.CGrammar
 
logicalOrExpression - Variable in class com.sonar.c.api.CPreprocessorGrammar
 

M

mock() - Method in interface com.sonar.sslr.api.Rule
Utility method used for unit testing in order to dynamically replace the definition of the rule to match as soon as a token whose value equals the name of the rule is encountered
multiplicativeExpression - Variable in class com.sonar.c.api.CGrammar
 
multiplicativeExpression - Variable in class com.sonar.c.api.CPreprocessorGrammar
 

N

nextAstNode() - Method in class com.sonar.sslr.api.AstNode
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.
nextSibling() - Method in class com.sonar.sslr.api.AstNode
Get the next sibling AstNode if exists in the tree.
NO_OPERATION - Static variable in class com.sonar.sslr.api.PreprocessorAction
Use this no operation preprocessor action for improved readability and performances.
nonDirective - Variable in class com.sonar.c.api.CPreprocessorGrammar
 
nullDirective - Variable in class com.sonar.c.api.CPreprocessorGrammar
 

O

objectLikeDefineDirective - Variable in class com.sonar.c.api.CPreprocessorGrammar
 
or(Object...) - Method in interface com.sonar.sslr.api.Rule
The method Rule.is(Object...) must be first called to be able to add a new alternative to this rule
orBefore(Object...) - Method in interface com.sonar.sslr.api.Rule
The method Rule.is(Object...) must be first called to be able to add a new alternative to this rule.
override(Object...) - Method in interface com.sonar.sslr.api.Rule
This method has the same effect as RuleImpl#is(Object...), except that it can be called more than once to redefine a rule from scratch.

P

parameterDeclaration - Variable in class com.sonar.c.api.CGrammar
 
parameterTypeList - Variable in class com.sonar.c.api.CGrammar
 
peek() - Method in class com.sonar.sslr.api.flow.ExecutionFlowEngine.FunctionCallStack
 
plug(Object) - Method in interface com.sonar.sslr.api.Rule
Experimental
pointer - Variable in class com.sonar.c.api.CGrammar
 
pop() - Method in class com.sonar.sslr.api.flow.ExecutionFlowEngine.FunctionCallStack
 
postfixExpression - Variable in class com.sonar.c.api.CGrammar
 
ppIdentifier - Variable in class com.sonar.c.api.CPreprocessorGrammar
 
ppTokens - Variable in class com.sonar.c.api.CPreprocessorGrammar
 
pragmaDirective - Variable in class com.sonar.c.api.CPreprocessorGrammar
 
PreprocessingDirective - Class in com.sonar.sslr.api
 
PreprocessingDirective() - Constructor for class com.sonar.sslr.api.PreprocessingDirective
 
Preprocessor - Class in com.sonar.sslr.api
A preprocessor is a component which can alter the stream of Token and Trivia.
The supported operations are injection and deletion.
Preprocessor() - Constructor for class com.sonar.sslr.api.Preprocessor
 
PreprocessorAction - Class in com.sonar.sslr.api
This class encapsulates the actions to be performed by a preprocessor.
PreprocessorAction(int, List<Trivia>, List<Token>) - Constructor for class com.sonar.sslr.api.PreprocessorAction
Construct a preprocessor action.
previousAstNode() - Method in class com.sonar.sslr.api.AstNode
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.
previousSibling() - Method in class com.sonar.sslr.api.AstNode
Get the previous sibling AstNode if exists in the tree.
primaryExpression - Variable in class com.sonar.c.api.CGrammar
 
primaryExpression - Variable in class com.sonar.c.api.CPreprocessorGrammar
 
process(List<Token>) - Method in class com.sonar.sslr.api.Preprocessor
Method called on each token seen by the current preprocessor.
processException(Exception) - Method in interface com.sonar.sslr.api.AuditListener
This method is called when an exception different from a parsing error occurs
processFlow(ExecutionFlowEngine) - Method in class com.sonar.sslr.api.flow.FlowHandler
 
processRecognitionException(RecognitionException) - Method in interface com.sonar.sslr.api.RecognitionExceptionListener
This method is called when a recognition exception occurs

R

RecognitionException - Exception in com.sonar.sslr.api
If a parsing error is encountered, an exception which implements this RecognitionException is thrown by the Parser.
RecognitionException(ParsingState, boolean) - Constructor for exception com.sonar.sslr.api.RecognitionException
 
RecognitionException(String, ParsingState, boolean, Throwable) - Constructor for exception com.sonar.sslr.api.RecognitionException
 
RecognitionException(ExtendedStackTrace, boolean) - Constructor for exception com.sonar.sslr.api.RecognitionException
 
RecognitionException(LexerException) - Constructor for exception com.sonar.sslr.api.RecognitionException
 
RecognitionExceptionListener - Interface in com.sonar.sslr.api
A RecognitionExceptionListener must be used to be notified of parsing error
recoveryRule() - Method in interface com.sonar.sslr.api.Rule
A rule should be flagged as being a "Recovery" rule if it's responsibility is to consume some bad tokens in order to recover from a parsing error.
relationalExpression - Variable in class com.sonar.c.api.CGrammar
 
relationalExpression - Variable in class com.sonar.c.api.CPreprocessorGrammar
 
replacementList - Variable in class com.sonar.c.api.CPreprocessorGrammar
 
returnStatement - Variable in class com.sonar.c.api.CGrammar
 
Rule - Interface in com.sonar.sslr.api
A Rule describes a context free grammar syntactic rule.

S

setColumn(int) - Method in class com.sonar.sslr.api.Token.Builder
 
setCondition(AstNode) - Method in class com.sonar.sslr.api.flow.Branch
 
setConditionalStatement(Statement) - Method in class com.sonar.sslr.api.flow.Branch
 
setCopyBook(String, int) - Method in class com.sonar.sslr.api.Token.Builder
 
setFlowHandler(FlowHandler) - Method in class com.sonar.sslr.api.flow.Statement
 
setFromIndex(int) - Method in class com.sonar.sslr.api.AstNode
 
setFunctionCallStackStack(ExecutionFlowEngine.FunctionCallStack) - Method in class com.sonar.sslr.api.flow.ExecutionFlowEngine
 
setGeneratedCode(boolean) - Method in class com.sonar.sslr.api.Token.Builder
 
setLine(int) - Method in class com.sonar.sslr.api.Token.Builder
 
setNext(Statement) - Method in class com.sonar.sslr.api.flow.Statement
 
setToIndex(int) - Method in class com.sonar.sslr.api.AstNode
 
setTrivia(List<Trivia>) - Method in class com.sonar.sslr.api.Token.Builder
 
setType(TokenType) - Method in class com.sonar.sslr.api.Token.Builder
 
setURI(URI) - Method in class com.sonar.sslr.api.Token.Builder
 
setValueAndOriginalValue(String) - Method in class com.sonar.sslr.api.Token.Builder
 
setValueAndOriginalValue(String, String) - Method in class com.sonar.sslr.api.Token.Builder
 
shiftExpression - Variable in class com.sonar.c.api.CGrammar
 
shiftExpression - Variable in class com.sonar.c.api.CPreprocessorGrammar
 
skip() - Method in interface com.sonar.sslr.api.Rule
Remove this node from the AST and attached its children directly to its parent
skipIf(AstNodeSkippingPolicy) - Method in interface com.sonar.sslr.api.Rule
Remove this node from the AST according to a provided policy
skipIfOneChild() - Method in interface com.sonar.sslr.api.Rule
Remove this node from the AST if it has exactly 1 child
speciaTypeName - Variable in class com.sonar.c.api.CGrammar
 
specifierQualifierList - Variable in class com.sonar.c.api.CGrammar
 
start() - Method in class com.sonar.sslr.api.flow.ExecutionFlowVisitor
 
statement - Variable in class com.sonar.c.api.CGrammar
 
Statement - Class in com.sonar.sslr.api.flow
 
Statement(AstNode) - Constructor for class com.sonar.sslr.api.flow.Statement
 
stop() - Method in class com.sonar.sslr.api.flow.ExecutionFlowVisitor
 
StopFlowExplorationSignal - Exception in com.sonar.sslr.api.flow
Must be used to stop visiting the execution flow.
StopFlowExplorationSignal() - Constructor for exception com.sonar.sslr.api.flow.StopFlowExplorationSignal
 
StopPathExplorationSignal - Exception in com.sonar.sslr.api.flow
This signal must be used when the end of a path has been reached.
StopPathExplorationSignal() - Constructor for exception com.sonar.sslr.api.flow.StopPathExplorationSignal
 
storageClassSpecifier - Variable in class com.sonar.c.api.CGrammar
 
structDeclaration - Variable in class com.sonar.c.api.CGrammar
 
structDeclarator - Variable in class com.sonar.c.api.CGrammar
 
structOrUnion - Variable in class com.sonar.c.api.CGrammar
 
structOrUnionSpecifier - Variable in class com.sonar.c.api.CGrammar
 
switchStatement - Variable in class com.sonar.c.api.CGrammar
 
Symbol - Class in com.sonar.sslr.api.symbol
 
Symbol(AstNode) - Constructor for class com.sonar.sslr.api.symbol.Symbol
 

T

Token - Class in com.sonar.sslr.api
Tokens are string of character like an identifier, a literal, an integer, ...
Token.Builder - Class in com.sonar.sslr.api
 
TokenType - Interface in com.sonar.sslr.api
 
toString() - Method in class com.sonar.sslr.api.AstNode
 
toString() - Method in class com.sonar.sslr.api.flow.Branch
 
toString() - Method in class com.sonar.sslr.api.flow.Statement
 
toString() - Method in class com.sonar.sslr.api.Token
 
toString() - Method in class com.sonar.sslr.api.Trivia
 
translationUnit - Variable in class com.sonar.c.api.CGrammar
 
Trivia - Class in com.sonar.sslr.api
 
Trivia.TriviaKind - Enum in com.sonar.sslr.api
 
type - Variable in class com.sonar.sslr.api.AstNode
 
typeName - Variable in class com.sonar.c.api.CGrammar
 
typeQualifier - Variable in class com.sonar.c.api.CGrammar
 
typeQualifierList - Variable in class com.sonar.c.api.CGrammar
 
typeSpecifier - Variable in class com.sonar.c.api.CGrammar
 

U

unaryExpression - Variable in class com.sonar.c.api.CGrammar
 
unaryExpression - Variable in class com.sonar.c.api.CPreprocessorGrammar
 
unaryOperator - Variable in class com.sonar.c.api.CGrammar
 
undefDirective - Variable in class com.sonar.c.api.CPreprocessorGrammar
 

V

valueOf(String) - Static method in enum com.sonar.c.api.CKeyword
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.sonar.c.api.CMetric
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.sonar.c.api.CPunctuator
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.sonar.c.api.CTokenType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.sonar.sslr.api.GenericTokenType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.sonar.sslr.api.Trivia.TriviaKind
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.sonar.c.api.CKeyword
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.sonar.c.api.CMetric
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.sonar.c.api.CPunctuator
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.sonar.c.api.CTokenType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.sonar.sslr.api.GenericTokenType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.sonar.sslr.api.Trivia.TriviaKind
Returns an array containing the constants of this enum type, in the order they are declared.
visitBranch(Branch) - Method in class com.sonar.sslr.api.flow.ExecutionFlowVisitor
 
visitFile(AstNode) - Method in interface com.sonar.sslr.api.AstVisitor
Called before starting visiting a computation unit tree.
visitFlow(AstNode, ExecutionFlowVisitor<STATEMENT>...) - Method in interface com.sonar.sslr.api.flow.ExecutionFlow
 
visitFlow(ExecutionFlowVisitor<STATEMENT>...) - Method in interface com.sonar.sslr.api.flow.ExecutionFlow
 
visitFlow(AstNode, ExecutionFlowVisitor...) - Method in class com.sonar.sslr.api.flow.ExecutionFlowEngine
 
visitFlow(Statement, ExecutionFlowVisitor...) - Method in class com.sonar.sslr.api.flow.ExecutionFlowEngine
 
visitFlow(Statement) - Method in class com.sonar.sslr.api.flow.ExecutionFlowEngine
 
visitFlow(ExecutionFlowVisitor...) - Method in class com.sonar.sslr.api.flow.ExecutionFlowEngine
 
visitMandatoryBranches() - Method in class com.sonar.sslr.api.flow.ExecutionFlowVisitor
 
visitNode(AstNode) - Method in interface com.sonar.sslr.api.AstVisitor
Called to process an AST node whose type has been registered to be visited.
visitStatement(STATEMENT, Branch) - Method in class com.sonar.sslr.api.flow.ExecutionFlowVisitor
 
visitToken(Token) - Method in interface com.sonar.sslr.api.AstAndTokenVisitor
Called sequentially for each token generated by the Lexer

W

whileStatement - Variable in class com.sonar.c.api.CGrammar
 
windowsCallingConventions - Variable in class com.sonar.c.api.CGrammar
 

A B C D E F G H I J K L M N O P R S T U V W

Copyright © 2012 SonarSource. All Rights Reserved.