public enum ScriptType extends Enum<ScriptType>
| Enum Constant and Description |
|---|
extended_javascript |
javascript |
minified_javascript |
typescript |
| Modifier and Type | Method and Description |
|---|---|
static ScriptType |
toJavascriptType(File file) |
static ScriptType |
toJavascriptType(String filename) |
static ScriptType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ScriptType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScriptType minified_javascript
public static final ScriptType extended_javascript
public static final ScriptType javascript
public static final ScriptType typescript
public static ScriptType[] values()
for (ScriptType c : ScriptType.values()) System.out.println(c);
public static ScriptType 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 ScriptType toJavascriptType(File file) throws UnrecognizedFileType
UnrecognizedFileTypepublic static ScriptType toJavascriptType(String filename) throws UnrecognizedFileType
UnrecognizedFileTypeCopyright © 2019. All rights reserved.