/** * @param obodoc obodoc * @throws OBOFormatParserException parser exception */ public void parseEntityFrame(OBODoc obodoc) { parseZeroOrMoreWsOptCmtNl(); String rest = stream.rest(); if (rest.startsWith("[Term]")) { parseTermFrame(obodoc); } else if (rest.startsWith("[Instance]")) { LOG.error("Error: Instance frames are not supported yet. Parsing stopped at line: {}", Integer.valueOf( stream.getLineNo())); while (!stream.eof()) { stream.advanceLine(); } } else { parseTypedefFrame(obodoc); } }
/** * @param obodoc obodoc * @throws OBOFormatParserException parser exception */ public void parseEntityFrame(OBODoc obodoc) { parseZeroOrMoreWsOptCmtNl(); String rest = stream.rest(); if (rest.startsWith("[Term]")) { parseTermFrame(obodoc); } else if (rest.startsWith("[Instance]")) { LOG.error("Error: Instance frames are not supported yet. Parsing stopped at line: {}", Integer.valueOf( stream.getLineNo())); while (!stream.eof()) { stream.advanceLine(); } } else { parseTypedefFrame(obodoc); } }
/** * @param obodoc obodoc * @throws OBOFormatParserException parser exception */ public void parseEntityFrame(OBODoc obodoc) { parseZeroOrMoreWsOptCmtNl(); String rest = stream.rest(); if (rest.startsWith("[Term]")) { parseTermFrame(obodoc); } else if (rest.startsWith("[Instance]")) { LOG.error("Error: Instance frames are not supported yet. Parsing stopped at line: {}", Integer.valueOf( stream.getLineNo())); while (!stream.eof()) { stream.advanceLine(); } } else { parseTypedefFrame(obodoc); } }
/** * @param obodoc obodoc * @throws OBOFormatParserException parser exception */ public void parseEntityFrame(OBODoc obodoc) { parseZeroOrMoreWsOptCmtNl(); String rest = stream.rest(); if (rest.startsWith("[Term]")) { parseTermFrame(obodoc); } else if (rest.startsWith("[Instance]")) { LOG.error("Error: Instance frames are not supported yet. Parsing stopped at line: {}", Integer.valueOf( stream.getLineNo())); while (!stream.eof()) { stream.advanceLine(); } } else { parseTypedefFrame(obodoc); } }
protected void forceParseNlOrEof() { parseZeroOrMoreWs(); if (stream.eol()) { stream.advanceLine(); return; } if (stream.eof()) { return; } error("expected newline or end of line but found: " + stream.rest()); }
protected void parseZeroOrMoreWsOptCmtNl() { while (true) { parseZeroOrMoreWs(); parseHiddenComment(); if (stream.eol()) { stream.advanceLine(); } else { return; } } }
protected void forceParseNlOrEof() { parseZeroOrMoreWs(); if (stream.eol()) { stream.advanceLine(); return; } if (stream.eof()) { return; } error("expected newline or end of line but found: " + stream.rest()); }
protected void parseZeroOrMoreWsOptCmtNl() throws OBOFormatParserException { while(true) { parseZeroOrMoreWs(); parseHiddenComment(); if (s.eol()) { s.advanceLine(); } else { return; } } }
public void prepare() { if (line == null) { advanceLine(); } }
protected void forceParseNlOrEof() throws OBOFormatParserException { parseZeroOrMoreWs(); if (s.eol()) { s.advanceLine(); return; } if (s.eof()) { return; } error("expected newline or end of line but found: "+s.rest()); }
public void prepare() { if (line == null) { advanceLine(); } }
protected void parseZeroOrMoreWsOptCmtNl() { while (true) { parseZeroOrMoreWs(); parseHiddenComment(); if (stream.eol()) { stream.advanceLine(); } else { return; } } }
protected void forceParseNlOrEof() { parseZeroOrMoreWs(); if (stream.eol()) { stream.advanceLine(); return; } if (stream.eof()) { return; } error("expected newline or end of line but found: " + stream.rest()); }
protected void parseZeroOrMoreWsOptCmtNl() { while (true) { parseZeroOrMoreWs(); parseHiddenComment(); if (stream.eol()) { stream.advanceLine(); } else { return; } } }
public void prepare() { if (line == null) { advanceLine(); } }
protected void parseZeroOrMoreWsOptCmtNl() { while (true) { parseZeroOrMoreWs(); parseHiddenComment(); if (stream.eol()) { stream.advanceLine(); } else { return; } } }
public void prepare() { if (line == null) { advanceLine(); } }
protected void forceParseNlOrEof() { parseZeroOrMoreWs(); if (stream.eol()) { stream.advanceLine(); return; } if (stream.eof()) { return; } error("expected newline or end of line but found: " + stream.rest()); }
public void prepare() { if (line == null) { advanceLine(); } }