Package org.benf.cfr.reader.state
Class DCCommonState
java.lang.Object
org.benf.cfr.reader.state.DCCommonState
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ClassCache
private final ClassFileSource2
private LinkedHashSet<String>
private final ObfuscationMapping
private final Options
private final OverloadMethodSetCache
private Set<JavaTypeInstance>
-
Constructor Summary
ConstructorsConstructorDescriptionDCCommonState
(DCCommonState dcCommonState, ObfuscationMapping mapping) DCCommonState
(DCCommonState dcCommonState, BinaryFunction<String, DCCommonState, ClassFile> cacheAccess) DCCommonState
(Options options, ClassFileSource2 classFileSource) -
Method Summary
Modifier and TypeMethodDescriptionvoid
configureWith
(ClassFile classFile) detectClsJar
(String path) explicitlyLoadJar
(String path, AnalysisType type) getClassFile
(String path) getClassFile
(JavaTypeInstance classInfo) getClassFileMaybePath
(String pathOrName) getClassFileOrNull
(JavaTypeInstance classInfo) getClassTypeOrNull
(String path) (package private) String
private static boolean
isMultiReleaseJar
(JarContent jarContent) loadClassFileAtPath
(String path) renamedTypeComment
(String typeName) void
setCollisions
(Set<JavaTypeInstance> versionCollisions)
-
Field Details
-
classCache
-
classFileSource
-
options
-
classFileCache
-
versionCollisions
-
couldNotLoadClasses
-
obfuscationMapping
-
overloadMethodSetCache
-
-
Constructor Details
-
DCCommonState
-
DCCommonState
public DCCommonState(DCCommonState dcCommonState, BinaryFunction<String, DCCommonState, ClassFile> cacheAccess) -
DCCommonState
-
-
Method Details
-
setCollisions
-
getVersionCollisions
-
configureWith
-
getPossiblyRenamedFileFromClassFileSource
-
getCouldNotLoadClasses
-
loadClassFileAtPath
-
renamedTypeComment
-
isMultiReleaseJar
-
explicitlyLoadJar
-
getClassFile
- Throws:
CannotLoadClassException
-
getClassTypeOrNull
-
getClassFile
- Throws:
CannotLoadClassException
-
getClassFileOrNull
-
getClassFileMaybePath
- Throws:
CannotLoadClassException
-
getClassCache
-
getOptions
-
detectClsJar
-
getObfuscationMapping
-
getOverloadMethodSetCache
-