| Package | Description |
|---|---|
| org.sonar.java.matcher | |
| org.sonar.java.model | |
| org.sonar.java.resolve | |
| 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 |
|---|---|
abstract boolean |
TypeCriteria.matches(Type type) |
| Modifier and Type | Method and Description |
|---|---|
Type |
AbstractTypedTree.symbolType() |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractTypedTree.setType(Type type) |
| Modifier and Type | Class and Description |
|---|---|
class |
JavaType |
static class |
JavaType.ArrayJavaType |
static class |
JavaType.ClassJavaType |
static class |
JavaType.MethodJavaType |
static class |
JavaType.ParametrizedTypeJavaType |
static class |
JavaType.TypeVariableJavaType |
static class |
JavaType.UnknownType |
static class |
JavaType.WildCardType |
| Modifier and Type | Method and Description |
|---|---|
static Type |
Types.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 and Description |
|---|---|
List<Type> |
JavaSymbol.TypeJavaSymbol.interfaces() |
List<Type> |
JavaSymbol.MethodJavaSymbol.parameterTypes() |
List<Type> |
JavaSymbol.MethodJavaSymbol.thrownTypes() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
JavaType.isSubtypeOf(Type superType) |
boolean |
JavaType.ClassJavaType.isSubtypeOf(Type superType) |
boolean |
JavaType.TypeVariableJavaType.isSubtypeOf(Type superType) |
boolean |
JavaType.ParametrizedTypeJavaType.isSubtypeOf(Type superType) |
boolean |
JavaType.WildCardType.isSubtypeOf(Type superType) |
boolean |
JavaType.UnknownType.isSubtypeOf(Type superType) |
| Modifier and Type | Method and Description |
|---|---|
static Type |
Types.leastUpperBound(Set<Type> types)
Compute the "Least Upper Bound" ("lub", jls8 §4.10.4) of a list of type.
|
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Type.ArrayType
Type for arrays.
|
| Modifier and Type | Method and 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 and 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 and Description |
|---|---|
boolean |
Type.isSubtypeOf(Type superType)
Check whether a type is a subtype of another.
|
| Modifier and Type | Method and Description |
|---|---|
Type |
TypeTree.symbolType() |
Type |
ExpressionTree.symbolType() |
Copyright © 2012–2016 SonarSource. All rights reserved.