Class ClassFileBasedAnalysisInputLocation
java.lang.Object
sootup.java.bytecode.frontend.inputlocation.PathBasedAnalysisInputLocation
sootup.java.bytecode.frontend.inputlocation.ClassFileBasedAnalysisInputLocation
- All Implemented Interfaces:
AnalysisInputLocation
-
Field Summary
Fields inherited from class sootup.java.bytecode.frontend.inputlocation.PathBasedAnalysisInputLocation
bodyInterceptors, ignoredPaths, path, sourceType
-
Constructor Summary
ConstructorDescriptionClassFileBasedAnalysisInputLocation
(Path classFilePath, String omittedPackageName, SourceType srcType) ClassFileBasedAnalysisInputLocation
(Path classFilePath, String omittedPackageName, SourceType srcType, List<BodyInterceptor> bodyInterceptors) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
getClassSource
(ClassType type, View view) Create or find a class source for a given type.getClassSources
(View view) Scan the input location and create ClassSources for every compilation / interpretation unit.Methods inherited from class sootup.java.bytecode.frontend.inputlocation.PathBasedAnalysisInputLocation
create, create, create, getBodyInterceptors, getClassSourceInternal, getSingleClass, getSourceType, walkDirectory
-
Constructor Details
-
ClassFileBasedAnalysisInputLocation
-
ClassFileBasedAnalysisInputLocation
public ClassFileBasedAnalysisInputLocation(@Nonnull Path classFilePath, @Nonnull String omittedPackageName, @Nonnull SourceType srcType, @Nonnull List<BodyInterceptor> bodyInterceptors)
-
-
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
Description copied from interface:AnalysisInputLocation
Scan the input location and create ClassSources for every compilation / interpretation unit.- Returns:
- an Autocloseable resource that must be closed!
-
fromPath
- Overrides:
fromPath
in classPathBasedAnalysisInputLocation
-