Class HelixRepl

java.lang.Object
com.helix.cli.repl.HelixRepl

public class HelixRepl extends Object
Interactive JLine 3 Terminal REPL and HotSpot Bytecode Disassembler for Helix.
  • Field Details

  • Constructor Details

  • Method Details

    • initTerminal

      public void initTerminal() throws Exception
      Initializes JLine 3 Terminal and LineReader with history and autocompletion.
      Throws:
      Exception
    • start

      public int start()
      Starts the interactive REPL event loop.
      Returns:
      exit code (0 for clean termination)
    • evalSingle

      public int evalSingle(String expression)
      Evaluates a single expression and prints the result, used for CLI non-interactive execution.
    • loadInitialFile

      public void loadInitialFile(File file)
      Loads an initial rule file into the REPL.
    • handleInput

      public void handleInput(String input)
    • close

      public void close()
    • getContext

      public ExecutionContext getContext()
    • getLastAst

      public ExpressionNode getLastAst()
    • getLastExpression

      public String getLastExpression()
    • getLastResult

      public Object getLastResult()
    • getDebugSession

      public DebugSession getDebugSession()
    • setDebugSession

      public void setDebugSession(DebugSession debugSession)
    • isDebugMode

      public boolean isDebugMode()
    • setDebugMode

      public void setDebugMode(boolean debugMode)