|
|||||||||
| Home >> All >> org >> apache >> myfaces >> [ el overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.myfaces.el
Class ELParserHelper

java.lang.Objectorg.apache.myfaces.el.ELParserHelper
- public class ELParserHelper
- extends java.lang.Object
Utility class to implement support functionality to "morph" JSP EL into JSF EL
- Version:
- $Revision: 231425 $ $Date: 2005-08-11 07:49:45 -0400 (Thu, 11 Aug 2005) $
| Nested Class Summary | |
static class |
ELParserHelper.MyArraySuffix
Override ArraySuffix.evaluate() to use our property resolver |
static class |
ELParserHelper.MyPropertySuffix
|
| Field Summary | |
(package private) static org.apache.commons.logging.Log |
log
|
static org.apache.commons.el.Logger |
LOGGER
|
| Constructor Summary | |
private |
ELParserHelper()
|
| Method Summary | |
private static java.lang.Integer |
coerceToIntegerWrapper(java.lang.Object base,
java.lang.Object index)
|
private static int |
findQuote(java.lang.String expressionString,
int start)
|
private static int |
indexOfMatchingClosingBrace(java.lang.String expressionString,
int indexofOpeningBrace)
Return the index of the matching closing brace, skipping over quoted text |
private static int |
indexOfMatchingClosingQuote(java.lang.String expressionString,
int indexOfOpeningQuote)
Returns the index of the matching closing quote, skipping over escaped quotes |
private static boolean |
isEscaped(java.lang.String expressionString,
int i)
|
static java.lang.Object |
parseExpression(java.lang.String expressionString)
Gets the parsed form of the given expression string. |
private static void |
replaceSuffixes(org.apache.commons.el.ComplexValue complexValue)
|
(package private) static void |
replaceSuffixes(org.apache.commons.el.Expression expression)
|
private static void |
replaceSuffixes(org.apache.commons.el.ExpressionString expressionString)
|
private static void |
replaceSuffixes(java.lang.Object expression)
Replaces all ValueSuffixes with custom implementation
ValueSuffexes that use JSF PropertyResolver insted of JSP
EL one. |
static java.lang.Integer |
toIndex(java.lang.Object base,
java.lang.Object index)
Coerces index to Integer for array types, or returns
null for non-array types. |
(package private) static java.lang.String |
toJspElExpression(java.lang.String expressionString)
Convert ValueBinding syntax #{ } to JSP EL syntax ${ } |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
log
static final org.apache.commons.logging.Log log
LOGGER
public static final org.apache.commons.el.Logger LOGGER
| Constructor Detail |
ELParserHelper
private ELParserHelper()
| Method Detail |
parseExpression
public static java.lang.Object parseExpression(java.lang.String expressionString)
- Gets the parsed form of the given expression string. Returns either an
Expression or ExpressionString.
toJspElExpression
static java.lang.String toJspElExpression(java.lang.String expressionString)
- Convert ValueBinding syntax #{ } to JSP EL syntax ${ }
findQuote
private static int findQuote(java.lang.String expressionString, int start)
indexOfMatchingClosingBrace
private static int indexOfMatchingClosingBrace(java.lang.String expressionString, int indexofOpeningBrace)
- Return the index of the matching closing brace, skipping over quoted text
indexOfMatchingClosingQuote
private static int indexOfMatchingClosingQuote(java.lang.String expressionString, int indexOfOpeningQuote)
- Returns the index of the matching closing quote, skipping over escaped
quotes
isEscaped
private static boolean isEscaped(java.lang.String expressionString, int i)
replaceSuffixes
private static void replaceSuffixes(java.lang.Object expression)
- Replaces all
ValueSuffixes with custom implementation ValueSuffexes that use JSFPropertyResolverinsted of JSP EL one.
replaceSuffixes
private static void replaceSuffixes(org.apache.commons.el.ExpressionString expressionString)
replaceSuffixes
static void replaceSuffixes(org.apache.commons.el.Expression expression)
replaceSuffixes
private static void replaceSuffixes(org.apache.commons.el.ComplexValue complexValue)
coerceToIntegerWrapper
private static java.lang.Integer coerceToIntegerWrapper(java.lang.Object base, java.lang.Object index) throws javax.faces.el.EvaluationException, javax.servlet.jsp.el.ELException
toIndex
public static java.lang.Integer toIndex(java.lang.Object base, java.lang.Object index) throws javax.servlet.jsp.el.ELException, javax.faces.el.EvaluationException
- Coerces
indexto Integer for array types, or returnsnullfor non-array types.
|
|||||||||
| Home >> All >> org >> apache >> myfaces >> [ el overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.apache.myfaces.el.ELParserHelper