public class WalaJavaClassProvider extends Object implements ClassProvider
ClassProvider that can read Java source code| Constructor and Description |
|---|
WalaJavaClassProvider(Collection<? extends com.ibm.wala.classLoader.Module> moduleFiles,
SourceType sourceType)
Constructor used for LSP server.
|
WalaJavaClassProvider(Set<String> sourcePath) |
WalaJavaClassProvider(Set<String> sourcePath,
Set<String> libPath,
String exclusionFilePath) |
WalaJavaClassProvider(Set<String> sourcePath,
String exclusionFilePath) |
WalaJavaClassProvider(Set<String> sourcePath,
String apkPath,
String androidJar,
String exclusionFilePath) |
WalaJavaClassProvider(String sourceDirPath) |
WalaJavaClassProvider(String sourceDirPath,
String exclusionFilePath) |
WalaJavaClassProvider(String sourceDirPath,
String exclusionFilePath,
SourceType sourceType)
Constructor used for loading classes from given source code path.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<JavaSootClassSource> |
createClassSource(AnalysisInputLocation srcNamespace,
Path sourcePath,
ClassType type) |
Optional<JavaSootClassSource> |
getClassSource(ClassType signature)
Return a ClassSource with the given signature converted from a WALA class.
|
List<JavaSootClassSource> |
getClassSources(SourceType srcType)
Return ClassSources converted from WALA classes.
|
FileType |
getHandledFileType() |
Optional<SootClass> |
getSootClass(JavaClassType signature)
Deprecated.
The frontend.WalaJavaClassProvider should not create instances of SootClass. This
is the responsibility of the View.
|
List<JavaSootClass> |
getSootClasses()
Deprecated.
The frontend.WalaJavaClassProvider should not create instances of SootClass. This
is the responsibility of the View.
|
public WalaJavaClassProvider(@Nonnull String sourceDirPath, @Nullable String exclusionFilePath)
public WalaJavaClassProvider(@Nonnull Set<String> sourcePath, @Nullable String exclusionFilePath)
public WalaJavaClassProvider(@Nonnull Set<String> sourcePath, @Nonnull Set<String> libPath, @Nonnull String exclusionFilePath)
public WalaJavaClassProvider(@Nonnull Set<String> sourcePath, @Nonnull String apkPath, @Nonnull String androidJar, @Nullable String exclusionFilePath)
public WalaJavaClassProvider(@Nonnull String sourceDirPath, @Nullable String exclusionFilePath, @Nonnull SourceType sourceType)
sourceDirPath - exclusionFilePath - public WalaJavaClassProvider(@Nonnull Collection<? extends com.ibm.wala.classLoader.Module> moduleFiles, @Nonnull SourceType sourceType)
moduleFiles - public List<JavaSootClassSource> getClassSources(SourceType srcType)
@Deprecated public List<JavaSootClass> getSootClasses()
@Deprecated public Optional<SootClass> getSootClass(JavaClassType signature)
public Optional<JavaSootClassSource> getClassSource(ClassType signature)
public Optional<JavaSootClassSource> createClassSource(AnalysisInputLocation srcNamespace, Path sourcePath, ClassType type)
createClassSource in interface ClassProviderpublic FileType getHandledFileType()
getHandledFileType in interface ClassProviderCopyright © 2024 Soot OSS. All rights reserved.