org.codehaus.jackson.node.ArrayNode._add()方法的使用及代码示例

x33g5p2x  于11个月前 转载在 其他  
字(4.1k)|赞(0)|评价(0)|浏览(24)

本文整理了Java中org.codehaus.jackson.node.ArrayNode._add()方法的一些代码示例,展示了ArrayNode._add()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ArrayNode._add()方法的具体详情如下:
包路径:org.codehaus.jackson.node.ArrayNode
类名称:ArrayNode
方法名:_add

ArrayNode._add介绍

暂无

代码示例

代码示例来源:origin: org.codehaus.jackson/jackson-mapper-asl

public void add(JsonNode value)
{
  if (value == null) { // let's not store 'raw' nulls but nodes
    value = nullNode();
  }
  _add(value);
}

代码示例来源:origin: org.codehaus.jackson/jackson-mapper-asl

/**
 * Method that will construct an ObjectNode and add it at the end
 * of this array node.
 *
 * @return Newly constructed ObjectNode
 */
public ObjectNode addObject()
{
  ObjectNode n  = objectNode();
  _add(n);
  return n;
}

代码示例来源:origin: org.codehaus.jackson/jackson-mapper-asl

/**
 * Method that will construct an ArrayNode and add it as a
 * field of this ObjectNode, replacing old value, if any.
 *
 * @return Newly constructed ArrayNode
 */
public ArrayNode addArray()
{
  ArrayNode n  = arrayNode();
  _add(n);
  return n;
}

代码示例来源:origin: org.codehaus.jackson/jackson-mapper-asl

/**
 * Method for setting value of a field to specified numeric value.
 */
public void add(int v) { _add(numberNode(v)); }

代码示例来源:origin: org.codehaus.jackson/jackson-mapper-asl

/**
 * Method for setting value of a field to specified numeric value.
 */
public void add(float v) { _add(numberNode(v)); }

代码示例来源:origin: org.codehaus.jackson/jackson-mapper-asl

/**
 * Method for setting value of a field to specified numeric value.
 */
public void add(long v) { _add(numberNode(v)); }

代码示例来源:origin: org.codehaus.jackson/jackson-mapper-asl

public void addNull()
{
  _add(nullNode());
}

代码示例来源:origin: org.codehaus.jackson/jackson-mapper-asl

/**
 * Method for setting value of a field to specified numeric value.
 */
public void add(double v) { _add(numberNode(v)); }

代码示例来源:origin: org.codehaus.jackson/jackson-mapper-asl

/**
 * Method for setting value of a field to specified String value.
 */
public void add(boolean v) { _add(booleanNode(v)); }

代码示例来源:origin: org.codehaus.jackson/jackson-mapper-asl

/**
 * Alternative method that we need to avoid bumping into NPE issues
 * with auto-unboxing.
 * 
 * @since 1.9
 */
public void add(Long value) {
  if (value == null) {
    addNull();
  } else {
    _add(numberNode(value.longValue()));
  }
}

代码示例来源:origin: org.codehaus.jackson/jackson-mapper-asl

/**
 * Alternative method that we need to avoid bumping into NPE issues
 * with auto-unboxing.
 * 
 * @since 1.9
 */
public void add(Boolean value) {
  if (value == null) {
    addNull();
  } else {
    _add(booleanNode(value.booleanValue()));
  }
}

代码示例来源:origin: org.codehaus.jackson/jackson-mapper-asl

/**
 * Alternative method that we need to avoid bumping into NPE issues
 * with auto-unboxing.
 * 
 * @since 1.9
 */
public void add(Integer value) {
  if (value == null) {
    addNull();
  } else {
    _add(numberNode(value.intValue()));
  }
}

代码示例来源:origin: org.codehaus.jackson/jackson-mapper-asl

/**
 * Alternative method that we need to avoid bumping into NPE issues
 * with auto-unboxing.
 * 
 * @since 1.9
 */
public void add(Float value) {
  if (value == null) {
    addNull();
  } else {
    _add(numberNode(value.floatValue()));
  }
}

代码示例来源:origin: org.codehaus.jackson/jackson-mapper-asl

/**
 * Alternative method that we need to avoid bumping into NPE issues
 * with auto-unboxing.
 * 
 * @since 1.9
 */
public void add(Double value) {
  if (value == null) {
    addNull();
  } else {
    _add(numberNode(value.doubleValue()));
  }
}

代码示例来源:origin: org.codehaus.jackson/jackson-mapper-asl

/**
 * Method for setting value of a field to specified String value.
 */
public void add(String v) {
  if (v == null) {
    addNull();
  } else {
    _add(textNode(v));
  }
}

代码示例来源:origin: org.codehaus.jackson/jackson-mapper-asl

/**
 * Method for setting value of a field to specified binary value
 */
public void add(byte[] v) {
  if (v == null) {
    addNull();
  } else {
    _add(binaryNode(v));
  }
}

代码示例来源:origin: org.codehaus.jackson/jackson-mapper-asl

/**
 * Method that will construct a POJONode and add it at the end
 * of this array node.
 */
public void addPOJO(Object value)
{
  if (value == null) {
    addNull();
  } else {
    _add(POJONode(value));
  }
}

代码示例来源:origin: org.codehaus.jackson/jackson-mapper-asl

/**
 * Method for setting value of a field to specified numeric value.
 */
public void add(BigDecimal v) {
  if (v == null) {
    addNull();
  } else {
    _add(numberNode(v));
  }
}

代码示例来源:origin: camunda/camunda-bpm-platform

public void add(JsonNode value)
{
  if (value == null) { // let's not store 'raw' nulls but nodes
    value = nullNode();
  }
  _add(value);
}

代码示例来源:origin: camunda/camunda-bpm-platform

/**
 * Method that will construct an ObjectNode and add it at the end
 * of this array node.
 *
 * @return Newly constructed ObjectNode
 */
public ObjectNode addObject()
{
  ObjectNode n  = objectNode();
  _add(n);
  return n;
}

相关文章