what-the-bank/sources/com/airbnb/lottie/parser/moshi/JsonScope.java

37 lines
1.1 KiB
Java

package com.airbnb.lottie.parser.moshi;
/* loaded from: classes.dex */
final class JsonScope {
static final int CLOSED = 8;
static final int DANGLING_NAME = 4;
static final int EMPTY_ARRAY = 1;
static final int EMPTY_DOCUMENT = 6;
static final int EMPTY_OBJECT = 3;
static final int NONEMPTY_ARRAY = 2;
static final int NONEMPTY_DOCUMENT = 7;
static final int NONEMPTY_OBJECT = 5;
private JsonScope() {
}
/* JADX INFO: Access modifiers changed from: package-private */
public static String getPath(int i, int[] iArr, String[] strArr, int[] iArr2) {
StringBuilder sb = new StringBuilder("$");
for (int i2 = 0; i2 < i; i2++) {
int i3 = iArr[i2];
if (i3 == 1 || i3 == 2) {
sb.append('[');
sb.append(iArr2[i2]);
sb.append(']');
} else if (i3 == 3 || i3 == 4 || i3 == 5) {
sb.append('.');
String str = strArr[i2];
if (str != null) {
sb.append(str);
}
}
}
return sb.toString();
}
}