| Package | Description |
|---|---|
| org.sonarsource.slang.api | |
| org.sonarsource.slang.impl | |
| org.sonarsource.slang.utils | |
| org.sonarsource.slang.visitors |
| Modifier and Type | Interface and Description |
|---|---|
interface |
AssignmentExpressionTree |
interface |
BinaryExpressionTree |
interface |
BlockTree |
interface |
CatchTree |
interface |
ClassDeclarationTree |
interface |
ExceptionHandlingTree |
interface |
FunctionDeclarationTree |
interface |
IdentifierTree |
interface |
IfTree |
interface |
JumpTree |
interface |
LiteralTree |
interface |
LoopTree |
interface |
MatchCaseTree |
interface |
MatchTree |
interface |
ModifierTree |
interface |
NativeTree |
interface |
ParameterTree |
interface |
ParenthesizedExpressionTree |
interface |
ReturnTree |
interface |
StringLiteralTree |
interface |
TopLevelTree |
interface |
UnaryExpressionTree |
interface |
VariableDeclarationTree |
| Modifier and Type | Method and Description |
|---|---|
Tree |
ReturnTree.body() |
Tree |
MatchCaseTree.body() |
Tree |
LoopTree.body() |
Tree |
CatchTree.catchBlock() |
Tree |
CatchTree.catchParameter() |
Tree |
ClassDeclarationTree.classTree() |
Tree |
LoopTree.condition() |
Tree |
IfTree.condition() |
Tree |
IfTree.elseBranch() |
Tree |
ParenthesizedExpressionTree.expression() |
Tree |
MatchTree.expression() |
Tree |
MatchCaseTree.expression() |
Tree |
ExceptionHandlingTree.finallyBlock() |
Tree |
VariableDeclarationTree.initializer() |
Tree |
AssignmentExpressionTree.leftHandSide() |
Tree |
BinaryExpressionTree.leftOperand() |
Tree |
UnaryExpressionTree.operand() |
Tree |
ASTConverter.parse(String content) |
Tree |
FunctionDeclarationTree.returnType() |
Tree |
BinaryExpressionTree.rightOperand() |
Tree |
AssignmentExpressionTree.statementOrExpression() |
Tree |
IfTree.thenBranch() |
Tree |
ExceptionHandlingTree.tryBlock() |
Tree |
VariableDeclarationTree.type() |
Tree |
ParameterTree.type() |
| Modifier and Type | Method and Description |
|---|---|
List<Tree> |
Tree.children() |
List<Tree> |
TopLevelTree.declarations() |
default Stream<Tree> |
Tree.descendants() |
List<Tree> |
FunctionDeclarationTree.formalParameters() |
List<Tree> |
FunctionDeclarationTree.modifiers() |
List<Tree> |
FunctionDeclarationTree.nativeChildren() |
List<Tree> |
BlockTree.statementOrExpressions() |
| Modifier and Type | Class and Description |
|---|---|
class |
AssignmentExpressionTreeImpl |
class |
BaseTreeImpl |
class |
BinaryExpressionTreeImpl |
class |
BlockTreeImpl |
class |
CatchTreeImpl |
class |
ClassDeclarationTreeImpl |
class |
ExceptionHandlingTreeImpl |
class |
FunctionDeclarationTreeImpl |
class |
IdentifierTreeImpl |
class |
IfTreeImpl |
class |
JumpTreeImpl |
class |
LiteralTreeImpl |
class |
LoopTreeImpl |
class |
MatchCaseTreeImpl |
class |
MatchTreeImpl |
class |
ModifierTreeImpl |
class |
NativeTreeImpl |
class |
ParameterTreeImpl |
class |
ParenthesizedExpressionTreeImpl |
class |
ReturnTreeImpl |
class |
StringLiteralTreeImpl |
class |
TopLevelTreeImpl |
class |
UnaryExpressionTreeImpl |
class |
VariableDeclarationTreeImpl |
| Modifier and Type | Method and Description |
|---|---|
Tree |
ReturnTreeImpl.body() |
Tree |
MatchCaseTreeImpl.body() |
Tree |
LoopTreeImpl.body() |
Tree |
CatchTreeImpl.catchBlock() |
Tree |
CatchTreeImpl.catchParameter() |
Tree |
ClassDeclarationTreeImpl.classTree() |
Tree |
LoopTreeImpl.condition() |
Tree |
IfTreeImpl.condition() |
Tree |
IfTreeImpl.elseBranch() |
Tree |
ParenthesizedExpressionTreeImpl.expression() |
Tree |
MatchTreeImpl.expression() |
Tree |
MatchCaseTreeImpl.expression() |
Tree |
ExceptionHandlingTreeImpl.finallyBlock() |
Tree |
VariableDeclarationTreeImpl.initializer() |
Tree |
AssignmentExpressionTreeImpl.leftHandSide() |
Tree |
BinaryExpressionTreeImpl.leftOperand() |
Tree |
UnaryExpressionTreeImpl.operand() |
Tree |
FunctionDeclarationTreeImpl.returnType() |
Tree |
BinaryExpressionTreeImpl.rightOperand() |
Tree |
AssignmentExpressionTreeImpl.statementOrExpression() |
Tree |
IfTreeImpl.thenBranch() |
Tree |
ExceptionHandlingTreeImpl.tryBlock() |
Tree |
VariableDeclarationTreeImpl.type() |
Tree |
ParameterTreeImpl.type() |
| Modifier and Type | Method and Description |
|---|---|
List<Tree> |
VariableDeclarationTreeImpl.children() |
List<Tree> |
UnaryExpressionTreeImpl.children() |
List<Tree> |
TopLevelTreeImpl.children() |
List<Tree> |
ReturnTreeImpl.children() |
List<Tree> |
ParenthesizedExpressionTreeImpl.children() |
List<Tree> |
ParameterTreeImpl.children() |
List<Tree> |
NativeTreeImpl.children() |
List<Tree> |
ModifierTreeImpl.children() |
List<Tree> |
MatchTreeImpl.children() |
List<Tree> |
MatchCaseTreeImpl.children() |
List<Tree> |
LoopTreeImpl.children() |
List<Tree> |
LiteralTreeImpl.children() |
List<Tree> |
JumpTreeImpl.children() |
List<Tree> |
IfTreeImpl.children() |
List<Tree> |
IdentifierTreeImpl.children() |
List<Tree> |
FunctionDeclarationTreeImpl.children() |
List<Tree> |
ExceptionHandlingTreeImpl.children() |
List<Tree> |
ClassDeclarationTreeImpl.children() |
List<Tree> |
CatchTreeImpl.children() |
List<Tree> |
BlockTreeImpl.children() |
List<Tree> |
BinaryExpressionTreeImpl.children() |
List<Tree> |
AssignmentExpressionTreeImpl.children() |
List<Tree> |
TopLevelTreeImpl.declarations() |
List<Tree> |
FunctionDeclarationTreeImpl.formalParameters() |
List<Tree> |
FunctionDeclarationTreeImpl.modifiers() |
List<Tree> |
FunctionDeclarationTreeImpl.nativeChildren() |
List<Tree> |
BlockTreeImpl.statementOrExpressions() |
| Constructor and Description |
|---|
BlockTreeImpl(TreeMetaData metaData,
List<Tree> statementOrExpressions) |
FunctionDeclarationTreeImpl(TreeMetaData metaData,
List<Tree> modifiers,
Tree returnType,
IdentifierTree name,
List<Tree> formalParameters,
BlockTree body,
List<Tree> nativeChildren) |
FunctionDeclarationTreeImpl(TreeMetaData metaData,
List<Tree> modifiers,
Tree returnType,
IdentifierTree name,
List<Tree> formalParameters,
BlockTree body,
List<Tree> nativeChildren) |
FunctionDeclarationTreeImpl(TreeMetaData metaData,
List<Tree> modifiers,
Tree returnType,
IdentifierTree name,
List<Tree> formalParameters,
BlockTree body,
List<Tree> nativeChildren) |
NativeTreeImpl(TreeMetaData metaData,
NativeKind nativeKind,
List<Tree> children) |
TopLevelTreeImpl(TreeMetaData metaData,
List<Tree> declarations,
List<Comment> allComments) |
| Modifier and Type | Method and Description |
|---|---|
static List<List<Tree>> |
SyntacticEquivalence.findDuplicatedGroups(List<Tree> list) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
SyntacticEquivalence.areEquivalent(Tree first,
Tree second) |
static boolean |
SyntacticEquivalence.areEquivalent(Tree first,
Tree second,
boolean ignoreLiteralValues) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
SyntacticEquivalence.areEquivalent(List<? extends Tree> first,
List<? extends Tree> second) |
static boolean |
SyntacticEquivalence.areEquivalent(List<? extends Tree> first,
List<? extends Tree> second) |
static boolean |
SyntacticEquivalence.areEquivalent(List<? extends Tree> first,
List<? extends Tree> second,
boolean ignoreLiteralValues) |
static boolean |
SyntacticEquivalence.areEquivalent(List<? extends Tree> first,
List<? extends Tree> second,
boolean ignoreLiteralValues) |
static List<List<Tree>> |
SyntacticEquivalence.findDuplicatedGroups(List<Tree> list) |
| Modifier and Type | Method and Description |
|---|---|
<T extends Tree> |
TreeVisitor.register(Class<T> cls,
BiConsumer<C,T> visitor) |
| Modifier and Type | Method and Description |
|---|---|
Deque<Tree> |
TreeContext.ancestors() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
TreeVisitor.after(C ctx,
Tree root) |
protected void |
TreeVisitor.before(C ctx,
Tree root) |
protected void |
TreeContext.before(Tree root) |
void |
TreeContext.enter(Tree node) |
void |
TreeContext.leave(Tree node) |
void |
TreeVisitor.scan(C ctx,
Tree root) |
static String |
TreePrinter.tree2string(Tree tree) |
| Modifier and Type | Method and Description |
|---|---|
static String |
TreePrinter.tree2string(List<Tree> trees) |
Copyright © 2009–2018 SonarSource. All rights reserved.