Refine search
@Override public MethodInfo getMethodInfo(ELContext context) throws ELException { return new MethodInfo(this.expr, this.expectedType, this.paramTypes); }
public Class getType(FacesContext facesContext) { return expression.getMethodInfo(facesContext.getELContext()).getReturnType(); }
return methodExpression.equals(((MethodBindingMethodExpressionAdapter) other).getWrapped()); } else if (other instanceof MethodBinding) { MethodBinding binding = (MethodBinding) other; String expr = binding.getExpressionString(); int idx = expr.indexOf('.'); String target = expr.substring(0, idx).substring(2); String method = t.substring(0, (t.length() - 1)); FacesContext context = FacesContext.getCurrentInstance(); ELContext elContext = context.getELContext(); MethodInfo controlInfo = methodExpression.getMethodInfo(elContext); if (!controlInfo.getName().equals(method)) { return false; Class type = binding.getType(context); Method[] methods = result.getClass().getMethods(); for (Method meth : methods) { if (meth.getName().equals(method) && type.equals(controlInfo.getReturnType()) && Arrays.equals(meth.getParameterTypes(), controlInfo.getParamTypes())) { return true;
methodInfo = methodExpression.getMethodInfo(inspectorElContext); // Oracle EL will return null on methods with arguments. ValueExpression valueExpression = createValueExpression(methodExpression.getExpressionString(), Object.class); methodInfo = new MethodExpressionValueExpressionAdapter(valueExpression).getMethodInfo(context); Method method = base.getClass().getMethod(methodInfo.getName(), methodInfo.getParamTypes()); return new MethodReference(base, method);
public MethodInfo invoke() { return new MethodInfo(null, methodBinding.getType(facesContext), null); } });
public Class getType(FacesContext context) throws MethodNotFoundException { try { return m.getMethodInfo(ELAdaptor.getELContext(context)).getReturnType(); } catch (javax.el.MethodNotFoundException e) { throw new MethodNotFoundException(e.getMessage(), e.getCause()); } catch (ELException e) { throw new EvaluationException(e.getMessage(), e.getCause()); } }
return methodExpression.equals(((MethodBindingMethodExpressionAdapter) other).getWrapped()); } else if (other instanceof MethodBinding) { MethodBinding binding = (MethodBinding) other; String expr = binding.getExpressionString(); int idx = expr.indexOf('.'); String target = expr.substring(0, idx).substring(2); String method = t.substring(0, (t.length() - 1)); FacesContext context = FacesContext.getCurrentInstance(); ELContext elContext = context.getELContext(); MethodInfo controlInfo = methodExpression.getMethodInfo(elContext); if (!controlInfo.getName().equals(method)) { return false; Class type = binding.getType(context); Method[] methods = result.getClass().getMethods(); for (Method meth : methods) { if (meth.getName().equals(method) && type.equals(controlInfo.getReturnType()) && Arrays.equals(meth.getParameterTypes(), controlInfo.getParamTypes())) { return true;
methodInfo = methodExpression.getMethodInfo(inspectorElContext); // Oracle EL will return null on methods with arguments. ValueExpression valueExpression = createValueExpression(methodExpression.getExpressionString(), Object.class); methodInfo = new MethodExpressionValueExpressionAdapter(valueExpression).getMethodInfo(context); Method method = base.getClass().getMethod(methodInfo.getName(), methodInfo.getParamTypes()); return new MethodReference(base, method);
public MethodInfo invoke() { return new MethodInfo(null, methodBinding.getType(facesContext), null); } });
String expr = binding.getExpressionString(); int idx = expr.indexOf('.'); String target = expr.substring(0, idx).substring(2); String method = t.substring(0, (t.length() - 1)); FacesContext context = FacesContext.getCurrentInstance(); ELContext elContext = context.getELContext(); MethodInfo controlInfo = expression.getMethodInfo(elContext); if (!controlInfo.getName().equals(method)) { return false; ExpressionFactory factory = context.getApplication().getExpressionFactory(); ValueExpression ve = factory.createValueExpression(elContext, "#{" + target + '}', for (Method meth : methods) { if (meth.getName().equals(method) && meth.getReturnType().equals(controlInfo.getReturnType()) && Arrays.equals(meth.getParameterTypes(), controlInfo.getParamTypes())) { return true;
@Override public Class getType(FacesContext ctx) throws MethodNotFoundException { return getMethodExpression(ctx).getMethodInfo( ctx.getELContext() ).getReturnType(); }
public MethodInfo getMethodInfo(ELContext context) throws ELException { return new MethodInfo(this.expr, this.expectedType, this.paramTypes); }
public MethodInfo invoke() { return new MethodInfo(null, methodBinding.getType(facesContext), null); } });
return methodExpression.equals(((MethodBindingMethodExpressionAdapter) other).getWrapped()); } else if (other instanceof MethodBinding) { MethodBinding binding = (MethodBinding) other; String expr = binding.getExpressionString(); int idx = expr.indexOf('.'); String target = expr.substring(0, idx).substring(2); String method = t.substring(0, (t.length() - 1)); FacesContext context = FacesContext.getCurrentInstance(); ELContext elContext = context.getELContext(); MethodInfo controlInfo = methodExpression.getMethodInfo(elContext); if (!controlInfo.getName().equals(method)) { return false; ExpressionFactory factory = context.getApplication().getExpressionFactory(); ValueExpression ve = factory.createValueExpression(elContext, "#{" + target + '}', Object.class); if (ve == null) { Class<?> type = binding.getType(context); Method[] methods = result.getClass().getMethods(); for (Method meth : methods) { if (meth.getName().equals(method) && type.equals(controlInfo.getReturnType()) && Arrays.equals(meth.getParameterTypes(), controlInfo.getParamTypes())) { return true;
public Class<?> getType(FacesContext context) throws MethodNotFoundException { if (context == null) { throw new NullPointerException("FacesConext -> null"); } try { return methodExpression.getMethodInfo(context.getELContext()).getReturnType(); } catch (ELException e) { throw new MethodNotFoundException(e); } }
public MethodInfo getMethodInfo(ELContext context) throws ELException { return new MethodInfo(this.expr, this.expectedType, this.paramTypes); }
public MethodInfo invoke() { return new MethodInfo(null, methodBinding.getType(facesContext), null); } });
return methodExpression.equals(((MethodBindingMethodExpressionAdapter) other).getWrapped()); } else if (other instanceof MethodBinding) { MethodBinding binding = (MethodBinding) other; String expr = binding.getExpressionString(); int idx = expr.indexOf('.'); String target = expr.substring(0, idx).substring(2); String method = t.substring(0, (t.length() - 1)); FacesContext context = FacesContext.getCurrentInstance(); ELContext elContext = context.getELContext(); MethodInfo controlInfo = methodExpression.getMethodInfo(elContext); if (!controlInfo.getName().equals(method)) { return false; Class type = binding.getType(context); Method[] methods = result.getClass().getMethods(); for (Method meth : methods) { if (meth.getName().equals(method) && type.equals(controlInfo.getReturnType()) && Arrays.equals(meth.getParameterTypes(), controlInfo.getParamTypes())) { return true;
public Class<?> getType(FacesContext context) throws MethodNotFoundException { if (context == null) { throw new NullPointerException("FacesConext -> null"); } try { return methodExpression.getMethodInfo(context.getELContext()).getReturnType(); } catch (ELException e) { throw new MethodNotFoundException(e); } }
@Override public MethodInfo getMethodInfo(ELContext context) throws ELException { return new MethodInfo(this.expr, this.expectedType, this.paramTypes); }