public class StringLiteral extends Literal
An expression representing a String literal value.
Modifier and Type | Method and Description |
---|---|
static StringLiteral |
fromLiteralValue(String pValue)
Returns a StringLiteral with the given string value
|
static StringLiteral |
fromToken(String pToken)
Returns a StringLiteral parsed from the given token (enclosed by
single or double quotes)
|
String |
getExpressionString()
Returns the expression in the expression language syntax
|
static String |
getValueFromToken(String pToken)
Parses the given token into the literal value
|
static String |
toIdentifierToken(String pValue)
Converts the specified value to an identifier token, escaping it
as a string literal if necessary.
|
static String |
toStringToken(String pValue)
Converts the specified value to a String token, using " as the
enclosing quotes and escaping any characters that need escaping.
|
bindFunctions, evaluate, getValue, setValue
public static StringLiteral fromToken(String pToken)
public static StringLiteral fromLiteralValue(String pValue)
public static String getValueFromToken(String pToken)
public static String toStringToken(String pValue)
public static String toIdentifierToken(String pValue)
public String getExpressionString()
getExpressionString
in class Expression
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.