public final class TypeReference extends Object
TypeReference.createExactTrusted(ResolvedJavaType) for this purpose.TypeReference.createWithoutAssumptions(ResolvedJavaType) or TypeReference.createTrustedWithoutAssumptions(ResolvedJavaType).TypeReference.create(Assumptions, ResolvedJavaType)
or TypeReference.createTrusted(Assumptions, ResolvedJavaType).null reference will be constructed for
untrusted interface types. Examples for interface types that cannot be trusted are types for
parameters, fields, and return values. They are not checked by the Java verifier.| Modifier and Type | Method and Description |
|---|---|
TypeReference |
asExactReference() |
static TypeReference |
create(Assumptions assumptions,
ResolvedJavaType type)
Creates a type reference using the given type with assumptions and without trusting interface
types.
|
static TypeReference |
createExactTrusted(ResolvedJavaType type)
Creates an exact type reference using the given type.
|
static TypeReference |
createTrusted(Assumptions assumptions,
ResolvedJavaType type)
Create a type reference using the given type with assumptions and trusting interface types.
|
static TypeReference |
createTrustedWithoutAssumptions(ResolvedJavaType type)
Creates a type reference using the given type without assumptions and trusting interface
types.
|
static TypeReference |
createWithoutAssumptions(ResolvedJavaType type)
Creates a type reference using the given type without assumptions and without trusting
interface types.
|
ResolvedJavaType |
getType()
The type this reference refers to.
|
boolean |
isExact() |
String |
toString() |
public static TypeReference createExactTrusted(ResolvedJavaType type)
public static TypeReference createWithoutAssumptions(ResolvedJavaType type)
public static TypeReference createTrustedWithoutAssumptions(ResolvedJavaType type)
public static TypeReference create(Assumptions assumptions, ResolvedJavaType type)
public static TypeReference createTrusted(Assumptions assumptions, ResolvedJavaType type)
public ResolvedJavaType getType()
public boolean isExact()
true if this reference is exact and only refers to the given type and
false if it also refers to its sub types.public TypeReference asExactReference()