public class MutableJavaView extends JavaView implements MutableView
View.ModuleDataKey<K>
cache, classLoadingOptionsSpecifier, isFullyResolved
Constructor and Description |
---|
MutableJavaView(Project<JavaSootClass,? extends JavaView> project) |
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(ViewChangeListener listener) |
void |
addClass(JavaSootClass clazz)
Adds the provided class to the mutable view.
|
void |
addMethod(JavaSootMethod method)
Adds the provided method to the respective class within the view.
|
void |
removeChangeListener(ViewChangeListener listener) |
void |
removeClass(ClassType classType)
Removes the class that matches the provided
ClassType from the mutable view. |
void |
removeClass(JavaSootClass clazz)
Removes the provided class from the mutable view.
|
void |
removeMethod(JavaSootMethod method)
Removes the provided method from the respective class it belongs to that is within the view.
|
void |
replaceClass(JavaSootClass oldClass,
JavaSootClass newClass)
Removes the provided oldClass from the view and adds the provided newClass.
|
void |
replaceMethod(JavaSootMethod oldMethod,
JavaSootMethod newMethod)
Removes the provided oldMethod from the respective class within the view and adds the provided
newMethod.
|
buildClassFrom, configBodyInterceptors, getAbstractClass, getAmountOfStoredClasses, getBodyInterceptors, getClass, getClasses, resolveAll
getField, getIdentifierFactory, getMethod, getModuleData, getProject, getScope, getTypeHierarchy, putModuleData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
computeModuleDataIfAbsent, getClassOrThrow
public MutableJavaView(@Nonnull Project<JavaSootClass,? extends JavaView> project)
public void addClass(JavaSootClass clazz)
public void removeClass(ClassType classType)
ClassType
from the mutable view.public void removeClass(JavaSootClass clazz)
public void replaceClass(JavaSootClass oldClass, JavaSootClass newClass)
public void removeMethod(JavaSootMethod method)
public void addMethod(JavaSootMethod method)
public void replaceMethod(JavaSootMethod oldMethod, JavaSootMethod newMethod)
public void addChangeListener(ViewChangeListener listener)
addChangeListener
in interface MutableView
public void removeChangeListener(ViewChangeListener listener)
removeChangeListener
in interface MutableView
Copyright © 2023 Soot OSS. All rights reserved.