external.com.alibaba.fastjson.serializer.SerialContext 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.serializer;
public class SerialContext {
public final SerialContext parent;
public final Object object;
public final Object fieldName;
public final int features;
public SerialContext(SerialContext parent, Object object, Object fieldName, int features){
this.parent = parent;
this.object = object;
this.fieldName = fieldName;
this.features = features;
}
public String toString() {
if (parent == null) {
return "$";
} else {
if (fieldName instanceof Integer) {
return parent.toString() + "[" + fieldName + "]";
} else {
return parent.toString() + "." + fieldName;
}
}
}
}