Examples of asString()


Examples of org.neo4j.shell.impl.CollectingOutput.asString()

    }

    private void assertCommand(String command, String expected) throws RemoteException, ShellException {
        CollectingOutput out = new CollectingOutput();
        client.evaluate(command, out);
        assertEquals(expected,out.asString().trim());
    }

    @Before
    public void setUp() throws RemoteException, ShellException {
        db = (GraphDatabaseAPI) new TestGraphDatabaseFactory().newImpermanentDatabase();
View Full Code Here

Examples of org.openjena.atlas.io.IndentedLineBuffer.asString()

    private String formatForLog(Query query)
    {
        IndentedLineBuffer out = new IndentedLineBuffer() ;
        out.setFlatMode(true) ;
        query.serialize(out) ;
        return out.asString() ;
    }
       
    /**
     * @param queryURI
     * @return
 
View Full Code Here

Examples of org.persvr.remote.InnerResponse.asString()

      }
      else
        output = request.serialize(target);
      innerResponse.setHeader("Last-Modified", "" + new Date()); // TODO: This should come from the transaction
      innerResponse.getOutputStream().print(output);
      String message = innerResponse.asString();
      response.getOutputStream().print(message);
      response.getOutputStream().flush();
      return message.length();
    }
View Full Code Here

Examples of org.python.core.PyObject.asString()

        ROOT_LOGGER.endingCollection();

        JdrReport result = new JdrReport();
        result.setStartTime(startTime);
        result.setEndTime(endTime);
        result.setLocation(report.asString());
        return result;
    }

    /**
     * Sets the location for where the report archive will be created.
View Full Code Here

Examples of org.python.core.PyString.asString()

    @Override
    public Object visitStr(Str node) throws Exception {
        PyString s = (PyString) node.getInternalS();
        if (s instanceof PyUnicode) {
            module.unicodeConstant(s.asString()).get(code);
        } else {
            module.stringConstant(s.asString()).get(code);
        }
        return null;
    }
View Full Code Here

Examples of org.renjin.gcc.runtime.CharPtr.asString()

    Class clazz = compile("chars.c", "Chars");

    Method method = clazz.getMethod("circle_name");
    CharPtr ptr = (CharPtr) method.invoke(null);

    assertThat(ptr.asString(), equalTo("Hello world"));

    method = clazz.getMethod("test_first_char");
    Integer result = (Integer) method.invoke(null);

    assertThat(result, equalTo((int) 'h'));
View Full Code Here

Examples of org.renjin.sexp.SEXP.asString()

        arg = context.evaluate(arg_sym, (Environment)ev);
      } catch(Exception e) {
        throw new EvalException(String.format("error in evaluating the argument '%s' in selecting a method for function '%s'",
            arg_sym.getPrintName(), fname));
     
      klass = arg.asString();
    }
    method = R_find_method(mlist, klass, fname);
    if(method == Null.INSTANCE) {
      if(!firstTry) {
        throw new EvalException("no matching method for function '%s' (argument '%s', with class \"%s\")",
View Full Code Here

Examples of org.renjin.sexp.StringVector.asString()

      }
      classListBuilder.set(i, thisClass);
      if(i > 0) {
        buf.append("#");
      }
      buf.append(thisClass.asString());
    }
    ListVector classes = classListBuilder.build();
    method = ((Environment)mtable).getVariable(buf.toString());
    if(method == Symbol.UNBOUND_VALUE) {
      method = do_inherited_table(context, classes, fdef, mtable, (Environment)ev);
View Full Code Here

Examples of org.richfaces.renderkit.AjaxDataSerializer.asString()

        if (responseData != null) {
            startExtensionElementIfNecessary(writer, attributes, writingState);
            writer.startElement(DATA_ELEMENT_NAME, component);

            AjaxDataSerializer serializer = ServiceTracker.getService(context, AjaxDataSerializer.class);
            writer.writeText(serializer.asString(responseData), null);

            writer.endElement(DATA_ELEMENT_NAME);
        }

        Map<String, Object> responseComponentDataMap = this.getResponseComponentDataMap();
View Full Code Here

Examples of org.rosuda.REngine.REXP.asString()

        con.eval("do.call(svg,c(list('" + file + "'), beaker::saved_svg_options))");
        tryCode = "beaker_eval_=withVisible(try({" + code + "\n},silent=TRUE))";
      }
      REXP result = con.eval(tryCode);
      if (init) {
        obj.finished(result.asString());
        return obj;
      }

      if (false) {
        if (null != result)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.