|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.view.facelets.el.ELText
public class ELText
Handles parsing EL Strings in accordance with the EL-API Specification. The parser accepts either ${..}
or #{..}.
| Field Summary | |
|---|---|
protected java.lang.String |
literal
|
| Constructor Summary | |
|---|---|
ELText(java.lang.String literal)
|
|
| Method Summary | |
|---|---|
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(java.lang.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,
java.lang.String in)
Factory method for creating a validated ELText instance. |
static ELText |
parse(java.lang.String in)
Factory method for creating an unvalidated ELText instance. |
java.lang.String |
toString()
|
java.lang.String |
toString(javax.el.ELContext ctx)
Evaluates the ELText to a String |
void |
write(java.io.Writer out,
javax.el.ELContext ctx)
Allow this instance to write to the passed Writer, given the ELContext state |
void |
writeText(javax.faces.context.ResponseWriter out,
javax.el.ELContext ctx)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final java.lang.String literal
| Constructor Detail |
|---|
public ELText(java.lang.String literal)
| Method Detail |
|---|
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 use
public void write(java.io.Writer out,
javax.el.ELContext ctx)
throws javax.el.ELException,
java.io.IOException
out - Writer to write toctx - current ELContext state
javax.el.ELException
java.io.IOException
public void writeText(javax.faces.context.ResponseWriter out,
javax.el.ELContext ctx)
throws javax.el.ELException,
java.io.IOException
javax.el.ELException
java.io.IOException
public java.lang.String toString(javax.el.ELContext ctx)
throws javax.el.ELException
ctx - current ELContext state
javax.el.ELExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic static boolean isLiteral(java.lang.String in)
in - input String
#{..} or ${..})
public static ELText parse(java.lang.String in)
throws javax.el.ELException
LiteralValueExpressions.
in - String to parse
javax.el.ELException
public static ELText parse(javax.el.ExpressionFactory fact,
javax.el.ELContext ctx,
java.lang.String in)
throws javax.el.ELException
fact - ExpressionFactory to usectx - ELContext to validate againstin - String to parse
javax.el.ELException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||