Class ArchiveBasedAnalysisInputLocation
java.lang.Object
sootup.java.bytecode.frontend.inputlocation.PathBasedAnalysisInputLocation
sootup.java.bytecode.frontend.inputlocation.ArchiveBasedAnalysisInputLocation
- All Implemented Interfaces:
AnalysisInputLocation
- Direct Known Subclasses:
DownloadJarAnalysisInputLocation
,MultiReleaseJarAnalysisInputLocation
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final com.google.common.cache.LoadingCache<Path,
FileSystem> Fields inherited from class sootup.java.bytecode.frontend.inputlocation.PathBasedAnalysisInputLocation
bodyInterceptors, ignoredPaths, path, sourceType
-
Constructor Summary
ConstructorDescriptionArchiveBasedAnalysisInputLocation
(Path path, SourceType srcType) ArchiveBasedAnalysisInputLocation
(Path path, SourceType srcType, List<BodyInterceptor> bodyInterceptors) ArchiveBasedAnalysisInputLocation
(Path path, SourceType srcType, List<BodyInterceptor> bodyInterceptors, Collection<Path> ignoredPaths) -
Method Summary
Modifier and TypeMethodDescriptiongetClassSource
(ClassType type, View view) Create or find a class source for a given type.getClassSources
(View view) returns a Autocloseable resource that must be closed!Methods inherited from class sootup.java.bytecode.frontend.inputlocation.PathBasedAnalysisInputLocation
create, create, create, fromPath, getBodyInterceptors, getClassSourceInternal, getSingleClass, getSourceType, walkDirectory
-
Field Details
-
fileSystemCache
-
-
Constructor Details
-
ArchiveBasedAnalysisInputLocation
-
ArchiveBasedAnalysisInputLocation
public ArchiveBasedAnalysisInputLocation(@Nonnull Path path, @Nonnull SourceType srcType, @Nonnull List<BodyInterceptor> bodyInterceptors) -
ArchiveBasedAnalysisInputLocation
public ArchiveBasedAnalysisInputLocation(Path path, SourceType srcType, List<BodyInterceptor> bodyInterceptors, Collection<Path> ignoredPaths)
-
-
Method Details
-
getClassSource
@Nonnull public Optional<JavaSootClassSource> getClassSource(@Nonnull ClassType type, @Nonnull View view) Description copied from interface:AnalysisInputLocation
Create or find a class source for a given type.- Parameters:
type
- The type of the class to be found.- Returns:
- The source entry for that class.
-
getClassSources
returns a Autocloseable resource that must be closed!- Returns:
- an Autocloseable resource that must be closed!
-