public Object getReducedValue(Object ctx, Object thisValue, VariableResolverFactory factory) {
    if (!factory.isResolveable(name)) factory.createVariable(name, null, egressType);
    else throw new RuntimeException("variable defined within scope: " + name);

    return null;
  }
Ejemplo n.º 2
0
 public Object getReducedValue(Object ctx, Object thisValue, VariableResolverFactory factory) {
   return factory.isResolveable(nameCache)
       || (thisValue != null && getFieldOrAccessor(thisValue.getClass(), nameCache) != null);
 }