下面列出了android.support.v4.view.MotionEventCompat#AXIS_GENERIC_13 ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
private boolean a(char c) {
switch (c) {
case '\t':
case '\n':
case '\f':
case '\r':
case ' ':
case MotionEventCompat.AXIS_GENERIC_13 /*44*/:
case ':':
case '[':
case ']':
case '{':
case '}':
break;
case '#':
case MotionEventCompat.AXIS_GENERIC_16 /*47*/:
case ';':
case '=':
case '\\':
v();
break;
default:
return true;
}
return false;
}
private JsonToken nextInArray(boolean firstElement) throws IOException {
JsonToken jsonToken;
if (firstElement) {
this.stack[this.stackSize - 1] = JsonScope.NONEMPTY_ARRAY;
} else {
switch (nextNonWhitespace(true)) {
case MotionEventCompat.AXIS_GENERIC_13 /*44*/:
break;
case 59:
checkLenient();
break;
case 93:
this.stackSize--;
jsonToken = JsonToken.END_ARRAY;
this.token = jsonToken;
return jsonToken;
default:
throw syntaxError("Unterminated array");
}
}
switch (nextNonWhitespace(true)) {
case MotionEventCompat.AXIS_GENERIC_13 /*44*/:
case 59:
break;
case 93:
if (firstElement) {
this.stackSize--;
jsonToken = JsonToken.END_ARRAY;
this.token = jsonToken;
return jsonToken;
}
break;
default:
this.pos--;
return nextValue();
}
checkLenient();
this.pos--;
this.value = "null";
jsonToken = JsonToken.NULL;
this.token = jsonToken;
return jsonToken;
}
private JsonToken nextInObject(boolean firstElement) throws IOException {
JsonToken jsonToken;
if (firstElement) {
switch (nextNonWhitespace(true)) {
case 125:
this.stackSize--;
jsonToken = JsonToken.END_OBJECT;
this.token = jsonToken;
return jsonToken;
default:
this.pos--;
break;
}
}
switch (nextNonWhitespace(true)) {
case MotionEventCompat.AXIS_GENERIC_13 /*44*/:
case 59:
break;
case 125:
this.stackSize--;
jsonToken = JsonToken.END_OBJECT;
this.token = jsonToken;
return jsonToken;
default:
throw syntaxError("Unterminated object");
}
int quote = nextNonWhitespace(true);
switch (quote) {
case 34:
break;
case 39:
checkLenient();
break;
default:
checkLenient();
this.pos--;
this.name = nextLiteral(false);
if (this.name.length() == 0) {
throw syntaxError("Expected name");
}
break;
}
this.name = nextString((char) quote);
this.stack[this.stackSize - 1] = JsonScope.DANGLING_NAME;
jsonToken = JsonToken.NAME;
this.token = jsonToken;
return jsonToken;
}
private String nextLiteral(boolean assignOffsetsOnly) throws IOException {
StringBuilder builder = null;
this.valuePos = -1;
this.valueLength = 0;
int i = 0;
while (true) {
String result;
if (this.pos + i < this.limit) {
switch (this.buffer[this.pos + i]) {
case '\t':
case '\n':
case '\f':
case '\r':
case ' ':
case MotionEventCompat.AXIS_GENERIC_13 /*44*/:
case ':':
case '[':
case ']':
case '{':
case '}':
break;
case '#':
case MotionEventCompat.AXIS_GENERIC_16 /*47*/:
case ';':
case '=':
case '\\':
checkLenient();
break;
default:
i++;
continue;
}
} else if (i >= this.buffer.length) {
if (builder == null) {
builder = new StringBuilder();
}
builder.append(this.buffer, this.pos, i);
this.valueLength += i;
this.pos += i;
i = 0;
if (fillBuffer(1)) {
}
} else if (!fillBuffer(i + 1)) {
this.buffer[this.limit] = '\u0000';
}
if (assignOffsetsOnly && builder == null) {
this.valuePos = this.pos;
result = null;
} else if (this.skipping) {
result = "skipped!";
} else if (builder == null) {
result = this.stringPool.get(this.buffer, this.pos, i);
} else {
builder.append(this.buffer, this.pos, i);
result = builder.toString();
}
this.valueLength += i;
this.pos += i;
return result;
}
}
private String t() {
StringBuilder stringBuilder = null;
int i = 0;
while (true) {
String str;
if (this.e + i < this.f) {
switch (this.d[this.e + i]) {
case '\t':
case '\n':
case '\f':
case '\r':
case ' ':
case MotionEventCompat.AXIS_GENERIC_13 /*44*/:
case ':':
case '[':
case ']':
case '{':
case '}':
break;
case '#':
case MotionEventCompat.AXIS_GENERIC_16 /*47*/:
case ';':
case '=':
case '\\':
v();
break;
default:
i++;
continue;
}
} else if (i >= this.d.length) {
if (stringBuilder == null) {
stringBuilder = new StringBuilder();
}
stringBuilder.append(this.d, this.e, i);
this.e = i + this.e;
i = !b(1) ? 0 : 0;
} else if (b(i + 1)) {
}
if (stringBuilder == null) {
str = new String(this.d, this.e, i);
} else {
stringBuilder.append(this.d, this.e, i);
str = stringBuilder.toString();
}
this.e = i + this.e;
return str;
}
}
public void n() {
int i = 0;
do {
int i2 = this.i;
if (i2 == 0) {
i2 = o();
}
if (i2 == 3) {
a(1);
i++;
} else if (i2 == 1) {
a(3);
i++;
} else if (i2 == 4) {
this.n--;
i--;
} else if (i2 == 2) {
this.n--;
i--;
} else if (i2 == 14 || i2 == 10) {
do {
i2 = 0;
while (this.e + i2 < this.f) {
switch (this.d[this.e + i2]) {
case '\t':
case '\n':
case '\f':
case '\r':
case ' ':
case MotionEventCompat.AXIS_GENERIC_13 /*44*/:
case ':':
case '[':
case ']':
case '{':
case '}':
break;
case '#':
case MotionEventCompat.AXIS_GENERIC_16 /*47*/:
case ';':
case '=':
case '\\':
v();
break;
default:
i2++;
}
this.e = i2 + this.e;
}
this.e = i2 + this.e;
} while (b(1));
} else if (i2 == 8 || i2 == 12) {
c('\'');
} else if (i2 == 9 || i2 == 13) {
c('\"');
} else if (i2 == 16) {
this.e += this.k;
}
this.i = 0;
} while (i != 0);
int[] iArr = this.p;
int i3 = this.n - 1;
iArr[i3] = iArr[i3] + 1;
this.o[this.n - 1] = z[2];
}