Class AbstractView

java.lang.Object
sootup.core.views.AbstractView
All Implemented Interfaces:
View
Direct Known Subclasses:
JavaView, JimpleView

public abstract class AbstractView extends Object implements View
Abstract class for view.
Author:
Linghui Luo
  • Constructor Details

    • AbstractView

      public AbstractView()
  • Method Details

    • getTypeHierarchy

      public @NonNull TypeHierarchy getTypeHierarchy()
      Specified by:
      getTypeHierarchy in interface View
    • getMethod

      public @NonNull Optional<? extends SootMethod> getMethod(@NonNull MethodSignature signature)
      resolve and check for accessibility of the class from a given package * TODO: incorporate AccessUtil @NonNull public synchronized Optional<T> getClass( @NonNull PackageName entryPackage, @NonNull ClassType type) { Optional<T> aClass = getClass(type); if (aClass.isPresent() && AccessUtil.isAccessible(entryPackage, aClass.get()) ) { return Optional.empty(); } return aClass; }
      Specified by:
      getMethod in interface View
    • getField

      public @NonNull Optional<? extends SootField> getField(@NonNull FieldSignature signature)
      Specified by:
      getField in interface View