public class JSLiteral extends ScriptStringBase implements Serializable
Modifier and Type | Field and Description |
---|---|
static JSLiteral |
EMPTY_HASH |
static JSLiteral |
EMPTY_LIST |
COLON, COMMA, DOT, EMPTY_STRING, EQUALS, FUNCTION, LEFT_CURLY_BRACKET, LEFT_ROUND_BRACKET, LEFT_SQUARE_BRACKET, RIGHT_CURLY_BRACKET, RIGHT_ROUND_BRACKET, RIGHT_SQUARE_BRACKET
Constructor and Description |
---|
JSLiteral(String literal)
Constructor using literal parameter
|
Modifier and Type | Method and Description |
---|---|
void |
appendScript(Appendable target)
Append JavaScript code to @link
Appendable |
String |
getLiteral() |
appendScriptToStringBuilder, toScript, toString
public static final JSLiteral EMPTY_HASH
public static final JSLiteral EMPTY_LIST
public JSLiteral(String literal)
literal
- public void appendScript(Appendable target) throws IOException
ScriptString
Appendable
appendScript
in interface ScriptString
IOException
public String getLiteral()
Copyright © 2015 JBoss by Red Hat. All Rights Reserved.