541542543544545546547548549550
if ( builder == null ) { Log.warn(this, "Attempt to use OpFetch - need to enable first with a call to OpFetch.enable()") ; return OpLabel.create("fetch/"+serviceNode, OpTable.unit()) ; } Item item = Item.createNode(elt.getFetchNode()) ; ItemList args = new ItemList() ; args.add(item) ; return builder.make(args) ; }
495496497498499500501502503504
158159160161162163164165166167168169
} // The main recursive build operation. private Op build(ItemList list) { Item head = list.get(0) ; String tag = head.getSymbol() ; Build bob = findBuild(tag) ; if ( bob != null ) return bob.make(list) ; else
186187188189190191192193194195196197198
{ // Skips the tag. BasicPattern triples = new BasicPattern() ; for ( int i = 1 ; i < list.size() ; i++ ) { Item item = list.get(i) ; if ( ! item.isList() ) BuilderLib.broken(item, "Not a triple structure") ; Triple t = BuilderGraph.buildTriple(item.getList()) ; triples.add(t) ; } return triples ; }
596061626364656667
assertEquals(op, other) ; } @Test public void testBuildInt_01() { Item item = SSE.parseItem("1") ; int i = BuilderNode.buildInt(item) ; assertEquals(1, i) ; }
666768697071727374
assertEquals(1, i) ; } @Test public void testBuildInt_02() { Item item = SSE.parseItem("1") ; int i = BuilderNode.buildInt(item, 23) ; assertEquals(1, i) ; }
737475767778798081
assertEquals(1, i) ; } @Test public void testBuildInt_03() { Item item = SSE.parseItem("_") ; int i = BuilderNode.buildInt(item, 23) ; assertEquals(23, i) ; }
7677787980818283
{ if ( strings.length == 0 ) throw new IllegalArgumentException() ; String x = StrUtils.strjoinNL(strings) ; Item item = SSE.parse(x) ; return BuilderResultSet.build(item) ; }
146147148149150151152153154
String x = p.toString(prologue) ; Path p2 = PathParser.parse(x, prologue) ; assertEquals(p, p2) ; String sse = WriterPath.asString(p, prologue) ; Item item = SSE.parseItem(sse, pmap) ; p2 = BuilderPath.buildPath(item) ; assertEquals(p, p2) ; }
124125126127128129130131
{ if ( strings.length == 0 ) throw new IllegalArgumentException() ; String x = StrUtils.strjoinNL(strings) ; Item item = SSE.parse(x) ; return ResultSetFactory.makeRewindable(BuilderResultSet.build(item)); }