@Override
 public ReflexValue readContent(ReflexStreamValue file, IReflexIOHandler ioHandler) {
   // The file is one big JSON document, and in fact is an array, so
   // convert it to an array
   ReflexValue content = ioHandler.getContent(file);
   List<?> ret = JacksonUtil.objectFromJson(content.toString(), List.class);
   return new ReflexValue(ret);
 }
Пример #2
0
  @Override
  public ReflexValue evaluate(IReflexDebugger debugger, Scope scope) {
    debugger.stepStart(this, scope);
    ReflexValue retVal = new ReflexNullValue();

    ReflexValue rv = portExpr.evaluate(debugger, scope);
    String encoded = RaptureURLCoder.encode(rv.toString());
    retVal = new ReflexValue(encoded);
    debugger.stepEnd(this, retVal, scope);
    return retVal;
  }