public class ELText extends Object
${..}
or #{..}.| Modifier and Type | Class and Description |
|---|---|
protected static class |
ELText.ELCacheableTextVariable |
protected static class |
ELText.ELTextComposite |
protected static class |
ELText.ELTextVariable |
protected static class |
ELText.LiteralValueExpression |
| Modifier and Type | Method and Description |
|---|---|
ELText |
apply(javax.el.ExpressionFactory factory,
javax.el.ELContext ctx)
Return an instance of
this that is applicable given the ELContext and ExpressionFactory state. |
boolean |
isLiteral()
If it's literal text
|
static boolean |
isLiteral(javax.el.ExpressionFactory fact,
javax.el.ELContext ctx,
String in) |
static boolean |
isLiteral(String in)
Parses the passed string to determine if it's literal or not
|
static ELText |
parse(javax.el.ExpressionFactory fact,
javax.el.ELContext ctx,
String in) |
static ELText |
parse(javax.el.ExpressionFactory fact,
javax.el.ELContext ctx,
String in,
Location location)
Factory method for creating a validated ELText instance.
|
static ELText |
parse(String in) |
static ELText |
parse(String in,
Location location)
Factory method for creating an unvalidated ELText instance.
|
static ELText |
parseAllowEmptyString(String in,
Location location) |
static ELText[] |
parseAsArray(javax.el.ExpressionFactory fact,
javax.el.ELContext ctx,
String in,
Location location) |
static ELText[] |
parseAsArray(String in,
Location location) |
static String |
parseAsString(javax.el.ExpressionFactory fact,
javax.el.ELContext ctx,
String in) |
String |
toString() |
String |
toString(javax.el.ELContext ctx)
Evaluates the ELText to a String
|
void |
write(Writer out,
javax.el.ELContext ctx)
Allow this instance to write to the passed Writer, given the ELContext state
|
void |
writeText(ResponseWriter out,
javax.el.ELContext ctx) |
protected final String literal
public ELText(String literal)
public boolean isLiteral()
#{..} or ${..})public ELText apply(javax.el.ExpressionFactory factory, javax.el.ELContext ctx)
this that is applicable given the ELContext and ExpressionFactory state.factory - the ExpressionFactory to usectx - the ELContext to usepublic void write(Writer out, javax.el.ELContext ctx) throws javax.el.ELException, IOException
out - Writer to write toctx - current ELContext statejavax.el.ELExceptionIOExceptionpublic void writeText(ResponseWriter out, javax.el.ELContext ctx) throws javax.el.ELException, IOException
javax.el.ELExceptionIOExceptionpublic String toString(javax.el.ELContext ctx) throws javax.el.ELException
ctx - current ELContext statejavax.el.ELExceptionpublic static boolean isLiteral(String in)
in - input String#{..} or ${..})public static ELText parse(String in) throws javax.el.ELException
javax.el.ELExceptionpublic static ELText parse(String in, Location location) throws javax.el.ELException
LocationValueExpression.in - String to parselocation - The locationjakarta.el.ELExceptionjavax.el.ELExceptionpublic static ELText parseAllowEmptyString(String in, Location location) throws javax.el.ELException
javax.el.ELExceptionpublic static String parseAsString(javax.el.ExpressionFactory fact, javax.el.ELContext ctx, String in) throws javax.el.ELException
javax.el.ELExceptionpublic static ELText parse(javax.el.ExpressionFactory fact, javax.el.ELContext ctx, String in) throws javax.el.ELException
javax.el.ELExceptionpublic static ELText parse(javax.el.ExpressionFactory fact, javax.el.ELContext ctx, String in, Location location) throws javax.el.ELException
Variables and properties will not be evaluated.
fact - ExpressionFactory to usectx - ELContext to validate againstin - String to parselocation - The locationjakarta.el.ELExceptionjavax.el.ELExceptionpublic static ELText[] parseAsArray(String in, Location location) throws javax.el.ELException
javax.el.ELExceptionpublic static ELText[] parseAsArray(javax.el.ExpressionFactory fact, javax.el.ELContext ctx, String in, Location location) throws javax.el.ELException
javax.el.ELExceptionpublic static boolean isLiteral(javax.el.ExpressionFactory fact,
javax.el.ELContext ctx,
String in)
throws javax.el.ELException
javax.el.ELExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.