public Object setValue(Object ctx, Object elCtx, VariableResolverFactory vars, Object value) { try { if (nextNode != null) { return nextNode.setValue(method.invoke(ctx, EMPTY), elCtx, vars, value); } else { throw new RuntimeException("bad payload"); } } catch (IllegalArgumentException e) { /** * HACK: Try to access this another way. */ if (nextNode != null) { return nextNode.setValue(getProperty(getPropertyFromAccessor(method.getName()), ctx), elCtx, vars, value); } else { return getProperty(getPropertyFromAccessor(method.getName()), ctx); } } catch (CompileException e) { throw e; } catch (Exception e) { throw new RuntimeException("error " + method.getName() + ": " + e.getClass().getName() + ":" + e.getMessage(), e); } }
public Object setValue(Object ctx, Object elCtx, VariableResolverFactory vars, Object value) { try { if (nextNode != null) { return nextNode.setValue(method.invoke(ctx, EMPTY), elCtx, vars, value); } else { throw new RuntimeException("bad payload"); } } catch (IllegalArgumentException e) { /** * HACK: Try to access this another way. */ if (nextNode != null) { return nextNode.setValue(getProperty(getPropertyFromAccessor(method.getName()), ctx), elCtx, vars, value); } else { return getProperty(getPropertyFromAccessor(method.getName()), ctx); } } catch (CompileException e) { throw e; } catch (Exception e) { throw new RuntimeException("error " + method.getName() + ": " + e.getClass().getName() + ":" + e.getMessage(), e); } }
|| (m.getName().startsWith("is") && (m.getReturnType().equals(boolean.class) || m.getReturnType().equals(Boolean.class)))) { String propertyName = ReflectionUtil.getPropertyFromAccessor(m.getName()); scope.add(propertyName); propertyName = propertyName.substring(0, 1).toUpperCase() + propertyName.substring(1);
|| (m.getName().startsWith("is") && (m.getReturnType().equals(boolean.class) || m.getReturnType().equals(Boolean.class)))) { String propertyName = ReflectionUtil.getPropertyFromAccessor(m.getName()); scope.add(propertyName); propertyName = propertyName.substring(0, 1).toUpperCase() + propertyName.substring(1);
return nextNode.getValue(getProperty(getPropertyFromAccessor(method.getName()), ctx), elCtx, vars); return getProperty(getPropertyFromAccessor(method.getName()), ctx);
return nextNode.getValue(getProperty(getPropertyFromAccessor(method.getName()), ctx), elCtx, vars); return getProperty(getPropertyFromAccessor(method.getName()), ctx);
public Object setValue(Object ctx, Object elCtx, VariableResolverFactory vars, Object value) { try { if (nextNode != null) { return nextNode.setValue(method.invoke(ctx, EMPTY), elCtx, vars, value); } else { throw new CompileException("bad payload"); } } catch (IllegalArgumentException e) { /** * HACK: Try to access this another way. */ if (nextNode != null) { return nextNode.setValue(getProperty(getPropertyFromAccessor(method.getName()), ctx), elCtx, vars, value); } else { return getProperty(getPropertyFromAccessor(method.getName()), ctx); } } catch (CompileException e) { throw e; } catch (Exception e) { throw new CompileException("error " + method.getName() + ": " + e.getClass().getName() + ":" + e.getMessage(), e); } }
return nextNode.getValue(getProperty(getPropertyFromAccessor(method.getName()), ctx), elCtx, vars); return getProperty(getPropertyFromAccessor(method.getName()), ctx);
final String property = ReflectionUtil.getPropertyFromAccessor(method.getName());
final String property = ReflectionUtil.getPropertyFromAccessor(method.getName());