留胡子的电影票 · python触发点击事件-掘金· 11 月前 · |
坚韧的丝瓜 · python ...· 1 年前 · |
豪气的移动电源 · Ubuntu安装字体and切换默认字体-腾讯 ...· 1 年前 · |
要出家的吐司 · foreign keys - ...· 1 年前 · |
眼睛小的盒饭
1 年前 |
TreeNode
,
JsonSerializable
,
JsonNodeCreator
,
java.io.Serializable
,
java.lang.Iterable<
JsonNode
>
public class ArrayNode extends ContainerNode<ArrayNode> implements java.io.Serializable
final
temporarily for Jackson 2.2.
JsonSerializable.Base
add
(java.lang.Boolean v)
ArrayNode
add
(java.lang.Double v)
ArrayNode
add
(java.lang.Float v)
ArrayNode
add
(java.lang.Integer v)
ArrayNode
add
(java.lang.Long v)
ArrayNode
add
(java.lang.Short v)
ArrayNode
add
(java.lang.String v)
ArrayNode
add
(java.math.BigDecimal v)
ArrayNode
add
(java.math.BigInteger v)
ArrayNode
addAll
(
ArrayNode
other)
ArrayNode
addAll
(java.util.Collection<? extends
JsonNode
> nodes)
ArrayNode
addArray
()
ArrayNode
addNull
()
ObjectNode
addObject
()
ArrayNode
addPOJO
(java.lang.Object pojo)
ArrayNode
addRawValue
(
RawValue
raw)
JsonToken
asToken
()
ArrayNode
deepCopy
()
java.util.Iterator<
JsonNode
>
elements
()
boolean
equals
(java.lang.Object o)
boolean
equals
(java.util.Comparator<
JsonNode
> comparator,
JsonNode
o)
Comparator
object.
ObjectNode
findParent
(java.lang.String fieldName)
java.util.List<
JsonNode
>
findParents
(java.lang.String fieldName,
java.util.List<
JsonNode
> foundSoFar)
JsonNode
findValue
(java.lang.String fieldName)
java.util.List<
JsonNode
>
findValues
(java.lang.String fieldName,
java.util.List<
JsonNode
> foundSoFar)
java.util.List<java.lang.String>
findValuesAsText
(java.lang.String fieldName,
java.util.List<java.lang.String> foundSoFar)
JsonNode
get
(int index)
JsonNode
get
(java.lang.String fieldName)
JsonNodeType
getNodeType
()
hashCode
()
ArrayNode
insert
(int index,
boolean v)
ArrayNode
insert
(int index,
byte[] v)
ArrayNode
insert
(int index,
double v)
ArrayNode
insert
(int index,
float v)
ArrayNode
insert
(int index,
int v)
ArrayNode
insert
(int index,
long v)
ArrayNode
insert
(int index,
short v)
ArrayNode
insert
(int index,
JsonNode
value)
ArrayNode
insert
(int index,
java.lang.Boolean value)
ArrayNode
insert
(int index,
java.lang.Double v)
ArrayNode
insert
(int index,
java.lang.Float v)
ArrayNode
insert
(int index,
java.lang.Integer v)
ArrayNode
insert
(int index,
java.lang.Long v)
ArrayNode
insert
(int index,
java.lang.Short value)
ArrayNode
insert
(int index,
java.lang.String v)
ArrayNode
insert
(int index,
java.math.BigDecimal v)
ArrayNode
insert
(int index,
java.math.BigInteger v)
ArrayNode
insertArray
(int index)
ArrayNode
insertNull
(int index)
ObjectNode
insertObject
(int index)
ObjectNode
, appending it at the end
of this array, and returning the
newly created node
(note: NOT 'this' array)
ArrayNode
insertPOJO
(int index,
java.lang.Object pojo)
ArrayNode
insertRawValue
(int index,
RawValue
raw)
boolean
isArray
()
boolean
isEmpty
()
boolean
isEmpty
(
SerializerProvider
serializers)
JsonNode
path
(int index)
JsonNode.get(int)
, except
that instead of returning null if no such element exists (due
to index being out of range, or this node not being an array),
a "missing node" (node that returns true for
JsonNode.isMissingNode()
) will be returned.
JsonNode
path
(java.lang.String fieldName)
JsonNode.get(String)
, except
that instead of returning null if no such value exists (due
to this node not being an object, or object not having value
for the specified field),
a "missing node" (node that returns true for
JsonNode.isMissingNode()
) will be returned.
JsonNode
remove
(int index)
ArrayNode
removeAll
()
JsonNode
required
(int index)
ArrayNode
(that is, represents
JSON Array value) and has value for specified
index
(but note that value may be explicit JSON null value).
serialize
(
JsonGenerator
f,
SerializerProvider
provider)
serializeWithType
(
JsonGenerator
g,
SerializerProvider
provider,
TypeSerializer
typeSer)
ArrayNode
set
(int index,
boolean v)
ArrayNode
set
(int index,
byte[] v)
ArrayNode
set
(int index,
double v)
ArrayNode
set
(int index,
float v)
ArrayNode
set
(int index,
int v)
ArrayNode
set
(int index,
long v)
ArrayNode
set
(int index,
short v)
JsonNode
set
(int index,
JsonNode
value)
ArrayNode
set
(int index,
java.lang.Boolean v)
ArrayNode
set
(int index,
java.lang.Double v)
ArrayNode
set
(int index,
java.lang.Float v)
ArrayNode
set
(int index,
java.lang.Integer v)
ArrayNode
set
(int index,
java.lang.Long v)
ArrayNode
set
(int index,
java.lang.Short v)
ArrayNode
set
(int index,
java.lang.String v)
ArrayNode
set
(int index,
java.math.BigDecimal v)
ArrayNode
set
(int index,
java.math.BigInteger v)
ArrayNode
setNull
(int index)
ArrayNode
setPOJO
(int index,
java.lang.Object pojo)
ArrayNode
setRawValue
(int index,
RawValue
raw)
size
()
arrayNode
,
arrayNode
,
asText
,
binaryNode
,
binaryNode
,
booleanNode
,
missingNode
,
nullNode
,
numberNode
,
numberNode
,
numberNode
,
numberNode
,
numberNode
,
numberNode
,
numberNode
,
numberNode
,
numberNode
,
numberNode
,
numberNode
,
numberNode
,
numberNode
,
numberNode
,
objectNode
,
pojoNode
,
rawValueNode
,
textNode
asBoolean
,
asBoolean
,
asDouble
,
asDouble
,
asInt
,
asInt
,
asLong
,
asLong
,
asText
,
at
,
at
,
bigIntegerValue
,
binaryValue
,
booleanValue
,
canConvertToExactIntegral
,
canConvertToInt
,
canConvertToLong
,
decimalValue
,
doubleValue
,
fieldNames
,
fields
,
findParents
,
findValues
,
findValuesAsText
,
floatValue
,
has
,
has
,
hasNonNull
,
hasNonNull
,
intValue
,
isBigDecimal
,
isBigInteger
,
isBinary
,
isBoolean
,
isContainerNode
,
isDouble
,
isFloat
,
isFloatingPointNumber
,
isInt
,
isIntegralNumber
,
isLong
,
isMissingNode
,
isNull
,
isNumber
,
isObject
,
isPojo
,
isShort
,
isTextual
,
isValueNode
,
iterator
,
longValue
,
numberValue
,
require
,
requiredAt
,
requiredAt
,
requireNonNull
,
shortValue
,
textValue
,
with
,
withArray
public ArrayNode deepCopy()
JsonNode
deepCopy
in class
JsonNode
public boolean isEmpty(SerializerProvider serializers)
JsonSerializable.Base
isEmpty
in class
JsonSerializable.Base
public JsonNodeType getNodeType()
JsonNode
getNodeType
in class
JsonNode
JsonNodeType
enum value
public boolean isArray()
TreeNode
TreeNode.isContainerNode()
must also return true.
isArray
in interface
TreeNode
isArray
in class
JsonNode
True
for Array nodes,
false
for everything else
public JsonToken asToken()
BaseJsonNode
JsonToken
that equivalent
stream event would produce (for most nodes there is just
one token but for structured/container types multiple)
asToken
in interface
TreeNode
asToken
in class
ContainerNode
<
ArrayNode
>
JsonToken
that is most closely associated with the node type
public int size()
TreeNode
size
in interface
TreeNode
size
in class
ContainerNode
<
ArrayNode
>
public boolean isEmpty()
JsonNode
isEmpty
in class
JsonNode
public java.util.Iterator<JsonNode> elements()
JsonNode
elements
in class
JsonNode
public JsonNode get(int index)
JsonNode
node.size()
, null is returned; no exception is
thrown for any index.
NOTE: if the element value has been explicitly set as
null
(which is different from removal!),
a
NullNode
will be returned,
not null.
get
in interface
TreeNode
get
in class
ContainerNode
<
ArrayNode
>
index
- Index of the Array node element to access
public JsonNode get(java.lang.String fieldName)
JsonNode
null
(which is different from removal!),
a
NullNode
will be returned,
not null.
get
in interface
TreeNode
get
in class
ContainerNode
<
ArrayNode
>
fieldName
- Name of the field (of Object node) to access
public JsonNode path(java.lang.String fieldName)
JsonNode
JsonNode.get(String)
, except
that instead of returning null if no such value exists (due
to this node not being an object, or object not having value
for the specified field),
a "missing node" (node that returns true for
JsonNode.isMissingNode()
) will be returned. This allows for
convenient and safe chained access via path calls.
path
in interface
TreeNode
path
in class
JsonNode
fieldName
- Name of the field (of Object node) to access
public JsonNode path(int index)
JsonNode
JsonNode.get(int)
, except
that instead of returning null if no such element exists (due
to index being out of range, or this node not being an array),
a "missing node" (node that returns true for
JsonNode.isMissingNode()
) will be returned. This allows for
convenient and safe chained access via path calls.
path
in interface
TreeNode
path
in class
JsonNode
index
- Index of the Array node element to access
public JsonNode required(int index)
JsonNode
ArrayNode
(that is, represents
JSON Array value) and has value for specified
index
(but note that value may be explicit JSON null value).
If this node is Array Node and has value for specified index, value at index
is returned; otherwise
IllegalArgumentException
is thrown.
required
in class
BaseJsonNode
index
- Index of the value of this Array node to access
public boolean equals(java.util.Comparator<JsonNode> comparator, JsonNode o)
JsonNode
Comparator
object. Nodes will handle traversal of structured
types (arrays, objects), but defer to comparator for scalar value
comparisons. If a "natural"
Comparator
is passed -- one that
simply calls
equals()
on one of arguments, passing the other
-- implementation is the same as directly calling
equals()
on node.
Default implementation simply delegates to passed in
comparator
,
with
this
as the first argument, and
other
as
the second argument.
equals
in class
JsonNode
comparator
- Object called to compare two scalar
JsonNode
instances, and return either 0 (are equals) or non-zero (not equal)
public void serialize(JsonGenerator f, SerializerProvider provider) throws java.io.IOException
BaseJsonNode
serialize
in interface
JsonSerializable
serialize
in class
BaseJsonNode
java.io.IOException
public void serializeWithType(JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer) throws java.io.IOException
BaseJsonNode
serializeWithType
in interface
JsonSerializable
serializeWithType
in class
BaseJsonNode
java.io.IOException
public JsonNode findValue(java.lang.String fieldName)
JsonNode
findValue
in class
JsonNode
fieldName
- Name of field to look for
public java.util.List<JsonNode> findValues(java.lang.String fieldName, java.util.List<JsonNode> foundSoFar)
findValues
in class
JsonNode
public java.util.List<java.lang.String> findValuesAsText(java.lang.String fieldName, java.util.List<java.lang.String> foundSoFar)
findValuesAsText
in class
JsonNode
public ObjectNode findParent(java.lang.String fieldName)
JsonNode
findParent
in class
JsonNode
fieldName
- Name of field to look for
public java.util.List<JsonNode> findParents(java.lang.String fieldName, java.util.List<JsonNode> foundSoFar)
findParents
in class
JsonNode
public JsonNode set(int index, JsonNode value)
value
- to set field to; if null, will be converted
to a
NullNode
first (to remove field entry, call
remove(int)
instead)
public ArrayNode add(JsonNode value)
public ArrayNode addAll(ArrayNode other)
other
- Array to add contents from
public ArrayNode addAll(java.util.Collection<? extends JsonNode> nodes)
nodes
- Nodes to add
public ArrayNode insert(int index, JsonNode value)
>= size()
, appended at the end, and otherwise
inserted before existing element in specified index.
No exceptions are thrown for any index.
public JsonNode remove(int index)
public ArrayNode removeAll()
removeAll
in class
ContainerNode
<
ArrayNode
>
public ArrayNode addArray()
public ObjectNode addObject()
public ArrayNode addPOJO(java.lang.Object pojo)
public ArrayNode addNull()
public ArrayNode add(short v)
public ArrayNode add(java.lang.Short v)
public ArrayNode add(int v)
public ArrayNode add(java.lang.Integer v)
public ArrayNode add(long v)
public ArrayNode add(java.lang.Long v)
public ArrayNode add(float v)
public ArrayNode add(java.lang.Float v)
public ArrayNode add(double v)
public ArrayNode add(java.lang.Double v)
public ArrayNode add(java.math.BigDecimal v)
public ArrayNode add(java.math.BigInteger v)
public ArrayNode add(java.lang.String v)
public ArrayNode add(boolean v)
public ArrayNode add(java.lang.Boolean v)
public ArrayNode add(byte[] v)
public ArrayNode insertArray(int index)
ArrayNode
(note! NOT `this` ArrayNode)
public ObjectNode insertObject(int index)
ObjectNode
, appending it at the end
of this array, and returning the
newly created node
(note: NOT 'this' array)
ObjectNode
(note! NOT `this` ArrayNode)
public ArrayNode insertNull(int index)
public ArrayNode insertPOJO(int index, java.lang.Object pojo)
public ArrayNode insert(int index, short v)
public ArrayNode insert(int index, java.lang.Short value)
public ArrayNode insert(int index, int v)
public ArrayNode insert(int index, java.lang.Integer v)
public ArrayNode insert(int index, long v)
public ArrayNode insert(int index, java.lang.Long v)
public ArrayNode insert(int index, float v)
public ArrayNode insert(int index, java.lang.Float v)
public ArrayNode insert(int index, double v)
public ArrayNode insert(int index, java.lang.Double v)
public ArrayNode insert(int index, java.math.BigDecimal v)
public ArrayNode insert(int index, java.math.BigInteger v)
public ArrayNode insert(int index, java.lang.String v)
public ArrayNode insert(int index, java.lang.Boolean value)
public ArrayNode insert(int index, byte[] v)
public ArrayNode set(int index, java.lang.Short v)
public ArrayNode set(int index, java.lang.Integer v)
public ArrayNode set(int index, float v)
public ArrayNode set(int index, java.lang.Float v)
public ArrayNode set(int index, double v)
public ArrayNode set(int index, java.lang.Double v)
public ArrayNode set(int index, java.math.BigDecimal v)
public ArrayNode set(int index, java.math.BigInteger v)
public ArrayNode set(int index, java.lang.String v)
public ArrayNode set(int index, boolean v)
public ArrayNode set(int index, java.lang.Boolean v)
public ArrayNode set(int index, byte[] v)
public boolean equals(java.lang.Object o)
JsonNode
Object
.
equals
in class
JsonNode
留胡子的电影票 · python触发点击事件-掘金 11 月前 |