Class SootClassSource

java.lang.Object
sootup.core.frontend.AbstractClassSource
sootup.core.frontend.SootClassSource
Direct Known Subclasses:
JavaSootClassSource, OverridingClassSource

public abstract class SootClassSource extends AbstractClassSource
Basic class for retrieving information that is needed to build a SootClass.
Author:
Manuel Benz created on 22.05.18, Ben Hermann, Linghui Luo
  • Constructor Details

  • Method Details

    • resolveMethods

      @Nonnull public abstract Collection<? extends SootMethod> resolveMethods() throws ResolveException
      Reads from the source to retrieve its methods. This may be an expensive operation.
      Throws:
      ResolveException
    • resolveFields

      @Nonnull public abstract Collection<? extends SootField> resolveFields() throws ResolveException
      Reads from the source to retrieve its fields. This may be an expensive operation.
      Throws:
      ResolveException
    • resolveModifiers

      @Nonnull public abstract Set<ClassModifier> resolveModifiers()
      Reads from the source to retrieve its modifiers. This may be an expensive operation.
    • resolveInterfaces

      @Nonnull public abstract Set<? extends ClassType> resolveInterfaces()
      Reads from the source to retrieve its directly implemented interfaces. This may be an expensive operation.
    • resolveSuperclass

      @Nonnull public abstract Optional<? extends ClassType> resolveSuperclass()
      Reads from the source to retrieve its superclass, if present. This may be an expensive operation.
    • resolveOuterClass

      @Nonnull public abstract Optional<? extends ClassType> resolveOuterClass()
      Reads from the source to retrieve its outer class, if this is an inner class. This may be an expensive operation.
      Returns:
    • resolvePosition

      @Nonnull public abstract Position resolvePosition()
      Reads from the source to retrieve its position in the source code. This may be an expensive operation.