mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-20 21:03:20 +01:00
44 lines
1.1 KiB
Java
44 lines
1.1 KiB
Java
package org.codehaus.jackson;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes11.dex */
|
|
public abstract class JsonStreamContext {
|
|
protected static final int TYPE_ARRAY = 1;
|
|
protected static final int TYPE_OBJECT = 2;
|
|
protected static final int TYPE_ROOT = 0;
|
|
protected int _index;
|
|
protected int _type;
|
|
|
|
public final int getCurrentIndex() {
|
|
int i = this._index;
|
|
if (i < 0) {
|
|
return 0;
|
|
}
|
|
return i;
|
|
}
|
|
|
|
public abstract String getCurrentName();
|
|
|
|
public final int getEntryCount() {
|
|
return this._index + 1;
|
|
}
|
|
|
|
public abstract JsonStreamContext getParent();
|
|
|
|
public final String getTypeDesc() {
|
|
int i = this._type;
|
|
return i != 0 ? i != 1 ? i != 2 ? "?" : "OBJECT" : "ARRAY" : "ROOT";
|
|
}
|
|
|
|
public final boolean inArray() {
|
|
return this._type == 1;
|
|
}
|
|
|
|
public final boolean inObject() {
|
|
return this._type == 2;
|
|
}
|
|
|
|
public final boolean inRoot() {
|
|
return this._type == 0;
|
|
}
|
|
}
|