public enum JsCompiler extends Enum<JsCompiler>
| Modifier and Type | Method and Description |
|---|---|
static String |
compileJavascriptCode(ScriptType type,
File file,
String code) |
static String |
compileJavascriptFile(File file) |
static String |
compileJavascriptFile(ScriptType type,
File file) |
static String |
compressJavascriptCode(String code) |
static JsCompiler |
valueOf(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(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static String compressJavascriptCode(String code) throws IOException
IOExceptionpublic static String compileJavascriptFile(File file) throws IOException, UnrecognizedFileType
IOExceptionUnrecognizedFileTypepublic static String compileJavascriptFile(ScriptType type, File file) throws IOException, UnrecognizedFileType
IOExceptionUnrecognizedFileTypepublic static String compileJavascriptCode(ScriptType type, File file, String code) throws IOException, UnrecognizedFileType
IOExceptionUnrecognizedFileTypeCopyright © 2019. All rights reserved.