mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-25 16:42:30 -06:00
31 lines
897 B
Java
31 lines
897 B
Java
package com.alibaba.fastjson.parser;
|
|
|
|
import java.lang.reflect.Type;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class ParseContext {
|
|
public final Object fieldName;
|
|
public Object object;
|
|
public final ParseContext parent;
|
|
private transient String path;
|
|
public Type type;
|
|
|
|
public ParseContext(ParseContext parseContext, Object obj, Object obj2) {
|
|
this.parent = parseContext;
|
|
this.object = obj;
|
|
this.fieldName = obj2;
|
|
}
|
|
|
|
public String toString() {
|
|
if (this.path == null) {
|
|
if (this.parent == null) {
|
|
this.path = "$";
|
|
} else if (this.fieldName instanceof Integer) {
|
|
this.path = this.parent.toString() + "[" + this.fieldName + "]";
|
|
} else {
|
|
this.path = this.parent.toString() + "." + this.fieldName;
|
|
}
|
|
}
|
|
return this.path;
|
|
}
|
|
}
|