Class JavaRefTypeInstance
java.lang.Object
org.benf.cfr.reader.bytecode.analysis.types.JavaRefTypeInstance
- All Implemented Interfaces:
JavaTypeInstance
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
private static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BindingSuperContainer
private final String
private final DCCommonState
private InnerClassInfo
private String
private String
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
JavaRefTypeInstance
(String className, String displayableName, JavaRefTypeInstance[] supers) private
JavaRefTypeInstance
(String className, JavaRefTypeInstance knownOuter, DCCommonState dcCommonState) private
JavaRefTypeInstance
(String className, DCCommonState dcCommonState) -
Method Summary
Modifier and TypeMethodDescriptionvoid
collectInto
(TypeUsageCollector typeUsageCollector) boolean
correctCanCastTo
(JavaTypeInstance other, GenericTypeBinder gtb) static JavaRefTypeInstance
create
(String rawClassName, DCCommonState dcCommonState) createKnownInnerOuter
(String inner, String outer, JavaRefTypeInstance outerType, DCCommonState dcCommonState) (package private) static JavaRefTypeInstance
createTypeConstant
(String rawClassName, String displayableName, JavaRefTypeInstance... supers) ONLY call when creating type constants.static JavaRefTypeInstance
createTypeConstant
(String rawClassName, JavaRefTypeInstance... supers) ONLY call when creating type constants.(package private) static JavaRefTypeInstance
createTypeConstantWithObjectSuper
(String rawClassName) ONLY call when creating type constants.deObfuscate
(ObfuscationTypeMap obfuscationTypeMap) directImplOf
(JavaTypeInstance other) void
dumpInto
(Dumper d, TypeUsageInformation typeUsageInformation, TypeContext typeContext) boolean
void
forceBindingSupers
(BindingSuperContainer bindingSuperContainer) int
private static String
getShortName
(String fullClassName) private static String
getShortName
(String fullClassName, InnerClassInfo innerClassInfo) int
hashCode()
boolean
implicitlyCastsTo
(JavaTypeInstance other, GenericTypeBinder gtb) boolean
impreciseCanCastTo
(JavaTypeInstance other, GenericTypeBinder gtb) boolean
boolean
isObject()
boolean
isRaw()
boolean
void
void
toString()
-
Field Details
-
className
-
shortName
-
suggestedVarName
-
innerClassInfo
-
dcCommonState
-
cachedBindingSupers
-
-
Constructor Details
-
JavaRefTypeInstance
-
JavaRefTypeInstance
private JavaRefTypeInstance(String className, JavaRefTypeInstance knownOuter, DCCommonState dcCommonState) -
JavaRefTypeInstance
-
-
Method Details
-
setUnexpectedInnerClassOf
-
getAnnotatedInstance
- Specified by:
getAnnotatedInstance
in interfaceJavaTypeInstance
-
isObject
public boolean isObject()- Specified by:
isObject
in interfaceJavaTypeInstance
-
markNotInner
public void markNotInner() -
suggestVarName
- Specified by:
suggestVarName
in interfaceJavaTypeInstance
-
create
-
createKnownInnerOuter
public static Pair<JavaRefTypeInstance,JavaRefTypeInstance> createKnownInnerOuter(String inner, String outer, JavaRefTypeInstance outerType, DCCommonState dcCommonState) -
createTypeConstant
static JavaRefTypeInstance createTypeConstant(String rawClassName, String displayableName, JavaRefTypeInstance... supers) ONLY call when creating type constants. -
createTypeConstant
public static JavaRefTypeInstance createTypeConstant(String rawClassName, JavaRefTypeInstance... supers) ONLY call when creating type constants. -
createTypeConstantWithObjectSuper
ONLY call when creating type constants. -
getStackType
- Specified by:
getStackType
in interfaceJavaTypeInstance
-
dumpInto
- Specified by:
dumpInto
in interfaceJavaTypeInstance
-
getPackageName
-
toString
-
getArrayStrippedType
- Specified by:
getArrayStrippedType
in interfaceJavaTypeInstance
-
getNumArrayDimensions
public int getNumArrayDimensions()- Specified by:
getNumArrayDimensions
in interfaceJavaTypeInstance
-
getRawName
- Specified by:
getRawName
in interfaceJavaTypeInstance
-
getRawShortName
-
getRawName
- Specified by:
getRawName
in interfaceJavaTypeInstance
-
getRawShortName
-
hashCode
public int hashCode() -
getInnerClassHereInfo
- Specified by:
getInnerClassHereInfo
in interfaceJavaTypeInstance
-
forceBindingSupers
-
getBindingSupers
- Specified by:
getBindingSupers
in interfaceJavaTypeInstance
-
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
-
deObfuscate
- Specified by:
deObfuscate
in interfaceJavaTypeInstance
-
implicitlyCastsTo
- Specified by:
implicitlyCastsTo
in interfaceJavaTypeInstance
-
directImplOf
- Specified by:
directImplOf
in interfaceJavaTypeInstance
-
impreciseCanCastTo
- Specified by:
impreciseCanCastTo
in interfaceJavaTypeInstance
-
correctCanCastTo
- Specified by:
correctCanCastTo
in interfaceJavaTypeInstance
-
getClassFile
-
getShortName
-
getShortName
-
collectInto
- Specified by:
collectInto
in interfaceJavaTypeInstance
-
asGenericRefInstance
- Specified by:
asGenericRefInstance
in interfaceJavaTypeInstance
-
isRaw
public boolean isRaw()- Specified by:
isRaw
in interfaceJavaTypeInstance
-