public class SystemClassHandler extends Object
| 构造器和说明 |
|---|
SystemClassHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
isClassInSystemPackage(soot.SootClass clazz)
Checks whether the given class belongs to a system package
|
boolean |
isClassInSystemPackage(String className)
Checks whether the given class name belongs to a system package
|
boolean |
isClassInSystemPackage(soot.Type type)
Checks whether the type belongs to a system package
|
boolean |
isStubImplementation(soot.Body body)
Checks whether the given method body is a stub implementation and can safely
be overwritten
|
boolean |
isTaintVisible(AccessPath taintedPath,
soot.SootMethod method)
If the base object is tainted and in a system class, but we reference some
field in an application object derived from the system class, no tainting
happens.
|
void |
setExcludeSystemComponents(boolean excludeSystemComponents)
Sets whether components in system or framework-related packages shall be
excluded from the analysis
|
static void |
setInstance(SystemClassHandler instance)
Overwrites the global system class handler instance
|
static SystemClassHandler |
v()
Gets the global system class handler instance
|
public static SystemClassHandler v()
public static void setInstance(SystemClassHandler instance)
instance - The new the global system class handler instancepublic boolean isClassInSystemPackage(soot.SootClass clazz)
clazz - The class to checkpublic boolean isClassInSystemPackage(String className)
className - The class name to checkpublic boolean isClassInSystemPackage(soot.Type type)
type - The type to checkpublic boolean isTaintVisible(AccessPath taintedPath, soot.SootMethod method)
taintedPath - The access path of the incoming taintmethod - The method that gets calledpublic void setExcludeSystemComponents(boolean excludeSystemComponents)
excludeSystemComponents - True to exclude components in system packages
from the analysis, false otherwisepublic boolean isStubImplementation(soot.Body body)
body - The body to checkCopyright © 2022 Fraunhofer SIT. All rights reserved.