public class Compiler extends Object
| Modifier and Type | Field and Description |
|---|---|
Charset |
defaultCharset
The default defaultCharset that is used for compiling strings.
|
| Constructor and Description |
|---|
Compiler()
Create new compiler.
|
| Modifier and Type | Method and Description |
|---|---|
Output |
compile(Context context)
Compile context.
|
Output |
compile(FileContext context)
Compile file.
|
Output |
compile(StringContext context)
Compile a string context.
|
Output |
compileFile(URI inputPath,
URI outputPath,
Options options)
Compile file.
|
Output |
compileString(String string,
Charset charset,
Options options)
Compile string.
|
Output |
compileString(String string,
Charset charset,
URI inputPath,
URI outputPath,
Options options)
Compile string.
|
Output |
compileString(String string,
Options options)
Compile string.
|
Output |
compileString(String string,
URI inputPath,
URI outputPath,
Options options)
Compile string.
|
public final Charset defaultCharset
public Output compileString(String string, Options options) throws CompilationException
string - The input string.options - The compile options.CompilationException - If the compilation failed.public Output compileString(String string, Charset charset, Options options) throws CompilationException
string - The input string.charset - The defaultCharset of the input string.options - The compile options.CompilationException - If the compilation failed.public Output compileString(String string, URI inputPath, URI outputPath, Options options) throws CompilationException
string - The input string.inputPath - The input path.outputPath - The output path.options - The compile options.CompilationException - If the compilation failed.public Output compileString(String string, Charset charset, URI inputPath, URI outputPath, Options options) throws CompilationException
string - The input string.charset - The defaultCharset of the input string.inputPath - The input path.outputPath - The output path.options - The compile options.CompilationException - If the compilation failed.public Output compileFile(URI inputPath, URI outputPath, Options options) throws CompilationException
inputPath - The input path.outputPath - The output path.options - The compile options.CompilationException - If the compilation failed.public Output compile(Context context) throws CompilationException
context - The context.CompilationException - If the compilation failed.public Output compile(StringContext context) throws CompilationException
context - The string context.CompilationException - If the compilation failed.public Output compile(FileContext context) throws CompilationException
context - The file context.CompilationException - If the compilation failed.Copyright © 2016 bit3. All rights reserved.