public class RtflCompiler
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
COMPILER_VERSION |
static int |
RTFL_VERSION |
| Constructor and Description |
|---|
RtflCompiler(CompilerOptions options)
Instantiates a new Rtfl compiler with the provided settings
|
| Modifier and Type | Method and Description |
|---|---|
void |
compile(java.io.File file,
java.io.OutputStream out)
Compiles the provided Rtfl file, applying all compiler options
|
void |
compile(java.io.File file,
java.io.OutputStream out,
boolean writeMetadata)
Compiles the provided Rtfl file, applying all compiler options
|
java.util.ArrayList<java.lang.String> |
loadsCompiled()
Returns a list of load() functions that have already been compiled
|
CompilerOptions |
options()
Returns this compiler's options.
|
java.util.ArrayList<java.lang.String> |
requiresLoaded()
Returns a list of require() functions that have already been compiled or packaged
|
public static final int COMPILER_VERSION
public static final int RTFL_VERSION
public RtflCompiler(CompilerOptions options)
options - Compiler optionspublic CompilerOptions options()
public java.util.ArrayList<java.lang.String> requiresLoaded()
public java.util.ArrayList<java.lang.String> loadsCompiled()
public void compile(java.io.File file,
java.io.OutputStream out)
throws java.io.IOException,
ProducerException,
RuntimeException
file - The file to readout - The output to writeRuntimeException - If compiling failsProducerException - If parsing failsjava.io.IOException - If reading the input failspublic void compile(java.io.File file,
java.io.OutputStream out,
boolean writeMetadata)
throws java.io.IOException,
ProducerException,
RuntimeException
file - The file to readout - The output to writewriteMetadata - Whether to write metadata headers (for when compiling a new binary)RuntimeException - If compiling failsProducerException - If parsing failsjava.io.IOException - If reading the input fails