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 classprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BindingSuperContainerprivate final Stringprivate final DCCommonStateprivate InnerClassInfoprivate Stringprivate String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateJavaRefTypeInstance(String className, String displayableName, JavaRefTypeInstance[] supers) privateJavaRefTypeInstance(String className, JavaRefTypeInstance knownOuter, DCCommonState dcCommonState) privateJavaRefTypeInstance(String className, DCCommonState dcCommonState) -
Method Summary
Modifier and TypeMethodDescriptionvoidcollectInto(TypeUsageCollector typeUsageCollector) booleancorrectCanCastTo(JavaTypeInstance other, GenericTypeBinder gtb) static JavaRefTypeInstancecreate(String rawClassName, DCCommonState dcCommonState) static Pair<JavaRefTypeInstance, JavaRefTypeInstance> createKnownInnerOuter(String inner, String outer, JavaRefTypeInstance outerType, DCCommonState dcCommonState) (package private) static JavaRefTypeInstancecreateTypeConstant(String rawClassName, String displayableName, JavaRefTypeInstance... supers) ONLY call when creating type constants.static JavaRefTypeInstancecreateTypeConstant(String rawClassName, JavaRefTypeInstance... supers) ONLY call when creating type constants.(package private) static JavaRefTypeInstancecreateTypeConstantWithObjectSuper(String rawClassName) ONLY call when creating type constants.deObfuscate(ObfuscationTypeMap obfuscationTypeMap) directImplOf(JavaTypeInstance other) voiddumpInto(Dumper d, TypeUsageInformation typeUsageInformation, TypeContext typeContext) booleanvoidforceBindingSupers(BindingSuperContainer bindingSuperContainer) intprivate static StringgetShortName(String fullClassName) private static StringgetShortName(String fullClassName, InnerClassInfo innerClassInfo) inthashCode()booleanimplicitlyCastsTo(JavaTypeInstance other, GenericTypeBinder gtb) booleanimpreciseCanCastTo(JavaTypeInstance other, GenericTypeBinder gtb) booleanbooleanisObject()booleanisRaw()booleanvoidvoidtoString()
-
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:
getAnnotatedInstancein interfaceJavaTypeInstance
-
isObject
public boolean isObject()- Specified by:
isObjectin interfaceJavaTypeInstance
-
markNotInner
public void markNotInner() -
suggestVarName
- Specified by:
suggestVarNamein 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:
getStackTypein interfaceJavaTypeInstance
-
dumpInto
- Specified by:
dumpIntoin interfaceJavaTypeInstance
-
getPackageName
-
toString
-
getArrayStrippedType
- Specified by:
getArrayStrippedTypein interfaceJavaTypeInstance
-
getNumArrayDimensions
public int getNumArrayDimensions()- Specified by:
getNumArrayDimensionsin interfaceJavaTypeInstance
-
getRawName
- Specified by:
getRawNamein interfaceJavaTypeInstance
-
getRawShortName
-
getRawName
- Specified by:
getRawNamein interfaceJavaTypeInstance
-
getRawShortName
-
hashCode
-
getInnerClassHereInfo
- Specified by:
getInnerClassHereInfoin interfaceJavaTypeInstance
-
forceBindingSupers
-
getBindingSupers
- Specified by:
getBindingSupersin interfaceJavaTypeInstance
-
equals
-
isComplexType
public boolean isComplexType()- Specified by:
isComplexTypein interfaceJavaTypeInstance
-
isUsableType
public boolean isUsableType()- Specified by:
isUsableTypein interfaceJavaTypeInstance
-
removeAnArrayIndirection
- Specified by:
removeAnArrayIndirectionin interfaceJavaTypeInstance
-
getDeGenerifiedType
- Specified by:
getDeGenerifiedTypein interfaceJavaTypeInstance
-
getRawTypeOfSimpleType
- Specified by:
getRawTypeOfSimpleTypein interfaceJavaTypeInstance
-
deObfuscate
- Specified by:
deObfuscatein interfaceJavaTypeInstance
-
implicitlyCastsTo
- Specified by:
implicitlyCastsToin interfaceJavaTypeInstance
-
directImplOf
- Specified by:
directImplOfin interfaceJavaTypeInstance
-
impreciseCanCastTo
- Specified by:
impreciseCanCastToin interfaceJavaTypeInstance
-
correctCanCastTo
- Specified by:
correctCanCastToin interfaceJavaTypeInstance
-
getClassFile
-
getShortName
-
getShortName
-
collectInto
- Specified by:
collectIntoin interfaceJavaTypeInstance
-
asGenericRefInstance
- Specified by:
asGenericRefInstancein interfaceJavaTypeInstance
-
isRaw
public boolean isRaw()- Specified by:
isRawin interfaceJavaTypeInstance
-