public class JavaGenericRefTypeInstance extends java.lang.Object implements JavaGenericBaseInstance, ComparableUnderEC
| Modifier and Type | Class and Description |
|---|---|
private class |
JavaGenericRefTypeInstance.Annotated |
static class |
JavaGenericRefTypeInstance.WildcardConstraint |
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<JavaTypeInstance> |
genericTypes |
private boolean |
hasUnbound |
private JavaRefTypeInstance |
typeInstance |
private static JavaGenericRefTypeInstance.WildcardConstraint |
WILDCARD_CONSTRAINT |
| Constructor and Description |
|---|
JavaGenericRefTypeInstance(JavaTypeInstance typeInstance,
java.util.List<JavaTypeInstance> genericTypes) |
private static final JavaGenericRefTypeInstance.WildcardConstraint WILDCARD_CONSTRAINT
private final JavaRefTypeInstance typeInstance
private final java.util.List<JavaTypeInstance> genericTypes
private final boolean hasUnbound
public JavaGenericRefTypeInstance(JavaTypeInstance typeInstance, java.util.List<JavaTypeInstance> genericTypes)
public void collectInto(TypeUsageCollector typeUsageCollector)
collectInto in interface JavaTypeInstancepublic JavaAnnotatedTypeInstance getAnnotatedInstance()
getAnnotatedInstance in interface JavaTypeInstancepublic boolean hasUnbound()
hasUnbound in interface JavaGenericBaseInstancepublic boolean hasForeignUnbound(ConstantPool cp, int depth, boolean noWildcard, java.util.Map<java.lang.String,FormalTypeParameter> externals)
hasForeignUnbound in interface JavaGenericBaseInstancepublic boolean isObject()
isObject in interface JavaTypeInstancepublic boolean hasL01Wildcard()
hasL01Wildcard in interface JavaGenericBaseInstancepublic JavaTypeInstance getWithoutL01Wildcard()
getWithoutL01Wildcard in interface JavaGenericBaseInstancepublic JavaGenericRefTypeInstance getBoundInstance(GenericTypeBinder genericTypeBinder)
getBoundInstance in interface JavaGenericBaseInstancepublic boolean tryFindBinding(JavaTypeInstance other, GenericTypeBinder target)
tryFindBinding in interface JavaGenericBaseInstancepublic StackType getStackType()
getStackType in interface JavaTypeInstancepublic void dumpInto(Dumper d, TypeUsageInformation typeUsageInformation, TypeContext typeContext)
dumpInto in interface JavaTypeInstancepublic java.lang.String toString()
toString in class java.lang.Objectpublic JavaTypeInstance getArrayStrippedType()
getArrayStrippedType in interface JavaTypeInstancepublic java.util.List<JavaTypeInstance> getGenericTypes()
getGenericTypes in interface JavaGenericBaseInstancepublic JavaRefTypeInstance getDeGenerifiedType()
getDeGenerifiedType in interface JavaTypeInstancepublic int getNumArrayDimensions()
getNumArrayDimensions in interface JavaTypeInstancepublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String getRawName()
getRawName in interface JavaTypeInstancepublic java.lang.String getRawName(IllegalIdentifierDump iid)
getRawName in interface JavaTypeInstancepublic InnerClassInfo getInnerClassHereInfo()
getInnerClassHereInfo in interface JavaTypeInstancepublic JavaTypeInstance getTypeInstance()
public BindingSuperContainer getBindingSupers()
getBindingSupers in interface JavaTypeInstancepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic boolean equivalentUnder(java.lang.Object o,
EquivalenceConstraint constraint)
equivalentUnder in interface ComparableUnderECpublic boolean isComplexType()
isComplexType in interface JavaTypeInstancepublic boolean isUsableType()
isUsableType in interface JavaTypeInstancepublic JavaTypeInstance removeAnArrayIndirection()
removeAnArrayIndirection in interface JavaTypeInstancepublic RawJavaType getRawTypeOfSimpleType()
getRawTypeOfSimpleType in interface JavaTypeInstancepublic boolean implicitlyCastsTo(JavaTypeInstance other, GenericTypeBinder gtb)
implicitlyCastsTo in interface JavaTypeInstancepublic boolean impreciseCanCastTo(JavaTypeInstance other, GenericTypeBinder gtb)
impreciseCanCastTo in interface JavaTypeInstancepublic boolean correctCanCastTo(JavaTypeInstance other, GenericTypeBinder gtb)
correctCanCastTo in interface JavaTypeInstancepublic java.lang.String suggestVarName()
suggestVarName in interface JavaTypeInstancepublic JavaGenericRefTypeInstance asGenericRefInstance(JavaTypeInstance other)
asGenericRefInstance in interface JavaTypeInstancepublic JavaTypeInstance directImplOf(JavaTypeInstance other)
directImplOf in interface JavaTypeInstancepublic JavaTypeInstance deObfuscate(ObfuscationTypeMap obfuscationTypeMap)
deObfuscate in interface JavaTypeInstancepublic boolean isRaw()
isRaw in interface JavaTypeInstance