package com.fasterxml.jackson.databind;
import com.fasterxml.jackson.core.JsonPointer;
import com.fasterxml.jackson.core.TreeNode;
import com.fasterxml.jackson.databind.JsonSerializable.Base;
import com.fasterxml.jackson.databind.node.JsonNodeType;
import com.fasterxml.jackson.databind.node.MissingNode;
import com.fasterxml.jackson.databind.util.ClassUtil;
import java.io.IOException;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import java.util.Map.Entry;
public abstract class JsonNode extends Base implements TreeNode, Iterable<JsonNode> {
protected JsonNode() {
}
public abstract <T extends JsonNode> T deepCopy();
public int size() {
return 0;
}
public final boolean isValueNode() {
switch(this.getNodeType()) {
case ARRAY:
case OBJECT:
case MISSING:
return false;
default:
return true;
}
}
public final boolean isContainerNode() {
JsonNodeType type = this.getNodeType();
return type == JsonNodeType.OBJECT || type == JsonNodeType.ARRAY;
}
public final boolean isMissingNode() {
return this.getNodeType() == JsonNodeType.MISSING;
}
public final boolean isArray() {
return this.getNodeType() == JsonNodeType.ARRAY;
}
public final boolean isObject() {
return this.getNodeType() == JsonNodeType.OBJECT;
}
JsonNode类
最新推荐文章于 2024-07-17 09:49:41 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)