Package org.benf.cfr.reader.state
Class TypeUsageInformationImpl
java.lang.Object
org.benf.cfr.reader.state.TypeUsageInformationImpl
- All Implemented Interfaces:
TypeUsageInformation
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final JavaRefTypeInstance
private final Map<JavaRefTypeInstance,
String> private final IllegalIdentifierDump
private final Set<JavaRefTypeInstance>
private final Map<String,
LinkedList<JavaRefTypeInstance>> private Set<DetectedStaticImport>
private final Set<JavaRefTypeInstance>
private final Set<JavaRefTypeInstance>
-
Constructor Summary
ConstructorsConstructorDescriptionTypeUsageInformationImpl
(Options options, JavaRefTypeInstance analysisType, Set<JavaRefTypeInstance> usedRefTypes, Set<DetectedStaticImport> staticImports) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
private boolean
fieldClash
(String name) getIid()
getName
(JavaTypeInstance type, TypeContext typeContext) boolean
private void
initialiseFrom
(Set<JavaRefTypeInstance> usedRefTypes) boolean
isNameClash
(JavaTypeInstance type, String name, TypeContext typeContext) boolean
isStaticImport
(JavaTypeInstance clazz, String fixedName)
-
Field Details
-
iid
-
staticImports
-
analysisType
-
usedRefTypes
-
shortenedRefTypes
-
usedLocalInnerTypes
-
displayName
-
shortNames
-
allowShorten
-
clashNames
-
-
Constructor Details
-
TypeUsageInformationImpl
public TypeUsageInformationImpl(Options options, JavaRefTypeInstance analysisType, Set<JavaRefTypeInstance> usedRefTypes, Set<DetectedStaticImport> staticImports)
-
-
Method Details
-
getIid
- Specified by:
getIid
in interfaceTypeUsageInformation
-
getAnalysisType
- Specified by:
getAnalysisType
in interfaceTypeUsageInformation
-
generateInnerClassShortName
- Specified by:
generateInnerClassShortName
in interfaceTypeUsageInformation
-
generateOverriddenName
- Specified by:
generateOverriddenName
in interfaceTypeUsageInformation
-
initialiseFrom
-
addDisplayNames
-
fieldClash
-
getUsedClassTypes
- Specified by:
getUsedClassTypes
in interfaceTypeUsageInformation
-
getShortenedClassTypes
- Specified by:
getShortenedClassTypes
in interfaceTypeUsageInformation
-
getUsedInnerClassTypes
- Specified by:
getUsedInnerClassTypes
in interfaceTypeUsageInformation
-
hasLocalInstance
- Specified by:
hasLocalInstance
in interfaceTypeUsageInformation
-
isStaticImport
- Specified by:
isStaticImport
in interfaceTypeUsageInformation
-
getDetectedStaticImports
- Specified by:
getDetectedStaticImports
in interfaceTypeUsageInformation
-
getName
- Specified by:
getName
in interfaceTypeUsageInformation
-
isNameClash
- Specified by:
isNameClash
in interfaceTypeUsageInformation
-