public abstract class MetadataResolver extends java.lang.Object implements IMetadataResolver, IGenericContext
EMPTY| Modifier | Constructor and Description |
|---|---|
protected |
MetadataResolver() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
areEquivalent(TypeReference a,
TypeReference b)
Returns whether two type references refer to the same type.
|
static boolean |
areEquivalent(TypeReference a,
TypeReference b,
boolean strict)
Returns whether two type references refer to the same type.
|
static IMetadataResolver |
createLimitedResolver() |
GenericParameter |
findTypeVariable(java.lang.String name) |
TypeReference |
lookupType(java.lang.String descriptor) |
protected abstract TypeReference |
lookupTypeCore(java.lang.String descriptor) |
void |
popFrame() |
void |
pushFrame(IResolverFrame frame) |
FieldDefinition |
resolve(FieldReference field) |
MethodDefinition |
resolve(MethodReference method) |
TypeDefinition |
resolve(TypeReference type) |
protected abstract TypeDefinition |
resolveCore(TypeReference type) |
public final TypeReference lookupType(java.lang.String descriptor)
lookupType in interface IMetadataResolverpublic final GenericParameter findTypeVariable(java.lang.String name)
findTypeVariable in interface IGenericContextprotected abstract TypeReference lookupTypeCore(java.lang.String descriptor)
public void pushFrame(IResolverFrame frame)
pushFrame in interface IMetadataResolverpublic void popFrame()
popFrame in interface IMetadataResolverpublic TypeDefinition resolve(TypeReference type)
resolve in interface IMetadataResolverprotected abstract TypeDefinition resolveCore(TypeReference type)
public FieldDefinition resolve(FieldReference field)
resolve in interface IMetadataResolverpublic MethodDefinition resolve(MethodReference method)
resolve in interface IMetadataResolverpublic static boolean areEquivalent(TypeReference a, TypeReference b)
a - The first type reference.b - The second type reference.true if two type references refer to the same type; otherwise, false.public static boolean areEquivalent(TypeReference a, TypeReference b, boolean strict)
a - The first type reference.b - The second type reference.strict - If true, a parameterized type will not match its corresponding raw type (but a
generic definition will match its raw type).true if two type references refer to the same type; otherwise, false.public static IMetadataResolver createLimitedResolver()