Class AbstractClassSource

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

public abstract class AbstractClassSource extends Object
AbstractClassSource represents a Compilation Unit (Interpretation Unit for interpreted languages). e.g. its connecting a file with source(code) to a Signature that a View can resolve.
  • Field Details

  • Constructor Details

  • Method Details

    • buildClass

      public abstract SootClass buildClass(@Nonnull SourceType sourceType)
      Parameters:
      sourceType - instantiates the Subclass of AbstractClassSource to create a *SootClass
      Returns:
      a *SootClass
    • getClassType

      public ClassType getClassType()
    • getAnalysisInputLocation

      public AnalysisInputLocation getAnalysisInputLocation()
    • getSourcePath

      public Path getSourcePath()
    • equals

      public boolean equals(@Nullable Object o)
      Even if a the signature changes, the classource remains the same, e.g., if it is associated to an automatic module s
      Overrides:
      equals in class Object
      Parameters:
      o - the object to compare with
      Returns:
      both objects are logically equal
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object