public static class JavaType.ParametrizedTypeJavaType extends JavaType.ClassJavaType
JavaType.ArrayJavaType, JavaType.ClassJavaType, JavaType.MethodJavaType, JavaType.ParametrizedTypeJavaType, JavaType.TypeVariableJavaType, JavaType.UnknownType, JavaType.WildCardTypeType.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.
|
JavaType |
substitution(JavaType.TypeVariableJavaType typeVariableType) |
List<JavaType.TypeVariableJavaType> |
typeParameters() |
is, isSubtypeOffullyQualifiedName, getSymbol, isArray, isClass, isNumerical, isPrimitive, isPrimitive, isPrimitiveWrapper, isTagged, isUnknown, isVoid, name, primitiveType, primitiveWrapperType, symbol, toString@Nullable public JavaType substitution(JavaType.TypeVariableJavaType typeVariableType)
public List<JavaType.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 JavaType.ClassJavaTypesuperType - instance of a potential superType.Copyright © 2012–2016 SonarSource. All rights reserved.