external.com.alibaba.fastjson.parser.ParseContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sekiro-api Show documentation
Show all versions of sekiro-api Show documentation
ratel api,used for developer on ratel system,an extension for xposed framewrok,ratel api compatable with original xposed framework
package external.com.alibaba.fastjson.parser;
import java.lang.reflect.Type;
public class ParseContext {
public Object object;
public final ParseContext parent;
public final Object fieldName;
public Type type;
private transient String path;
public ParseContext(ParseContext parent, Object object, Object fieldName){
this.parent = parent;
this.object = object;
this.fieldName = fieldName;
}
public String toString() {
if (path == null) {
if (parent == null) {
path = "$";
} else {
if (fieldName instanceof Integer) {
path = parent.toString() + "[" + fieldName + "]";
} else {
path = parent.toString() + "." + fieldName;
}
}
}
return path;
}
}