public class ELText
extends java.lang.Object
${..}
or #{..}
.Modifier and Type | Class and Description |
---|---|
private static class |
ELText.ELTextComposite |
private static class |
ELText.ELTextVariable |
private static class |
ELText.LiteralValueExpression |
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
literal |
Constructor and Description |
---|
ELText(java.lang.String literal) |
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. |
private static int |
findVarLength(char[] ca,
int s) |
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) |
static ELText |
parse(javax.el.ExpressionFactory fact,
javax.el.ELContext ctx,
java.lang.String in,
java.lang.String alias)
Factory method for creating a validated ELText instance.
|
static ELText |
parse(java.lang.String in)
Factory method for creating an unvalidated ELText instance.
|
static ELText |
parse(java.lang.String in,
java.lang.String alias) |
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) |
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(java.io.Writer out, javax.el.ELContext ctx) throws javax.el.ELException, java.io.IOException
out
- Writer to write toctx
- current ELContext statejavax.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 statejavax.el.ELException
public java.lang.String toString()
toString
in class java.lang.Object
public static boolean isLiteral(java.lang.String in)
in
- input String#{..}
or ${..}
)public static ELText parse(java.lang.String in) throws javax.el.ELException
ELText.LiteralValueExpression
, with one
exception: composite component expressions. These are treated as
ContextualCompositeValueExpressions.in
- String to parsejavax.el.ELException
public static ELText parse(java.lang.String in, java.lang.String alias) throws javax.el.ELException
javax.el.ELException
public static ELText parse(javax.el.ExpressionFactory fact, javax.el.ELContext ctx, java.lang.String in) throws javax.el.ELException
javax.el.ELException
public static ELText parse(javax.el.ExpressionFactory fact, javax.el.ELContext ctx, java.lang.String in, java.lang.String alias) throws javax.el.ELException
fact
- ExpressionFactory to usectx
- ELContext to validate againstin
- String to parsejavax.el.ELException
private static int findVarLength(char[] ca, int s) throws javax.el.ELException
javax.el.ELException
Copyright © 2002-2013 Oracle America, Inc. All Rights Reserved.