Class StringLiteral
java.lang.Object
org.apache.taglibs.standard.lang.jstl.Expression
org.apache.taglibs.standard.lang.jstl.Literal
org.apache.taglibs.standard.lang.jstl.StringLiteral
An expression representing a String literal value.
- Version:
- $Change: 181177 $$DateTime: 2001/06/26 08:45:09 $$Author: kchung $
- Author:
- Nathan Abramson - Art Technology Group
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringLiteralfromLiteralValue(String pValue) Returns a StringLiteral with the given string valuestatic StringLiteralReturns a StringLiteral parsed from the given token (enclosed by single or double quotes)Returns the expression in the expression language syntaxstatic StringgetValueFromToken(String pToken) Parses the given token into the literal valuestatic StringtoIdentifierToken(String pValue) Converts the specified value to an identifier token, escaping it as a string literal if necessary.static StringtoStringToken(String pValue) Converts the specified value to a String token, using " as the enclosing quotes and escaping any characters that need escaping.
-
Method Details
-
fromToken
Returns a StringLiteral parsed from the given token (enclosed by single or double quotes) -
fromLiteralValue
Returns a StringLiteral with the given string value -
getValueFromToken
Parses the given token into the literal value -
toStringToken
Converts the specified value to a String token, using " as the enclosing quotes and escaping any characters that need escaping. -
toIdentifierToken
Converts the specified value to an identifier token, escaping it as a string literal if necessary. -
getExpressionString
Returns the expression in the expression language syntax- Specified by:
getExpressionStringin classExpression
-