Class JavaGenericRefTypeInstance
java.lang.Object
org.benf.cfr.reader.bytecode.analysis.types.JavaGenericRefTypeInstance
- All Implemented Interfaces:
ComparableUnderEC, JavaGenericBaseInstance, JavaTypeInstance
public class JavaGenericRefTypeInstance
extends Object
implements JavaGenericBaseInstance, ComparableUnderEC
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<JavaTypeInstance> private final booleanprivate final JavaRefTypeInstanceprivate static final JavaGenericRefTypeInstance.WildcardConstraint -
Constructor Summary
ConstructorsConstructorDescriptionJavaGenericRefTypeInstance(JavaTypeInstance typeInstance, List<JavaTypeInstance> genericTypes) -
Method Summary
Modifier and TypeMethodDescriptionvoidcollectInto(TypeUsageCollector typeUsageCollector) booleancorrectCanCastTo(JavaTypeInstance other, GenericTypeBinder gtb) deObfuscate(ObfuscationTypeMap obfuscationTypeMap) directImplOf(JavaTypeInstance other) voiddumpInto(Dumper d, TypeUsageInformation typeUsageInformation, TypeContext typeContext) booleanbooleanequivalentUnder(Object o, EquivalenceConstraint constraint) getBoundInstance(GenericTypeBinder genericTypeBinder) intbooleanhasForeignUnbound(ConstantPool cp, int depth, boolean noWildcard, Map<String, FormalTypeParameter> externals) inthashCode()booleanbooleanbooleanimplicitlyCastsTo(JavaTypeInstance other, GenericTypeBinder gtb) booleanimpreciseCanCastTo(JavaTypeInstance other, GenericTypeBinder gtb) booleanbooleanisObject()booleanisRaw()booleantoString()booleantryFindBinding(JavaTypeInstance other, GenericTypeBinder target)
-
Field Details
-
WILDCARD_CONSTRAINT
-
typeInstance
-
genericTypes
-
hasUnbound
private final boolean hasUnbound
-
-
Constructor Details
-
JavaGenericRefTypeInstance
public JavaGenericRefTypeInstance(JavaTypeInstance typeInstance, List<JavaTypeInstance> genericTypes)
-
-
Method Details
-
collectInto
- Specified by:
collectIntoin interfaceJavaTypeInstance
-
getAnnotatedInstance
- Specified by:
getAnnotatedInstancein interfaceJavaTypeInstance
-
hasUnbound
public boolean hasUnbound()- Specified by:
hasUnboundin interfaceJavaGenericBaseInstance
-
hasForeignUnbound
public boolean hasForeignUnbound(ConstantPool cp, int depth, boolean noWildcard, Map<String, FormalTypeParameter> externals) - Specified by:
hasForeignUnboundin interfaceJavaGenericBaseInstance
-
isObject
public boolean isObject()- Specified by:
isObjectin interfaceJavaTypeInstance
-
hasL01Wildcard
public boolean hasL01Wildcard()- Specified by:
hasL01Wildcardin interfaceJavaGenericBaseInstance
-
getWithoutL01Wildcard
- Specified by:
getWithoutL01Wildcardin interfaceJavaGenericBaseInstance
-
getBoundInstance
- Specified by:
getBoundInstancein interfaceJavaGenericBaseInstance
-
tryFindBinding
- Specified by:
tryFindBindingin interfaceJavaGenericBaseInstance
-
getStackType
- Specified by:
getStackTypein interfaceJavaTypeInstance
-
dumpInto
- Specified by:
dumpIntoin interfaceJavaTypeInstance
-
toString
-
getArrayStrippedType
- Specified by:
getArrayStrippedTypein interfaceJavaTypeInstance
-
getGenericTypes
- Specified by:
getGenericTypesin interfaceJavaGenericBaseInstance
-
getDeGenerifiedType
- Specified by:
getDeGenerifiedTypein interfaceJavaTypeInstance
-
getNumArrayDimensions
public int getNumArrayDimensions()- Specified by:
getNumArrayDimensionsin interfaceJavaTypeInstance
-
hashCode
-
getRawName
- Specified by:
getRawNamein interfaceJavaTypeInstance
-
getRawName
- Specified by:
getRawNamein interfaceJavaTypeInstance
-
getInnerClassHereInfo
- Specified by:
getInnerClassHereInfoin interfaceJavaTypeInstance
-
getTypeInstance
-
getBindingSupers
- Specified by:
getBindingSupersin interfaceJavaTypeInstance
-
equals
-
equivalentUnder
- Specified by:
equivalentUnderin interfaceComparableUnderEC
-
isComplexType
public boolean isComplexType()- Specified by:
isComplexTypein interfaceJavaTypeInstance
-
isUsableType
public boolean isUsableType()- Specified by:
isUsableTypein interfaceJavaTypeInstance
-
removeAnArrayIndirection
- Specified by:
removeAnArrayIndirectionin interfaceJavaTypeInstance
-
getRawTypeOfSimpleType
- Specified by:
getRawTypeOfSimpleTypein interfaceJavaTypeInstance
-
implicitlyCastsTo
- Specified by:
implicitlyCastsToin interfaceJavaTypeInstance
-
impreciseCanCastTo
- Specified by:
impreciseCanCastToin interfaceJavaTypeInstance
-
correctCanCastTo
- Specified by:
correctCanCastToin interfaceJavaTypeInstance
-
suggestVarName
- Specified by:
suggestVarNamein interfaceJavaTypeInstance
-
asGenericRefInstance
- Specified by:
asGenericRefInstancein interfaceJavaTypeInstance
-
directImplOf
- Specified by:
directImplOfin interfaceJavaTypeInstance
-
deObfuscate
- Specified by:
deObfuscatein interfaceJavaTypeInstance
-
isRaw
public boolean isRaw()- Specified by:
isRawin interfaceJavaTypeInstance
-