FileDocCategorySizeDatePackage
ExpressionFactoryImpl.javaAPI DocGlassfish v2 API4107Fri May 04 22:31:18 BST 2007com.sun.el

ExpressionFactoryImpl

public class ExpressionFactoryImpl extends ExpressionFactory
see
javax.el.ExpressionFactory
author
Jacob Hookom [jacob@hookom.net]
version
$Change: 181177 $$DateTime: 2001/06/26 08:45:09 $$Author: tcfujii $

Fields Summary
Constructors Summary
public ExpressionFactoryImpl()

        super();
    
Methods Summary
public java.lang.ObjectcoerceToType(java.lang.Object obj, java.lang.Class type)

        Object ret;
        try {
            ret = ELSupport.coerceToType(obj, type);
        } catch (IllegalArgumentException ex) {
            throw new ELException(ex);
        }
        return ret;
    
public javax.el.MethodExpressioncreateMethodExpression(javax.el.ELContext context, java.lang.String expression, java.lang.Class expectedReturnType, java.lang.Class[] expectedParamTypes)

        if (expectedParamTypes == null) {
            throw new NullPointerException(MessageFactory
                    .get("error.method.nullParms"));
        }
        ExpressionBuilder builder = new ExpressionBuilder(expression, context);
        return builder.createMethodExpression(expectedReturnType,
                expectedParamTypes);
    
public javax.el.ValueExpressioncreateValueExpression(javax.el.ELContext context, java.lang.String expression, java.lang.Class expectedType)

        if (expectedType == null) {
            throw new NullPointerException(MessageFactory
                    .get("error.value.expectedType"));
        }
        ExpressionBuilder builder = new ExpressionBuilder(expression, context);
        return builder.createValueExpression(expectedType);
    
public javax.el.ValueExpressioncreateValueExpression(java.lang.Object instance, java.lang.Class expectedType)

        if (expectedType == null) {
            throw new NullPointerException(MessageFactory
                    .get("error.value.expectedType"));
        }
        return new ValueExpressionLiteral(instance, expectedType);