public DCTree parse(int pos) throws ParseException { skipWhitespace(); DCIdentifier name = identifier(); skipWhitespace(); DCReference type = reference(false); List<DCTree> description = null; if (isWhitespace(ch)) { skipWhitespace(); description = blockContent(); } return m.at(pos).SerialField(name, type, description); } },
public DCTree parse(int pos) throws ParseException { skipWhitespace(); DCIdentifier name = identifier(); skipWhitespace(); DCReference type = reference(false); List<DCTree> description = null; if (isWhitespace(ch)) { skipWhitespace(); description = blockContent(); } return m.at(pos).SerialField(name, type, description); } },
public DCTree parse(int pos) throws ParseException { skipWhitespace(); DCReference ref = reference(false); List<DCTree> description = blockContent(); return m.at(pos).Exception(ref, description); } },
public DCTree parse(int pos) throws ParseException { skipWhitespace(); DCReference ref = reference(false); List<DCTree> description = blockContent(); return m.at(pos).Throws(ref, description); } },
public DCTree parse(int pos) throws ParseException { skipWhitespace(); DCReference ref = reference(false); List<DCTree> description = blockContent(); return m.at(pos).Throws(ref, description); } },
public DCTree parse(int pos) throws ParseException { skipWhitespace(); DCReference ref = reference(false); List<DCTree> description = blockContent(); return m.at(pos).Exception(ref, description); } },
public DCTree parse(int pos) throws ParseException { skipWhitespace(); boolean typaram = false; if (ch == '<') { typaram = true; nextChar(); } DCIdentifier id = identifier(); if (typaram) { if (ch != '>') throw new ParseException("dc.gt.expected"); nextChar(); } skipWhitespace(); List<DCTree> desc = blockContent(); return m.at(pos).Param(typaram, id, desc); } },
public DCTree parse(int pos) throws ParseException { skipWhitespace(); boolean typaram = false; if (ch == '<') { typaram = true; nextChar(); } DCIdentifier id = identifier(); if (typaram) { if (ch != '>') throw new ParseException("dc.gt.expected"); nextChar(); } skipWhitespace(); List<DCTree> desc = blockContent(); return m.at(pos).Param(typaram, id, desc); } },
public DCTree parse(int pos) throws ParseException { DCReference ref = reference(true); skipWhitespace(); if (ch == '}') { nextChar(); return m.at(pos).Value(ref); } nextChar(); throw new ParseException("dc.unexpected.content"); } },
/** * Read Java identifier * Matching pairs of { } are skipped; the text is terminated by the first * unmatched }. It is an error if the beginning of the next tag is detected. */ @SuppressWarnings("fallthrough") protected DCIdentifier identifier() throws ParseException { skipWhitespace(); int pos = bp; if (isJavaIdentifierStart(ch)) { Name name = readJavaIdentifier(); return m.at(pos).Identifier(name); } throw new ParseException("dc.identifier.expected"); }
/** * Read Java identifier * Matching pairs of { } are skipped; the text is terminated by the first * unmatched }. It is an error if the beginning of the next tag is detected. */ @SuppressWarnings("fallthrough") protected DCIdentifier identifier() throws ParseException { skipWhitespace(); int pos = bp; if (isJavaIdentifierStart(ch)) { Name name = readJavaIdentifier(); return m.at(pos).Identifier(name); } throw new ParseException("dc.identifier.expected"); }
public DCTree parse(int pos) throws ParseException { DCReference ref = reference(true); skipWhitespace(); if (ch == '}') { nextChar(); return m.at(pos).Value(ref); } nextChar(); throw new ParseException("dc.unexpected.content"); } },
skipWhitespace(); int pos = bp; int depth = 1;
skipWhitespace(); int pos = bp; int depth = 1;
public DCTree parse(int pos) throws ParseException { skipWhitespace(); switch (ch) { case '"': DCText string = quotedString(); if (string != null) { skipWhitespace(); if (ch == '@' || ch == EOI && bp == buf.length - 1) {
public DCTree parse(int pos) throws ParseException { skipWhitespace(); switch (ch) { case '"': DCText string = quotedString(); if (string != null) { skipWhitespace(); if (ch == '@') return m.at(pos).See(List.<DCTree>of(string));
if (isIdentifierStart(ch)) { Name name = readTagName(); skipWhitespace();
if (isIdentifierStart(ch)) { Name name = readTagName(); skipWhitespace();
ListBuffer<DCTree> trees = new ListBuffer<DCTree>(); skipWhitespace(); int pos = bp; int depth = 1;
if (isIdentifierStart(ch)) { Name name = readIdentifier(); skipWhitespace(); if (ch == '>') { nextChar();