Package javax.el

Examples of javax.el.ValueReference


    }

    public ValueReference getValueReference(EvaluationContext ctx) {
        try {
            Target t = getTarget(ctx);
            return new ValueReference(t.base, t.property);
        } catch (Exception e) {
            return null;
        }
    }
View Full Code Here


    }

    public ValueReference getValueReference(EvaluationContext ctx) {
        try {
            Target t = getTarget(ctx);
            return new ValueReference(t.base, t.property);
        } catch (Exception e) {
            return null;
        }
    }
View Full Code Here

        // First check the basics work
        String result = (String) ve.getValue(context);
        assertEquals("Tomcat", result);
       
        // Now check the value reference
        ValueReference vr = ve.getValueReference(context);
        assertNotNull(vr);
       
        assertEquals(beanB, vr.getBase());
        assertEquals("name", vr.getProperty());
    }
View Full Code Here

        // First check the basics work
        String result = (String) ve.getValue(context);
        assertEquals("Tomcat", result);
       
        // Now check the value reference
        ValueReference vr = ve.getValueReference(context);
        assertNotNull(vr);
       
        assertEquals(beanB, vr.getBase());
        assertEquals("name", vr.getProperty());
    }
View Full Code Here

                this.jjtGetChild(2) instanceof AstMethodParameters) {
            // This is a method call
            return null;
        }
        Target t = getTarget(ctx);
        return new ValueReference(t.base, t.property);
    }
View Full Code Here

     * @param elCtx
     * @return A ValueReferenceWrapper with the necessary information about the ValueReference.
     */
    public static _ValueReferenceWrapper getUELValueReferenceWrapper(ValueExpression valueExpression, final ELContext elCtx)
    {
        ValueReference valueReference = valueExpression.getValueReference(elCtx);
       
        while (valueReference != null
                && valueReference.getBase() instanceof CompositeComponentExpressionHolder)
        {
            valueExpression = ((CompositeComponentExpressionHolder) valueReference.getBase())
                                  .getExpression((String) valueReference.getProperty());
            if(valueExpression == null)
            {
                break;
            }
            valueReference = valueExpression.getValueReference(elCtx);
        }
       
        if (valueReference != null)
        {
            return new _ValueReferenceWrapper(valueReference.getBase(), valueReference.getProperty());
        }
       
        return null;
    }
View Full Code Here

        // First check the basics work
        String result = (String) ve.getValue(context);
        assertEquals("Tomcat", result);
       
        // Now check the value reference
        ValueReference vr = ve.getValueReference(context);
        assertNotNull(vr);
       
        assertEquals(beanB, vr.getBase());
        assertEquals("name", vr.getProperty());
    }
View Full Code Here

        // First check the basics work
        String result = (String) ve.getValue(context);
        assertEquals("Tomcat", result);
       
        // Now check the value reference
        ValueReference vr = ve.getValueReference(context);
        assertNotNull(vr);
       
        assertEquals(beanB, vr.getBase());
        assertEquals("name", vr.getProperty());
    }
View Full Code Here

        // First check the basics work
        String result = (String) ve.getValue(context);
        assertEquals("Tomcat", result);
       
        // Now check the value reference
        ValueReference vr = ve.getValueReference(context);
        assertNotNull(vr);
       
        assertEquals(beanB, vr.getBase());
        assertEquals("name", vr.getProperty());
    }
View Full Code Here

        // First check the basics work
        String result = (String) ve.getValue(context);
        assertEquals("Tomcat", result);
       
        // Now check the value reference
        ValueReference vr = ve.getValueReference(context);
        assertNotNull(vr);
       
        assertEquals(beanB, vr.getBase());
        assertEquals("name", vr.getProperty());
    }
View Full Code Here

TOP

Related Classes of javax.el.ValueReference

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.