public Object getValue(EvaluationContext ctx) throws ELException { VariableMapper varMapper = ctx.getVariableMapper(); if (varMapper != null) { ValueExpression expr = varMapper.resolveVariable(this.image); if (expr != null) { return expr.getValue(ctx.getELContext()); } } ctx.setPropertyResolved(false); return ctx.getELResolver().getValue(ctx, null, this.image); }
public MethodInfo getMethodInfo(Object base, EvaluationContext ctx, Class[] paramTypes) throws ELException { VariableMapper orig = ctx.getVariableMapper(); ctx.setVariableMapper(new ClosureVariableMapper(orig, this.image, base)); MethodInfo result = null; try { result = this.children[0].getMethodInfo(ctx, paramTypes); } finally { ctx.setVariableMapper(orig); } return result; }
public void setValue(Object base, EvaluationContext ctx, Object value) throws ELException { ELResolver resolver = ctx.getELResolver(); ctx.setPropertyResolved(false); resolver.setValue(ctx, base, this.image, value); } }
static String getAttrValue(Component component, String key) { Object value = component.getAttributes().get(key); if (value == null) { ValueExpression expr = component.getBindings().get(key); if (expr != null) { value = expr.getValue(new EvaluationContext(FacesContext.getCurrentInstance().getELContext(), null, null)); } } if (value != null) { return value.toString(); } return null; }
VariableMapper varMapper = ctx.getVariableMapper(); ValueExpression ve = null; if (varMapper != null) { ctx.setPropertyResolved(false); obj = ctx.getELResolver().getValue(ctx, null, this.image);
public Object invoke(EvaluationContext ctx, Class[] paramTypes, Object[] paramValues) throws ELException { return this.getMethodExpression(ctx).invoke(ctx.getELContext(), paramValues); }
public Class getType(EvaluationContext ctx) throws ELException { FunctionMapper fnMapper = ctx.getFunctionMapper(); // quickly validate again for this request if (fnMapper == null) { throw new ELException(MessageFactory.get("error.fnMapper.null")); } Method m = fnMapper.resolveFunction(this.prefix, this.localName); if (m == null) { throw new ELException(MessageFactory.get("error.fnMapper.method", this.getOutputName())); } return m.getReturnType(); }
public boolean isReadOnly(Object base, EvaluationContext ctx) throws ELException { ELResolver resolver = ctx.getELResolver(); ctx.setPropertyResolved(false); return resolver.isReadOnly(ctx, base, this.image); }
static String getAttrValue(Component component, String key) { Object value = component.getAttributes().get(key); if (value == null) { ValueExpression expr = component.getBindings().get(key); if (expr != null) { value = expr.getValue(new EvaluationContext(FacesContext.getCurrentInstance().getELContext(), null, null)); } } if (value != null) { return value.toString(); } return null; }
VariableMapper varMapper = ctx.getVariableMapper(); ValueExpression ve = null; if (varMapper != null) { ctx.setPropertyResolved(false); obj = ctx.getELResolver().getValue(ctx, null, this.image);
public Object invoke(EvaluationContext ctx, Class[] paramTypes, Object[] paramValues) throws ELException { return this.getMethodExpression(ctx).invoke(ctx.getELContext(), paramValues); }
public Class getType(EvaluationContext ctx) throws ELException { FunctionMapper fnMapper = ctx.getFunctionMapper(); // quickly validate again for this request if (fnMapper == null) { throw new ELException(MessageFactory.get("error.fnMapper.null")); } Method m = fnMapper.resolveFunction(this.prefix, this.localName); if (m == null) { throw new ELException(MessageFactory.get("error.fnMapper.method", this.getOutputName())); } return m.getReturnType(); }
public Object getValue(EvaluationContext ctx) throws ELException { VariableMapper varMapper = ctx.getVariableMapper(); if (varMapper != null) { ValueExpression expr = varMapper.resolveVariable(this.image); if (expr != null) { return expr.getValue(ctx.getELContext()); } } ctx.setPropertyResolved(false); return ctx.getELResolver().getValue(ctx, null, this.image); }
public Class getType(Object base, EvaluationContext ctx) throws ELException { ELResolver resolver = ctx.getELResolver(); ctx.setPropertyResolved(false); return resolver.getType(ctx, base, this.image); }
public Class getType(ELContext context) throws PropertyNotFoundException, ELException { EvaluationContext ctx = new EvaluationContext(context, this.fnMapper, this.varMapper); return this.getNode().getType(ctx); }
public boolean isReadOnly(Object base, EvaluationContext ctx) throws ELException { VariableMapper orig = ctx.getVariableMapper(); ctx.setVariableMapper(new ClosureVariableMapper(orig, this.image, base)); boolean result = false; try { result = this.children[0].isReadOnly(ctx); } finally { ctx.setVariableMapper(orig); } return result; }
VariableMapper varMapper = ctx.getVariableMapper(); ValueExpression ve = null; if (varMapper != null) { ctx.setPropertyResolved(false); obj = ctx.getELResolver().getValue(ctx, null, this.image);
public MethodInfo getMethodInfo(EvaluationContext ctx, Class[] paramTypes) throws ELException { return this.getMethodExpression(ctx).getMethodInfo(ctx.getELContext()); }
public Class getType(EvaluationContext ctx) throws ELException { FunctionMapper fnMapper = ctx.getFunctionMapper(); // quickly validate again for this request if (fnMapper == null) { throw new ELException(MessageFactory.get("error.fnMapper.null")); } Method m = fnMapper.resolveFunction(this.prefix, this.localName); if (m == null) { throw new ELException(MessageFactory.get("error.fnMapper.method", this.getOutputName())); } return m.getReturnType(); }
public Object getValue(EvaluationContext ctx) throws ELException { VariableMapper varMapper = ctx.getVariableMapper(); if (varMapper != null) { ValueExpression expr = varMapper.resolveVariable(this.image); if (expr != null) { return expr.getValue(ctx.getELContext()); } } ctx.setPropertyResolved(false); return ctx.getELResolver().getValue(ctx, null, this.image); }