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;
  }
Пример #2
0
 public Object getReducedValue(Object ctx, Object thisValue, VariableResolverFactory factory) {
   return factory.isResolveable(nameCache)
       || (thisValue != null && getFieldOrAccessor(thisValue.getClass(), nameCache) != null);
 }