Class MutableJavaView

All Implemented Interfaces:
MutableView, View

public class MutableJavaView extends JavaView implements MutableView
This view, in contrast to other views, can be modified. Classes and methods can be added, removed and replaced within the view.
  • Constructor Details

  • Method Details

    • addClass

      public void addClass(JavaSootClass clazz)
      Adds the provided class to the mutable view. If the provided class already exists in the view, a warning will be logged and the provided class will not be added a second time.
    • removeClass

      public void removeClass(ClassType classType)
      Removes the class that matches the provided ClassType from the mutable view.
    • removeClass

      public void removeClass(JavaSootClass clazz)
      Removes the provided class from the mutable view.
    • replaceClass

      public void replaceClass(JavaSootClass oldClass, JavaSootClass newClass)
      Removes the provided oldClass from the view and adds the provided newClass.
    • removeMethod

      public void removeMethod(JavaSootMethod method)
      Removes the provided method from the respective class it belongs to that is within the view.
    • addMethod

      public void addMethod(JavaSootMethod method)
      Adds the provided method to the respective class within the view.
    • replaceMethod

      public void replaceMethod(JavaSootMethod oldMethod, JavaSootMethod newMethod)
      Removes the provided oldMethod from the respective class within the view and adds the provided newMethod.
    • addChangeListener

      public void addChangeListener(ViewChangeListener listener)
      Specified by:
      addChangeListener in interface MutableView
    • removeChangeListener

      public void removeChangeListener(ViewChangeListener listener)
      Specified by:
      removeChangeListener in interface MutableView