public class TypeSubstitution extends Object
| Constructor | Description |
|---|---|
TypeSubstitution() |
|
TypeSubstitution(TypeSubstitution typeSubstitution) |
| Modifier and Type | Method | Description |
|---|---|---|
TypeSubstitution |
add(TypeVariableJavaType typeVariableType,
JavaType javaType) |
|
TypeSubstitution |
combine(TypeSubstitution source) |
Produce new substitution based on two substitutions using the same keys.
|
boolean |
equals(Object obj) |
|
int |
hashCode() |
|
boolean |
isIdentity() |
|
boolean |
isUnchecked() |
|
int |
size() |
|
JavaType |
substitutedType(JavaType javaType) |
|
List<JavaType> |
substitutedTypes() |
|
List<Map.Entry<TypeVariableJavaType,JavaType>> |
substitutionEntries() |
|
List<TypeVariableJavaType> |
typeVariables() |
|
static TypeSubstitution |
uncheckedTypeSubstitution() |
public TypeSubstitution()
public TypeSubstitution(TypeSubstitution typeSubstitution)
public boolean isUnchecked()
public static TypeSubstitution uncheckedTypeSubstitution()
@CheckForNull public JavaType substitutedType(JavaType javaType)
public List<TypeVariableJavaType> typeVariables()
public List<Map.Entry<TypeVariableJavaType,JavaType>> substitutionEntries()
public TypeSubstitution add(TypeVariableJavaType typeVariableType, JavaType javaType)
public int size()
public boolean isIdentity()
public TypeSubstitution combine(TypeSubstitution source)
source - the substitution which values will be used as keys.Copyright © 2012–2018 SonarSource. All rights reserved.