|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcn.dreampie.coffeescript.compiler.CoffeeCompiler
public class CoffeeCompiler
| 构造方法摘要 | |
|---|---|
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)
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public CoffeeCompiler()
public CoffeeCompiler(List<Option> options)
| 方法详细信息 |
|---|
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
CoffeeException
IOException
public String compile(String coffeeScriptSource,
String name)
throws CoffeeException,
IOException
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.
CoffeeException
public 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.
CoffeeException
public 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.
CoffeeException
public String compile(CoffeeSource input)
throws CoffeeException,
IOException
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.
CoffeeException
public 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.
CoffeeException
public String compile(File input,
String name)
throws IOException,
CoffeeException
IOException
CoffeeException
public void compile(File input,
File output,
String name)
throws IOException,
CoffeeException
IOException
CoffeeExceptionpublic List<Option> getOptionArgs()
public void setOptionArgs(String... args)
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||