Package com.blackrook.rookscript
Class ScriptAssembler
java.lang.Object
com.blackrook.rookscript.ScriptAssembler
The assembler part of the script factories.
- Author:
- Matthew Tropiano
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ScriptAssembler
public ScriptAssembler()
-
-
Method Details
-
disassemble
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
Optimizes a script.- Parameters:
script
- the input script.- Returns:
- the new script after optimization.
-