java.io.Serializable
, java.lang.Comparable<JsCompiler>
public enum JsCompiler extends java.lang.Enum<JsCompiler>
Modifier and Type | Method | Description |
---|---|---|
static java.lang.String |
compileJavascriptCode(ScriptType type,
java.io.File file,
java.lang.String code) |
|
static java.lang.String |
compileJavascriptFile(ScriptType type,
java.io.File file) |
|
static java.lang.String |
compileJavascriptFile(java.io.File file) |
|
static java.lang.String |
compressJavascriptCode(java.lang.String code) |
|
static JsCompiler |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static JsCompiler[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static JsCompiler[] values()
for (JsCompiler c : JsCompiler.values()) System.out.println(c);
public static JsCompiler valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static java.lang.String compressJavascriptCode(java.lang.String code) throws java.io.IOException
java.io.IOException
public static java.lang.String compileJavascriptFile(java.io.File file) throws java.io.IOException, UnrecognizedFileType
java.io.IOException
UnrecognizedFileType
public static java.lang.String compileJavascriptFile(ScriptType type, java.io.File file) throws java.io.IOException, UnrecognizedFileType
java.io.IOException
UnrecognizedFileType
public static java.lang.String compileJavascriptCode(ScriptType type, java.io.File file, java.lang.String code) throws java.io.IOException, UnrecognizedFileType
java.io.IOException
UnrecognizedFileType
Copyright © 2018. All rights reserved.