Package sootup.java.frontend.conversion
Class WalaJavaClassProvider
java.lang.Object
sootup.java.frontend.conversion.WalaJavaClassProvider
- All Implemented Interfaces:
ClassProvider
A
ClassProvider
that can read Java source code- Author:
- Linghui Luo
-
Constructor Summary
ConstructorDescriptionWalaJavaClassProvider
(String sourceDirPath) WalaJavaClassProvider
(String sourceDirPath, String exclusionFilePath) WalaJavaClassProvider
(String sourceDirPath, String exclusionFilePath, SourceType sourceType) Constructor used for loading classes from given source code path.WalaJavaClassProvider
(Collection<? extends com.ibm.wala.classLoader.Module> moduleFiles, SourceType sourceType) Constructor used for LSP server.WalaJavaClassProvider
(Set<String> sourcePath) WalaJavaClassProvider
(Set<String> sourcePath, String exclusionFilePath) WalaJavaClassProvider
(Set<String> sourcePath, String apkPath, String androidJar, String exclusionFilePath) -
Method Summary
Modifier and TypeMethodDescriptioncreateClassSource
(AnalysisInputLocation srcNamespace, Path sourcePath, ClassType type) getClassSource
(ClassType signature) Return a ClassSource with the given signature converted from a WALA class.getClassSources
(SourceType srcType) Return ClassSources converted from WALA classes.Returns the file type that is handled by this provider, e.g.getSootClass
(JavaClassType signature) Deprecated.The frontend.WalaJavaClassProvider should not create instances of SootClass.Deprecated.The frontend.WalaJavaClassProvider should not create instances of SootClass.
-
Constructor Details
-
WalaJavaClassProvider
-
WalaJavaClassProvider
-
WalaJavaClassProvider
-
WalaJavaClassProvider
-
WalaJavaClassProvider
-
WalaJavaClassProvider
-
WalaJavaClassProvider
public WalaJavaClassProvider(@Nonnull String sourceDirPath, @Nullable String exclusionFilePath, @Nonnull SourceType sourceType) Constructor used for loading classes from given source code path.- Parameters:
sourceDirPath
-exclusionFilePath
-
-
WalaJavaClassProvider
public WalaJavaClassProvider(@Nonnull Collection<? extends com.ibm.wala.classLoader.Module> moduleFiles, @Nonnull SourceType sourceType) Constructor used for LSP server.- Parameters:
moduleFiles
-
-
-
Method Details
-
getClassSources
Return ClassSources converted from WALA classes.- Returns:
- list of classes
-
getSootClasses
Deprecated.The frontend.WalaJavaClassProvider should not create instances of SootClass. This is the responsibility of the View.Return soot classes converted from WALA classes.- Returns:
- list of classes
-
getSootClass
Deprecated.The frontend.WalaJavaClassProvider should not create instances of SootClass. This is the responsibility of the View.Return a soot class with the given signature converted from a WALA class. -
getClassSource
Return a ClassSource with the given signature converted from a WALA class. -
createClassSource
public Optional<JavaSootClassSource> createClassSource(AnalysisInputLocation srcNamespace, Path sourcePath, ClassType type) - Specified by:
createClassSource
in interfaceClassProvider
-
getHandledFileType
Description copied from interface:ClassProvider
Returns the file type that is handled by this provider, e.g. class, jimple, java- Specified by:
getHandledFileType
in interfaceClassProvider
-