org.apache.commons.el
Class StringLiteral
public class StringLiteral
An expression representing a String literal value.
$Change: 181177 $$DateTime: 2001/06/26 08:45:09 $$Author: luehe $- Nathan Abramson - Art Technology Group
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
|
(package private) static boolean | isJavaIdentifier(String pValue) -
Returns true if the specified value is a legal java identifier
|
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.
|
StringLiteral
(package private) StringLiteral(Object pValue)
Constructor
fromLiteralValue
public static StringLiteral fromLiteralValue(String pValue)
Returns a StringLiteral with the given string value
fromToken
public static StringLiteral fromToken(String pToken)
Returns a StringLiteral parsed from the given token (enclosed by
single or double quotes)
getExpressionString
public String getExpressionString()
Returns the expression in the expression language syntax
- getExpressionString in interface Expression
getValueFromToken
public static String getValueFromToken(String pToken)
Parses the given token into the literal value
isJavaIdentifier
(package private) static boolean isJavaIdentifier(String pValue)
Returns true if the specified value is a legal java identifier
toIdentifierToken
public static String toIdentifierToken(String pValue)
Converts the specified value to an identifier token, escaping it
as a string literal if necessary.
toStringToken
public 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.
Copyright (c) 2001-2002 - Apache Software Foundation