Class ScriptAssembler

java.lang.Object
com.blackrook.rookscript.ScriptAssembler

public final class ScriptAssembler extends Object
The assembler part of the script factories.
Author:
Matthew Tropiano
  • Constructor Details

    • ScriptAssembler

      public ScriptAssembler()
  • Method Details

    • disassemble

      public static void disassemble(Script script, Writer writer) throws IOException
      Disassembles a script into a text representation. The writer is not closed.
      Parameters:
      script - the compiled script.
      writer - the output writer.
      Throws:
      IOException - if the writer cannot be written to.
    • optimize

      public static Script optimize(Script script)
      Optimizes a script.
      Parameters:
      script - the input script.
      Returns:
      the new script after optimization.