Class JavaGenericPlaceholderTypeInstance
java.lang.Object
org.benf.cfr.reader.bytecode.analysis.types.JavaGenericPlaceholderTypeInstance
- All Implemented Interfaces:
JavaGenericBaseInstance
,JavaTypeInstance
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final JavaTypeInstance
private final String
private final ConstantPool
-
Constructor Summary
ConstructorsModifierConstructorDescriptionJavaGenericPlaceholderTypeInstance
(String className, ConstantPool cp) private
JavaGenericPlaceholderTypeInstance
(String className, ConstantPool cp, JavaTypeInstance bound) -
Method Summary
Modifier and TypeMethodDescriptionvoid
collectInto
(TypeUsageCollector typeUsageCollector) boolean
correctCanCastTo
(JavaTypeInstance other, GenericTypeBinder gtb) deObfuscate
(ObfuscationTypeMap obfuscationTypeMap) directImplOf
(JavaTypeInstance other) void
dumpInto
(Dumper d, TypeUsageInformation typeUsageInformation, TypeContext typeContext) boolean
getBoundInstance
(GenericTypeBinder genericTypeBinder) int
boolean
hasForeignUnbound
(ConstantPool cp, int depth, boolean noWildcard, Map<String, FormalTypeParameter> externals) int
hashCode()
boolean
boolean
boolean
implicitlyCastsTo
(JavaTypeInstance other, GenericTypeBinder gtb) boolean
impreciseCanCastTo
(JavaTypeInstance other, GenericTypeBinder gtb) boolean
boolean
isObject()
boolean
isRaw()
boolean
toString()
boolean
tryFindBinding
(JavaTypeInstance other, GenericTypeBinder target) withBound
(JavaTypeInstance bound)
-
Field Details
-
className
-
cp
-
bound
-
-
Constructor Details
-
JavaGenericPlaceholderTypeInstance
-
JavaGenericPlaceholderTypeInstance
private JavaGenericPlaceholderTypeInstance(String className, ConstantPool cp, JavaTypeInstance bound)
-
-
Method Details
-
withBound
-
getBoundInstance
- Specified by:
getBoundInstance
in interfaceJavaGenericBaseInstance
-
getAnnotatedInstance
- Specified by:
getAnnotatedInstance
in interfaceJavaTypeInstance
-
isObject
public boolean isObject()- Specified by:
isObject
in interfaceJavaTypeInstance
-
hasUnbound
public boolean hasUnbound()- Specified by:
hasUnbound
in interfaceJavaGenericBaseInstance
-
hasL01Wildcard
public boolean hasL01Wildcard()- Specified by:
hasL01Wildcard
in interfaceJavaGenericBaseInstance
-
getWithoutL01Wildcard
- Specified by:
getWithoutL01Wildcard
in interfaceJavaGenericBaseInstance
-
getGenericTypes
- Specified by:
getGenericTypes
in interfaceJavaGenericBaseInstance
-
hasForeignUnbound
public boolean hasForeignUnbound(ConstantPool cp, int depth, boolean noWildcard, Map<String, FormalTypeParameter> externals) - Specified by:
hasForeignUnbound
in interfaceJavaGenericBaseInstance
-
tryFindBinding
- Specified by:
tryFindBinding
in interfaceJavaGenericBaseInstance
-
getStackType
- Specified by:
getStackType
in interfaceJavaTypeInstance
-
dumpInto
- Specified by:
dumpInto
in interfaceJavaTypeInstance
-
toString
-
getArrayStrippedType
- Specified by:
getArrayStrippedType
in interfaceJavaTypeInstance
-
getNumArrayDimensions
public int getNumArrayDimensions()- Specified by:
getNumArrayDimensions
in interfaceJavaTypeInstance
-
getRawName
- Specified by:
getRawName
in interfaceJavaTypeInstance
-
getRawName
- Specified by:
getRawName
in interfaceJavaTypeInstance
-
getInnerClassHereInfo
- Specified by:
getInnerClassHereInfo
in interfaceJavaTypeInstance
-
getBindingSupers
- Specified by:
getBindingSupers
in interfaceJavaTypeInstance
-
directImplOf
- Specified by:
directImplOf
in interfaceJavaTypeInstance
-
hashCode
public int hashCode() -
equals
-
isComplexType
public boolean isComplexType()- Specified by:
isComplexType
in interfaceJavaTypeInstance
-
isUsableType
public boolean isUsableType()- Specified by:
isUsableType
in interfaceJavaTypeInstance
-
removeAnArrayIndirection
- Specified by:
removeAnArrayIndirection
in interfaceJavaTypeInstance
-
getDeGenerifiedType
- Specified by:
getDeGenerifiedType
in interfaceJavaTypeInstance
-
getRawTypeOfSimpleType
- Specified by:
getRawTypeOfSimpleType
in interfaceJavaTypeInstance
-
collectInto
- Specified by:
collectInto
in interfaceJavaTypeInstance
-
implicitlyCastsTo
- Specified by:
implicitlyCastsTo
in interfaceJavaTypeInstance
-
impreciseCanCastTo
- Specified by:
impreciseCanCastTo
in interfaceJavaTypeInstance
-
correctCanCastTo
- Specified by:
correctCanCastTo
in interfaceJavaTypeInstance
-
suggestVarName
- Specified by:
suggestVarName
in interfaceJavaTypeInstance
-
deObfuscate
- Specified by:
deObfuscate
in interfaceJavaTypeInstance
-
asGenericRefInstance
- Specified by:
asGenericRefInstance
in interfaceJavaTypeInstance
-
isRaw
public boolean isRaw()- Specified by:
isRaw
in interfaceJavaTypeInstance
-