| Package | Description |
|---|---|
| org.sonar.java.bytecode.cfg | |
| org.sonar.java.model | |
| org.sonar.java.resolve | |
| org.sonar.java.se | |
| org.sonar.java.se.constraint | |
| org.sonar.java.se.symbolicvalues | |
| org.sonar.java.se.xproc | |
| 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 | Description |
|---|---|---|
Type |
BytecodeCFG.Block.getExceptionType(SemanticModel semanticModel) |
| Modifier and Type | Method | Description |
|---|---|---|
Type |
AbstractTypedTree.symbolType() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
AbstractTypedTree.setInferedType(Type type) |
|
void |
AbstractTypedTree.setType(Type type) |
| Modifier and Type | Class | Description |
|---|---|---|
class |
ArrayJavaType |
|
class |
ClassJavaType |
|
class |
DeferredType |
|
class |
IntersectionType |
|
class |
JavaType |
|
class |
MethodJavaType |
|
class |
ParametrizedTypeJavaType |
|
class |
TypeVariableJavaType |
|
class |
UnknownType |
|
class |
WildCardType |
| Modifier and Type | Method | Description |
|---|---|---|
Type |
SemanticModel.getClassType(String fullyQualifiedName) |
|
static Type |
LeastUpperBound.greatestLowerBound(List<Type> types) |
From JLS 8 5.1.10 - greatest lower bound : glb(V1,...,Vm) is defined as V1 & ...
|
Type |
LeastUpperBound.leastUpperBound(Set<Type> types) |
Compute the "Least Upper Bound" ("lub", jls8 §4.10.4) of a list of type.
|
Type |
JavaSymbol.TypeJavaSymbol.superClass() |
|
Type |
JavaSymbol.type() |
| Modifier and Type | Method | Description |
|---|---|---|
List<Type> |
JavaSymbol.TypeJavaSymbol.interfaces() |
|
List<Type> |
JavaSymbol.MethodJavaSymbol.parameterTypes() |
|
List<Type> |
JavaSymbol.MethodJavaSymbol.thrownTypes() |
| Modifier and Type | Method | Description |
|---|---|---|
List<JavaType> |
Resolve.findSamMethodArgs(Type type) |
|
boolean |
ArrayJavaType.isSubtypeOf(Type superType) |
|
boolean |
ClassJavaType.isSubtypeOf(Type superType) |
|
boolean |
JavaType.isSubtypeOf(Type superType) |
|
boolean |
ParametrizedTypeJavaType.isSubtypeOf(Type superType) |
|
boolean |
TypeVariableJavaType.isSubtypeOf(Type superType) |
|
boolean |
UnknownType.isSubtypeOf(Type superType) |
|
boolean |
WildCardType.isSubtypeOf(Type superType) |
| Modifier and Type | Method | Description |
|---|---|---|
static Type |
LeastUpperBound.greatestLowerBound(List<Type> types) |
From JLS 8 5.1.10 - greatest lower bound : glb(V1,...,Vm) is defined as V1 & ...
|
Type |
LeastUpperBound.leastUpperBound(Set<Type> types) |
Compute the "Least Upper Bound" ("lub", jls8 §4.10.4) of a list of type.
|
| Modifier and Type | Method | Description |
|---|---|---|
static boolean |
ExceptionUtils.isUncheckedException(Type exceptionType) |
| Modifier and Type | Method | Description |
|---|---|---|
Type |
TypedConstraint.getType(SemanticModel semanticModel) |
| Modifier and Type | Method | Description |
|---|---|---|
SymbolicValue.ExceptionalSymbolicValue |
ConstraintManager.createExceptionalSymbolicValue(Type exceptionType) |
| Modifier and Type | Method | Description |
|---|---|---|
Type |
SymbolicValue.ExceptionalSymbolicValue.exceptionType() |
| Constructor | Description |
|---|---|
ExceptionalSymbolicValue(Type exceptionType) |
| Modifier and Type | Method | Description |
|---|---|---|
Type |
ExceptionalCheckBasedYield.exceptionType(SemanticModel semanticModel) |
|
Type |
ExceptionalYield.exceptionType(SemanticModel semanticModel) |
| Modifier and Type | Interface | Description |
|---|---|---|
static interface |
Type.ArrayType |
Type for arrays.
|
| Modifier and Type | Method | Description |
|---|---|---|
Type |
Type.ArrayType.elementType() |
Type of elements in this array.
|
Type |
Type.erasure() |
Erasure of this type.
|
Type |
Symbol.TypeSymbol.superClass() |
Returns the superclass of this type symbol.
|
Type |
Symbol.type() |
Type of symbol.
|
| Modifier and Type | Method | Description |
|---|---|---|
List<Type> |
Symbol.TypeSymbol.interfaces() |
Interfaces implemented by this type.
|
List<Type> |
Symbol.MethodSymbol.parameterTypes() |
Type of parameters declared by this method.
|
List<Type> |
Symbol.MethodSymbol.thrownTypes() |
List of the exceptions that can be thrown by the method.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
Type.isSubtypeOf(Type superType) |
Check whether a type is a subtype of another.
|
| Modifier and Type | Method | Description |
|---|---|---|
Type |
ExpressionTree.symbolType() |
|
Type |
TypeTree.symbolType() |
Copyright © 2012–2018 SonarSource. All rights reserved.