org.apache.myfaces.el
Class ELParserHelper

java.lang.Object
  extended byorg.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: 382015 $ $Date: 2006-03-01 08:47:11 -0500 (Wed, 01 Mar 2006) $
Author:
Anton Koinov (latest modification by $Author: schof $)

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
           
 
Method Summary
static java.lang.Object parseExpression(java.lang.String expressionString)
          Gets the parsed form of the given expression string.
(package private) static void replaceSuffixes(org.apache.commons.el.Expression expression)
           
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
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 ${ }

Parameters:
expressionString - ValueBinding reference expression
Returns:
JSP EL compatible expression

replaceSuffixes

static void replaceSuffixes(org.apache.commons.el.Expression expression)

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 index to Integer for array types, or returns null for non-array types.

Parameters:
base - Object for the base
index - Object for the index
Returns:
Integer a valid Integer index, or null if not an array type
Throws:
javax.servlet.jsp.el.ELException - if exception occurs trying to coerce to Integer
javax.faces.el.EvaluationException - if base is array type but cannot convert index to Integer


Copyright 2006 Apache Software Foundation. All Rights Reserved.