public class CoffeeCompiler extends Object
| 构造器和说明 |
|---|
CoffeeCompiler() |
CoffeeCompiler(List<Option> options) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
compile(CoffeeSource input) |
void |
compile(CoffeeSource input,
File output)
Compiles the input
CoffeeSource to CSS and writes it to the specified output File. |
void |
compile(CoffeeSource input,
File output,
boolean force)
Compiles the input
CoffeeSource to CSS and writes it to the specified output File. |
String |
compile(File input)
Compiles the COFFEE input
File to CSS. |
void |
compile(File input,
File output)
Compiles the COFFEE input
File to CSS and writes it to the specified output File. |
void |
compile(File input,
File output,
boolean force)
Compiles the COFFEE input
File to CSS and writes it to the specified output File. |
void |
compile(File input,
File output,
String name) |
String |
compile(File input,
String name) |
String |
compile(String coffeeScriptSource) |
String |
compile(String coffeeScriptSource,
String name) |
URL |
getCoffeeJs()
Returns the COFFEE JavaScript file used by the compiler.
|
String |
getEncoding()
Returns the character encoding used by the compiler when writing the output
File. |
List<Option> |
getOptionArgs() |
boolean |
isCompress()
Returns whether the compiler will compress the CSS.
|
void |
setCoffeeJs(URL coffeeJs)
Sets the COFFEE JavaScript file used by the compiler.
|
void |
setCompress(boolean compress)
Sets the compiler to compress the CSS.
|
void |
setEncoding(String encoding)
Sets the character encoding used by the compiler when writing the output
File. |
void |
setOptionArgs(String... args) |
public URL getCoffeeJs()
public void setCoffeeJs(URL coffeeJs)
compile(java.io.File) } is called.coffeeJs - COFFEE JavaScript file used by the compiler.public boolean isCompress()
public void setCompress(boolean compress)
init() is called.compress - If true, sets the compiler to compress the CSS.public String getEncoding()
File.File.public void setEncoding(String encoding)
File.
If not set the platform default will be used.
Must be set before compile(java.io.File) ()} is called.encoding - character encoding used by the compiler when writing the output File.public String compile(String coffeeScriptSource) throws CoffeeException, IOException
public String compile(String coffeeScriptSource, String name) throws CoffeeException, IOException
public String compile(File input) throws IOException, CoffeeException
File to CSS.input - The COFFEE input File to compile.IOException - If the COFFEE file cannot be read.CoffeeExceptionpublic void compile(File input, File output) throws IOException, CoffeeException
File to CSS and writes it to the specified output File.input - The COFFEE input File to compile.output - The output File to write the CSS to.IOException - If the COFFEE file cannot be read or the output file cannot be written.CoffeeExceptionpublic void compile(File input, File output, boolean force) throws IOException, CoffeeException
File to CSS and writes it to the specified output File.input - The COFFEE input File to compile.output - The output File to write the CSS to.force - 'false' to only compile the COFFEE input file in case the COFFEE source has been modified (including imports) or the output file does not exists.IOException - If the COFFEE file cannot be read or the output file cannot be written.CoffeeExceptionpublic String compile(CoffeeSource input) throws CoffeeException, IOException
public void compile(CoffeeSource input, File output) throws IOException, CoffeeException
CoffeeSource to CSS and writes it to the specified output File.input - The input CoffeeSource to compile.output - The output File to write the CSS to.IOException - If the COFFEE file cannot be read or the output file cannot be written.CoffeeExceptionpublic void compile(CoffeeSource input, File output, boolean force) throws IOException, CoffeeException
CoffeeSource to CSS and writes it to the specified output File.input - The input CoffeeSource to compile.output - The output File to write the CSS to.force - 'false' to only compile the input CoffeeSource in case the COFFEE source has been modified (including imports) or the output file does not exists.IOException - If the COFFEE file cannot be read or the output file cannot be written.CoffeeExceptionpublic String compile(File input, String name) throws IOException, CoffeeException
public void compile(File input, File output, String name) throws IOException, CoffeeException
public void setOptionArgs(String... args)
Copyright © 2014. All rights reserved.