Interface AssemblyResolution

All Superinterfaces:
Comparable<AssemblyResolution>
All Known Subinterfaces:
AssemblyResolvedBackfill, AssemblyResolvedError, AssemblyResolvedPatterns
All Known Implementing Classes:
AbstractAssemblyResolution, DefaultAssemblyResolvedBackfill, DefaultAssemblyResolvedError, DefaultAssemblyResolvedPatterns

public interface AssemblyResolution extends Comparable<AssemblyResolution>
  • Method Details

    • toString

      String toString()

      Describe this record including indented children, grandchildren, etc., each on its own line.

      Overrides:
      toString in class Object
    • getDescription

      String getDescription()
    • getChildren

      List<AssemblyResolution> getChildren()
    • hasChildren

      boolean hasChildren()
      Check if this record has children

      If a subclass has another, possibly additional, notion of children that it would like to include in toString(), it must override this method to return true when such children are present.

      Returns:
      true if this record has children
    • getRight

      AssemblyResolution getRight()
    • lineToString

      String lineToString()
      Display the resolution result in one line (omitting child details)
      Returns:
      the display description
    • isBackfill

      boolean isBackfill()
      Check if this record describes a backfill
      Returns:
      true if the record is a backfill
    • isError

      boolean isError()
      Check if this record describes an error
      Returns:
      true if the record is an error
    • shift

      AssemblyResolution shift(int amt)
      Shift the resolution's instruction pattern to the right, if applicable

      This also shifts any backfill and forbidden pattern records.

      Parameters:
      amt - the number of bytes to shift.
      Returns:
      the result
    • parent

      AssemblyResolution parent(String description, int opCount)
      Get this same resolution, pushing its right siblings down to its children
    • collectAllRight

      void collectAllRight(Collection<AssemblyResolution> into)
    • toString

      String toString(String indent)
      Used only by parents: get a multi-line description of this record, indented
      Parameters:
      indent - the current indentation
      Returns:
      the indented description