/** * Parse a sequence of references. A sequence ends with a given character or * when the string ends. * * @param descriptor * The whole descriptor. * @param rover * The index in the descriptor * @param delimiter * The end character or 0 * @return the last index processed, one character after the delimeter */ int parseReferences(String descriptor, int rover, char delimiter, int modifiers) { int r = rover; while (r < descriptor.length() && descriptor.charAt(r) != delimiter) { r = parseReference(descriptor, r, modifiers); } return r; }
/** * Parse a sequence of references. A sequence ends with a given character or * when the string ends. * * @param descriptor * The whole descriptor. * @param rover * The index in the descriptor * @param delimiter * The end character or 0 * @return the last index processed, one character after the delimeter */ int parseReferences(String descriptor, int rover, char delimiter, int modifiers) { int r = rover; while (r < descriptor.length() && descriptor.charAt(r) != delimiter) { r = parseReference(descriptor, r, modifiers); } return r; }
/** * Parse a sequence of references. A sequence ends with a given character or * when the string ends. * * @param descriptor * The whole descriptor. * @param rover * The index in the descriptor * @param delimiter * The end character or 0 * @return the last index processed, one character after the delimeter */ int parseReferences(String descriptor, int rover, char delimiter, int modifiers) { int r = rover; while (r < descriptor.length() && descriptor.charAt(r) != delimiter) { r = parseReference(descriptor, r, modifiers); } return r; }
index = parseReference(descriptor, index, modifiers); // class index = parseReference(descriptor, index, modifiers); c = descriptor.charAt(index);
index = parseReference(descriptor, index, modifiers); // class index = parseReference(descriptor, index, modifiers); c = descriptor.charAt(index);
index = parseReference(descriptor, index, modifiers); // class index = parseReference(descriptor, index, modifiers); c = descriptor.charAt(index);