Package sootup.core.inputlocation
Interface AnalysisInputLocation
- All Known Subinterfaces:
ModuleInfoAnalysisInputLocation
- All Known Implementing Classes:
ApkAnalysisInputLocation
,ArchiveBasedAnalysisInputLocation
,DefaultRuntimeAnalysisInputLocation
,DownloadJarAnalysisInputLocation
,EagerInputLocation
,JavaClassPathAnalysisInputLocation
,JavaModulePathAnalysisInputLocation
,JavaSourcePathAnalysisInputLocation
,JimpleAnalysisInputLocation
,JimpleStringAnalysisInputLocation
,JrtFileSystemAnalysisInputLocation
,ModuleMultiReleaseJarAnalysisInputLocation
,MultiReleaseJarAnalysisInputLocation
,OTFCompileAnalysisInputLocation
,PathBasedAnalysisInputLocation
,PathBasedAnalysisInputLocation.ClassFileBasedAnalysisInputLocation
public interface AnalysisInputLocation
Public interface to an input location.
AnalysisInputLocation
s are sources for SootClass
es, e.g. Java Classpath, Android APK, JAR file, etc. The strategy to traverse
something.
getClassSource(ClassType, View)
and getClassSources(View)
should in most
cases simply call getClassSource(ClassType, View)
or getClassSources(View)
respectively with the default BodyInterceptor
s of the frontend.
- Author:
- Manuel Benz created on 22.05.18, Ben Hermann, Linghui Luo
-
Method Summary
Modifier and TypeMethodDescriptionOptional<? extends SootClassSource>
getClassSource
(ClassType type, View view) Create or find a class source for a given type.Collection<? extends SootClassSource>
getClassSources
(View view) Scan the input location and create ClassSources for every compilation / interpretation unit.If the AnalysisInputLocation is initialized with the SourceType then this method should return that specific SourceType.
-
Method Details
-
getClassSource
@Nonnull Optional<? extends SootClassSource> getClassSource(@Nonnull ClassType type, @Nonnull View view) 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
Scan the input location and create ClassSources for every compilation / interpretation unit.- Returns:
- The source entries.
-
getSourceType
If the AnalysisInputLocation is initialized with the SourceType then this method should return that specific SourceType. This is the default implementation and it returns null when no source type is specified.- Returns:
- returns null as source type
-
getBodyInterceptors
-