public class ParametrizedTypeJavaType extends ClassJavaType
Type.ArrayType, Type.Primitives| Modifier and Type | Method and Description |
|---|---|
JavaType |
erasure()
JLS8 4.6
|
boolean |
isSubtypeOf(Type superType)
Check whether a type is a subtype of another.
|
static void |
setTypeSubstitutionSolver(TypeSubstitutionSolver typeSubstitutionSolver) |
JavaType |
substitution(TypeVariableJavaType typeVariableType) |
List<TypeVariableJavaType> |
typeParameters() |
is, isSubtypeOffullyQualifiedName, getSymbol, isArray, isClass, isNumerical, isParameterized, isPrimitive, isPrimitive, isPrimitiveWrapper, isTagged, isUnknown, isVoid, name, primitiveType, primitiveWrapperType, symbol, toString@Nullable public JavaType substitution(TypeVariableJavaType typeVariableType)
public List<TypeVariableJavaType> typeParameters()
public boolean isSubtypeOf(Type superType)
Type
This method will consider implemented interfaces as well as superclasses.
Type type, myOtherType;
type.isSubtypeOf(myOtherType);
isSubtypeOf in interface TypeisSubtypeOf in class ClassJavaTypesuperType - instance of a potential superType.public static void setTypeSubstitutionSolver(TypeSubstitutionSolver typeSubstitutionSolver)
Copyright © 2012–2016 SonarSource. All rights reserved.