JavaType.ArrayJavaType, JavaType.ClassJavaType, JavaType.MethodJavaType, JavaType.ParametrizedTypeJavaType, JavaType.TypeVariableJavaType, JavaType.UnknownType, JavaType.WildCardTypeType.ArrayType, Type.Primitives| Constructor and Description |
|---|
JavaType.TypeVariableJavaType(JavaSymbol.TypeVariableJavaSymbol symbol) |
| Modifier and Type | Method and Description |
|---|---|
List<JavaType> |
bounds() |
JavaType |
erasure()
Erasure of a type variable is the erasure of its leftmost bound.
|
boolean |
isSubtypeOf(Type superType)
Check whether a type is a subtype of another.
|
fullyQualifiedName, getSymbol, is, isArray, isClass, isNumerical, isPrimitive, isPrimitive, isPrimitiveWrapper, isSubtypeOf, isTagged, isUnknown, isVoid, name, primitiveType, primitiveWrapperType, symbol, toStringpublic JavaType.TypeVariableJavaType(JavaSymbol.TypeVariableJavaSymbol symbol)
public JavaType erasure()
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 JavaTypesuperType - instance of a potential superType.Copyright © 2012–2016 SonarSource. All rights reserved.