private final int consumeDigits0(int radix, int usingUnderscore, int invalidPosition, boolean expectingDigitFirst) throws InvalidInputException { int kind = 0; if (getNextChar('_')) { if (expectingDigitFirst) { return invalidPosition; } kind = usingUnderscore; while (getNextChar('_')) {/*empty */} } if (getNextCharAsDigit(radix)) { // continue to read digits or underscore while (getNextCharAsDigit(radix)) {/*empty */} int kind2 = consumeDigits0(radix, usingUnderscore, invalidPosition, false); if (kind2 == 0) { return kind; } return kind2; } if (kind == usingUnderscore) return invalidPosition; return kind; } public final boolean getNextCharAsDigit() throws InvalidInputException {
private final int consumeDigits0(int radix, int usingUnderscore, int invalidPosition, boolean expectingDigitFirst) throws InvalidInputException { int kind = 0; if (getNextChar('_')) { if (expectingDigitFirst) { return invalidPosition; } kind = usingUnderscore; while (getNextChar('_')) {/*empty */} } if (getNextCharAsDigit(radix)) { // continue to read digits or underscore while (getNextCharAsDigit(radix)) {/*empty */} int kind2 = consumeDigits0(radix, usingUnderscore, invalidPosition, false); if (kind2 == 0) { return kind; } return kind2; } if (kind == usingUnderscore) return invalidPosition; return kind; } public final boolean getNextCharAsDigit() throws InvalidInputException {
private final int consumeDigits0(int radix, int usingUnderscore, int invalidPosition, boolean expectingDigitFirst) throws InvalidInputException { int kind = 0; if (getNextChar('_')) { if (expectingDigitFirst) { return invalidPosition; } kind = usingUnderscore; while (getNextChar('_')) {/*empty */} } if (getNextCharAsDigit(radix)) { // continue to read digits or underscore while (getNextCharAsDigit(radix)) {/*empty */} int kind2 = consumeDigits0(radix, usingUnderscore, invalidPosition, false); if (kind2 == 0) { return kind; } return kind2; } if (kind == usingUnderscore) return invalidPosition; return kind; } public final boolean getNextCharAsDigit() throws InvalidInputException {
private final int consumeDigits0(int radix, int usingUnderscore, int invalidPosition, boolean expectingDigitFirst) throws InvalidInputException { int kind = 0; if (getNextChar('_')) { if (expectingDigitFirst) { return invalidPosition; } kind = usingUnderscore; while (getNextChar('_')) {/*empty */} } if (getNextCharAsDigit(radix)) { // continue to read digits or underscore while (getNextCharAsDigit(radix)) {/*empty */} int kind2 = consumeDigits0(radix, usingUnderscore, invalidPosition, false); if (kind2 == 0) { return kind; } return kind2; } if (kind == usingUnderscore) return invalidPosition; return kind; } public final boolean getNextCharAsDigit() throws InvalidInputException {
private final int consumeDigits0(int radix, int usingUnderscore, int invalidPosition, boolean expectingDigitFirst) throws InvalidInputException { int kind = 0; if (getNextChar('_')) { if (expectingDigitFirst) { return invalidPosition; } kind = usingUnderscore; while (getNextChar('_')) {/*empty */} } if (getNextCharAsDigit(radix)) { // continue to read digits or underscore while (getNextCharAsDigit(radix)) {/*empty */} int kind2 = consumeDigits0(radix, usingUnderscore, invalidPosition, false); if (kind2 == 0) { return kind; } return kind2; } if (kind == usingUnderscore) return invalidPosition; return kind; } public final boolean getNextCharAsDigit() throws InvalidInputException {
private final int consumeDigits0(int radix, int usingUnderscore, int invalidPosition, boolean expectingDigitFirst) throws InvalidInputException { int kind = 0; if (getNextChar('_')) { if (expectingDigitFirst) { return invalidPosition; } kind = usingUnderscore; while (getNextChar('_')) {/*empty */} } if (getNextCharAsDigit(radix)) { // continue to read digits or underscore while (getNextCharAsDigit(radix)) {/*empty */} int kind2 = consumeDigits0(radix, usingUnderscore, invalidPosition, false); if (kind2 == 0) { return kind; } return kind2; } if (kind == usingUnderscore) return invalidPosition; return kind; } public final boolean getNextCharAsDigit() throws InvalidInputException {
private final int consumeDigits0(int radix, int usingUnderscore, int invalidPosition, boolean expectingDigitFirst) throws InvalidInputException { int kind = 0; if (getNextChar('_')) { if (expectingDigitFirst) { return invalidPosition; } kind = usingUnderscore; while (getNextChar('_')) {/*empty */} } if (getNextCharAsDigit(radix)) { // continue to read digits or underscore while (getNextCharAsDigit(radix)) {/*empty */} int kind2 = consumeDigits0(radix, usingUnderscore, invalidPosition, false); if (kind2 == 0) { return kind; } return kind2; } if (kind == usingUnderscore) return invalidPosition; return kind; } public final boolean getNextCharAsDigit() throws InvalidInputException {
private final int consumeDigits0(int radix, int usingUnderscore, int invalidPosition, boolean expectingDigitFirst) throws InvalidInputException { int kind = 0; if (getNextChar('_')) { if (expectingDigitFirst) { return invalidPosition; } kind = usingUnderscore; while (getNextChar('_')) {/*empty */} } if (getNextCharAsDigit(radix)) { // continue to read digits or underscore while (getNextCharAsDigit(radix)) {/*empty */} int kind2 = consumeDigits0(radix, usingUnderscore, invalidPosition, false); if (kind2 == 0) { return kind; } return kind2; } if (kind == usingUnderscore) return invalidPosition; return kind; } public final boolean getNextCharAsDigit() throws InvalidInputException {
private final int consumeDigits0(int radix, int usingUnderscore, int invalidPosition, boolean expectingDigitFirst) throws InvalidInputException { int kind = 0; if (getNextChar('_')) { if (expectingDigitFirst) { return invalidPosition; } kind = usingUnderscore; while (getNextChar('_')) {/*empty */} } if (getNextCharAsDigit(radix)) { // continue to read digits or underscore while (getNextCharAsDigit(radix)) {/*empty */} int kind2 = consumeDigits0(radix, usingUnderscore, invalidPosition, false); if (kind2 == 0) { return kind; } return kind2; } if (kind == usingUnderscore) return invalidPosition; return kind; } public final boolean getNextCharAsDigit() throws InvalidInputException {
if (getNextChar('x', 'X') >= 0) { //----------hexa----------------- int start = this.currentPosition; while (getNextCharAsDigit(16)){/*empty*/} int end = this.currentPosition; if (getNextChar('l', 'L') >= 0) { while (getNextCharAsDigit(16)){/*empty*/} end = this.currentPosition; if (hasNoDigitsBeforeDot && end == start) { while (getNextCharAsDigit()){/*empty*/} if (getNextChar('f', 'F') >= 0) { return TokenNameFloatingPointLiteral; while (getNextCharAsDigit()){/*empty*/} if (getNextChar('f', 'F') >= 0) return TokenNameFloatingPointLiteral; if (getNextCharAsDigit()) { //-------------potential octal----------------- while (getNextCharAsDigit()){/*empty*/} if (getNextChar('.')) { isInteger = false; while (getNextCharAsDigit()){/*empty*/} while (getNextCharAsDigit()){/*empty*/} while (getNextCharAsDigit()){/*empty*/}
if (getNextChar('x', 'X') >= 0) { //----------hexa----------------- int start = this.currentPosition; while (getNextCharAsDigit(16)){/*empty*/} int end = this.currentPosition; if (getNextChar('l', 'L') >= 0) { while (getNextCharAsDigit(16)){/*empty*/} end = this.currentPosition; if (hasNoDigitsBeforeDot && end == start) { while (getNextCharAsDigit()){/*empty*/} if (getNextChar('f', 'F') >= 0) { return TokenNameFloatingPointLiteral; while (getNextCharAsDigit()){/*empty*/} if (getNextChar('f', 'F') >= 0) return TokenNameFloatingPointLiteral; if (getNextCharAsDigit()) { //-------------potential octal----------------- while (getNextCharAsDigit()){/*empty*/} if (getNextChar('.')) { isInteger = false; while (getNextCharAsDigit()){/*empty*/} while (getNextCharAsDigit()){/*empty*/} while (getNextCharAsDigit()){/*empty*/}
if (getNextCharAsDigit()) { //-------------potential octal----------------- consumeDigits(10);
if (getNextCharAsDigit()) { //-------------potential octal----------------- consumeDigits(10);
if (getNextCharAsDigit()) { //-------------potential octal----------------- consumeDigits(10);
if (getNextCharAsDigit()) { //-------------potential octal----------------- consumeDigits(10);
if (getNextCharAsDigit()) { //-------------potential octal----------------- consumeDigits(10);
if (getNextCharAsDigit()) { //-------------potential octal----------------- consumeDigits(10);
if (getNextCharAsDigit()) { //-------------potential octal----------------- consumeDigits(10);
if (getNextCharAsDigit()) { //-------------potential octal----------------- consumeDigits(10);
if (getNextCharAsDigit()) { //-------------potential octal----------------- consumeDigits(10);