Class Repl.Context

java.lang.Object
org.clafer.ig.Repl.Context
Enclosing class:
Repl

public static final class Repl.Context extends Object
The solutions shown so far, the most recent first: those not saved yet and those saved; the Alloy XML of the most recent; and whether they are shown as the changes from the previous snapshot.
  • Constructor Details

  • Method Details

    • display

      public void display(Backend.Shown shown)
      Shows a solution that a backend's command found, e.g., clafersg's x and z, which becomes the most recent one.
    • unsavedCount

      public int unsavedCount()
      Returns:
      how many solutions are shown and not saved
    • hasSolution

      public boolean hasSolution()
      Returns:
      whether a solution is shown
    • currentXml

      public String currentXml()
      Returns:
      the Alloy XML of the most recent solution, or null