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
파일: IsDef.java 프로젝트: gufanyi/wdp
 public Object getReducedValue(Object ctx, Object thisValue, VariableResolverFactory factory) {
   return factory.isResolveable(nameCache)
       || (thisValue != null && getFieldOrAccessor(thisValue.getClass(), nameCache) != null);
 }