/** * Parse a float. * * @return Float * @throws ParseException */ public Float parseFloat() throws ParseException { float value = sp.getFloat(); consumeArgumentDelimiter(); return value; }
/** * TODO: Doc * * @throws ParseException */ public String parseId() throws ParseException { String value = sp.getId(); consumeArgumentDelimiter(); return value; }
/** * Parse a list of ValueSource. Must be the final set of arguments * to a ValueSource. * * @return List<ValueSource> * @throws ParseException */ public List<ValueSource> parseValueSourceList() throws ParseException { List<ValueSource> sources = new ArrayList<ValueSource>(3); for (;;) { sources.add(parseValueSource(false)); if (! consumeArgumentDelimiter()) break; } return sources; }