public enum JSEngine extends Enum<JSEngine>
| Enum Constant and Description |
|---|
RHINO
The default JS Engine.
|
| Modifier and Type | Method and Description |
|---|---|
abstract String |
toJavaScript(String hbslocation,
String filename,
String template)
Convert a template text to JavaScript template (a.k.a precompiled template).
|
abstract String |
toJavaScript(String hbslocation,
Template template)
Convert this template to JavaScript template (a.k.a precompiled template).
|
static JSEngine |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JSEngine[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JSEngine RHINO
public static JSEngine[] values()
for (JSEngine c : JSEngine.values()) System.out.println(c);
public static JSEngine 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 abstract String toJavaScript(String hbslocation, Template template)
hbslocation - Location of the handlebars.js file.template - The template to convert.public abstract String toJavaScript(String hbslocation, String filename, String template)
hbslocation - Location of the handlebars.js file.filename - Template file name.template - The template to convert.Copyright © 2018. All rights reserved.