Package | Description |
---|---|
org.sonar.java.cfg | |
org.sonar.java.model.declaration | |
org.sonar.java.model.expression | |
org.sonar.java.resolve | |
org.sonar.java.se | |
org.sonar.plugins.java.api.semantic |
Provides interfaces to represent Java source code as syntax tree.
|
org.sonar.plugins.java.api.tree |
Provides interfaces to represent Java source code as syntax tree.
|
Modifier and Type | Method and Description |
---|---|
Set<Symbol> |
LiveVariables.getOut(CFG.Block block) |
List<Symbol> |
LocalVariableReadExtractor.usedVariables() |
Modifier and Type | Method and Description |
---|---|
Symbol |
VariableTreeImpl.symbol() |
Modifier and Type | Method and Description |
---|---|
Symbol |
NewClassTreeImpl.constructorSymbol() |
Symbol |
MethodInvocationTreeImpl.symbol() |
Symbol |
IdentifierTreeImpl.symbol() |
Modifier and Type | Method and Description |
---|---|
void |
MethodInvocationTreeImpl.setSymbol(Symbol symbol) |
void |
IdentifierTreeImpl.setSymbol(Symbol symbol) |
Modifier and Type | Class and Description |
---|---|
class |
JavaSymbol |
static class |
JavaSymbol.JavaLabelSymbol |
static class |
JavaSymbol.MethodJavaSymbol
Represents a method, constructor or initializer (static or instance).
|
static class |
JavaSymbol.PackageJavaSymbol
Represents package.
|
static class |
JavaSymbol.TypeJavaSymbol
Represents a class, interface, enum or annotation type.
|
static class |
JavaSymbol.TypeVariableJavaSymbol
Represents type variable of a parametrized type ie: T in class Foo
|
static class |
JavaSymbol.VariableJavaSymbol
Represents a field, enum constant, method or constructor parameter, local variable, resource variable or exception parameter.
|
static class |
JavaSymbol.WildcardSymbol |
static class |
Resolve.AccessErrorJavaSymbol |
static class |
Resolve.AmbiguityErrorJavaSymbol |
static class |
Resolve.JavaSymbolNotFound |
Modifier and Type | Method and Description |
---|---|
Symbol |
SemanticModel.getEnclosingClass(Tree tree) |
Symbol |
SemanticModel.getSymbol(Tree tree) |
Modifier and Type | Method and Description |
---|---|
Collection<Symbol> |
JavaSymbol.TypeJavaSymbol.lookupSymbols(String name) |
Collection<Symbol> |
JavaSymbol.TypeJavaSymbol.memberSymbols() |
Modifier and Type | Method and Description |
---|---|
void |
SemanticModel.associateReference(IdentifierTree tree,
Symbol symbol) |
void |
SemanticModel.associateSymbol(Tree tree,
Symbol symbol) |
org.sonar.java.resolve.Resolve.Env |
SemanticModel.getEnv(Symbol symbol) |
Tree |
SemanticModel.getTree(Symbol symbol) |
void |
SemanticModel.saveEnv(Symbol symbol,
org.sonar.java.resolve.Resolve.Env env) |
Modifier and Type | Method and Description |
---|---|
SymbolicValue |
ProgramState.getValue(Symbol symbol) |
static boolean |
ProgramState.isField(Symbol symbol) |
Modifier and Type | Method and Description |
---|---|
ProgramState |
ProgramState.cleanupDeadSymbols(Set<Symbol> liveVariables) |
Modifier and Type | Interface and Description |
---|---|
static interface |
Symbol.MethodSymbol
Symbol for methods.
|
static interface |
Symbol.TypeSymbol
Symbol for a type : class, enum, interface or annotation.
|
static interface |
Symbol.VariableSymbol
Symbol for field, method parameters and local variables.
|
Modifier and Type | Method and Description |
---|---|
Symbol |
Symbol.owner()
The owner of this symbol.
|
Symbol |
SymbolMetadata.AnnotationInstance.symbol()
Type symbol of this annotation.
|
Modifier and Type | Method and Description |
---|---|
Collection<Symbol> |
Symbol.TypeSymbol.lookupSymbols(String name)
Lookup symbols accessible from this type with the name passed in parameter.
|
Collection<Symbol> |
Symbol.TypeSymbol.memberSymbols()
List of symbols defined by this type symbols.
|
Modifier and Type | Method and Description |
---|---|
Symbol |
NewClassTree.constructorSymbol() |
Symbol |
IdentifierTree.symbol() |
Symbol |
VariableTree.symbol() |
Symbol |
MethodInvocationTree.symbol() |
Copyright © 2012–2016 SonarSource. All rights reserved.