@Test public void Clear() throws IOException { UpdateClause clear = parse("CLEAR"); assertEquals(UpdateClause.Type.CLEAR, clear.getType()); }
private UpdateClause clear() throws IOException { skipWhitespace(); nextChar(); if (ch > -1 && ch < 65535) { skipWhileIn(GRAPH, WS); UID uid = uri(); return new UpdateClause(prefixes, UpdateClause.Type.CLEAR, uid); } else { return new UpdateClause(prefixes, UpdateClause.Type.CLEAR); } }
SPARQLUpdateParser { private UpdateClause clear() throws IOException { skipWhitespace(); nextChar(); if (ch > -1 && ch < 65535) { skipWhileIn(GRAPH, WS); UID uid = uri(); return new UpdateClause(prefixes, UpdateClause.Type.CLEAR, uid); } else { return new UpdateClause(prefixes, UpdateClause.Type.CLEAR); } } }
SPARQLUpdateParser { private UpdateClause clear() throws IOException { skipWhitespace(); nextChar(); if (ch > -1 && ch < 65535) { skipWhileIn(GRAPH, WS); UID uid = uri(); return new UpdateClause(prefixes, UpdateClause.Type.CLEAR, uid); } else { return new UpdateClause(prefixes, UpdateClause.Type.CLEAR); } }  }
SPARQLUpdateParser { private UpdateClause clear() throws IOException { skipWhitespace(); nextChar(); if (ch > -1 && ch < 65535) { skipWhileIn(GRAPH, WS); UID uid = uri(); return new UpdateClause(prefixes, UpdateClause.Type.CLEAR, uid); } else { return new UpdateClause(prefixes, UpdateClause.Type.CLEAR); } }  UpdateClause parse(String str); UpdateClause parse(InputStream in); UpdateClause parse(InputStream in, String charset); String collectWhileIn(CharSet... charSets); String collectWhileNotIn(CharSet... charSets); @Override String toString(); }
SPARQLUpdateParser { private UpdateClause clear() throws IOException { skipWhitespace(); nextChar(); if (ch > -1 && ch < 65535) { skipWhileIn(GRAPH, WS); UID uid = uri(); return new UpdateClause(prefixes, UpdateClause.Type.CLEAR, uid); } else { return new UpdateClause(prefixes, UpdateClause.Type.CLEAR); } }  UpdateClause parse(String str); UpdateClause parse(InputStream in); UpdateClause parse(InputStream in, String charset); String collectWhileIn(CharSet... charSets); String collectWhileNotIn(CharSet... charSets); @Override String toString();  }