Package sootup.apk.frontend
Class ApkAnalysisInputLocation
java.lang.Object
sootup.apk.frontend.ApkAnalysisInputLocation
- All Implemented Interfaces:
AnalysisInputLocation
-
Constructor Summary
ConstructorDescriptionApkAnalysisInputLocation
(Path apkPath, String android_jar_path, List<BodyInterceptor> bodyInterceptors) -
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.
-
Constructor Details
-
ApkAnalysisInputLocation
public ApkAnalysisInputLocation(Path apkPath, String android_jar_path, List<BodyInterceptor> bodyInterceptors)
-
-
Method Details
-
getClassSource
@Nonnull public Optional<? extends SootClassSource> getClassSource(@Nonnull ClassType type, @Nonnull View view) Description copied from interface:AnalysisInputLocation
Create or find a class source for a given type.- Specified by:
getClassSource
in interfaceAnalysisInputLocation
- 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.- Specified by:
getClassSources
in interfaceAnalysisInputLocation
- Returns:
- The source entries.
-
getSourceType
Description copied from interface:AnalysisInputLocation
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.- Specified by:
getSourceType
in interfaceAnalysisInputLocation
- Returns:
- returns null as source type
-
getBodyInterceptors
- Specified by:
getBodyInterceptors
in interfaceAnalysisInputLocation
-