/** * intersection_of-Tag Class-ID | intersection_of-Tag Relation-ID Class-ID. * * @param cl cl * @throws OBOFormatParserException parser exception */ private void parseTermIntersectionOf(Clause cl) { parseIdRef(cl); // consumed the first ID parseZeroOrMoreWs(); if (!stream.eol()) { char c = stream.peekChar(); if (c != '!' && c != '{') { // try to consume the second id parseIdRef(cl, true); } } }
/** * intersection_of-Tag Class-ID | intersection_of-Tag Relation-ID Class-ID. * * @param cl cl * @throws OBOFormatParserException parser exception */ private void parseTermIntersectionOf(Clause cl) { parseIdRef(cl); // consumed the first ID parseZeroOrMoreWs(); if (!stream.eol()) { char c = stream.peekChar(); if (c != '!' && c != '{') { // try to consume the second id parseIdRef(cl, true); } } }
/** * intersection_of-Tag Class-ID | intersection_of-Tag Relation-ID Class-ID. * * @param cl cl * @throws OBOFormatParserException parser exception */ private void parseTermIntersectionOf(Clause cl) { parseIdRef(cl); // consumed the first ID parseZeroOrMoreWs(); if (!stream.eol()) { char c = stream.peekChar(); if (c != '!' && c != '{') { // try to consume the second id parseIdRef(cl, true); } } }
/** * intersection_of-Tag Class-ID | intersection_of-Tag Relation-ID Class-ID. * * @param cl cl * @throws OBOFormatParserException parser exception */ private void parseTermIntersectionOf(Clause cl) { parseIdRef(cl); // consumed the first ID parseZeroOrMoreWs(); if (!stream.eol()) { char c = stream.peekChar(); if (c != '!' && c != '{') { // try to consume the second id parseIdRef(cl, true); } } }
protected void parseWs() { if (stream.eol()) { error("Expected at least one white space, but found end of line at pos: " + stream.pos); } if (stream.eof()) { error("Expected at least one white space, but found end of file."); } if (stream.peekChar() == ' ') { stream.advance(1); } else { warn("Expected white space at pos: " + stream.pos); } }
protected void parseWs() { if (stream.eol()) { error("Expected at least one white space, but found end of line at pos: " + stream.pos); } if (stream.eof()) { error("Expected at least one white space, but found end of file."); } if (stream.peekChar() == ' ') { stream.advance(1); } else { warn("Expected white space at pos: " + stream.pos); } }
protected void parseWs() { if (stream.eol()) { error("Expected at least one white space, but found end of line at pos: " + stream.pos); } if (stream.eof()) { error("Expected at least one white space, but found end of file."); } if (stream.peekChar() == ' ') { stream.advance(1); } else { warn("Expected white space at pos: " + stream.pos); } }
public boolean peekCharIs(char c) { if (eol() || eof()) { return false; } return peekChar() == c; }
public boolean peekCharIs(char c) { if (eol() || eof()) { return false; } return peekChar() == c; }
protected void parseWs() { if (stream.eol()) { error("Expected at least one white space, but found end of line at pos: " + stream.pos); } if (stream.eof()) { error("Expected at least one white space, but found end of file."); } if (stream.peekChar() == ' ') { stream.advance(1); } else { warn("Expected white space at pos: " + stream.pos); } }
public boolean peekCharIs(char c) { if (eol() || eof()) { return false; } return peekChar() == c; }
public boolean peekCharIs(char c) { if (eol() || eof()) { return false; } return peekChar() == c; }
public boolean peekCharIs(char c) { if (eol() || eof()) { return false; } return peekChar() == c; }