com.fasterxml.jackson.databind.JsonNode._at()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(3.1k)|赞(0)|评价(0)|浏览(176)

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

JsonNode._at介绍

暂无

代码示例

代码示例来源:origin: redisson/redisson

/**
 * Method for locating node specified by given JSON pointer instances.
 * Method will never return null; if no matching node exists, 
 *   will return a node for which {@link #isMissingNode()} returns true.
 * 
 * @return Node that matches given JSON Pointer: if no match exists,
 *   will return a node for which {@link #isMissingNode()} returns true.
 * 
 * @since 2.3
 */
@Override
public final JsonNode at(JsonPointer ptr)
{
  // Basically: value nodes only match if we have "empty" path left
  if (ptr.matches()) {
    return this;
  }
  JsonNode n = _at(ptr);
  if (n == null) {
    return MissingNode.getInstance();
  }
  return n.at(ptr.tail());
}

代码示例来源:origin: Nextdoor/bender

/**
 * Method for locating node specified by given JSON pointer instances.
 * Method will never return null; if no matching node exists, 
 *   will return a node for which {@link #isMissingNode()} returns true.
 * 
 * @return Node that matches given JSON Pointer: if no match exists,
 *   will return a node for which {@link #isMissingNode()} returns true.
 * 
 * @since 2.3
 */
@Override
public final JsonNode at(JsonPointer ptr)
{
  // Basically: value nodes only match if we have "empty" path left
  if (ptr.matches()) {
    return this;
  }
  JsonNode n = _at(ptr);
  if (n == null) {
    return MissingNode.getInstance();
  }
  return n.at(ptr.tail());
}

代码示例来源:origin: hstaudacher/osgi-jax-rs-connector

/**
 * Method for locating node specified by given JSON pointer instances.
 * Method will never return null; if no matching node exists, 
 *   will return a node for which {@link #isMissingNode()} returns true.
 * 
 * @return Node that matches given JSON Pointer: if no match exists,
 *   will return a node for which {@link #isMissingNode()} returns true.
 * 
 * @since 2.3
 */
@Override
public final JsonNode at(JsonPointer ptr)
{
  // Basically: value nodes only match if we have "empty" path left
  if (ptr.matches()) {
    return this;
  }
  JsonNode n = _at(ptr);
  if (n == null) {
    return MissingNode.getInstance();
  }
  return n.at(ptr.tail());
}

代码示例来源:origin: com.eclipsesource.jaxrs/jersey-all

/**
 * Method for locating node specified by given JSON pointer instances.
 * Method will never return null; if no matching node exists, 
 *   will return a node for which {@link #isMissingNode()} returns true.
 * 
 * @return Node that matches given JSON Pointer: if no match exists,
 *   will return a node for which {@link #isMissingNode()} returns true.
 * 
 * @since 2.3
 */
@Override
public final JsonNode at(JsonPointer ptr)
{
  // Basically: value nodes only match if we have "empty" path left
  if (ptr.matches()) {
    return this;
  }
  JsonNode n = _at(ptr);
  if (n == null) {
    return MissingNode.getInstance();
  }
  return n.at(ptr.tail());
}

代码示例来源:origin: com.jwebmp.jackson.core/jackson-databind

/**
 * Method for locating node specified by given JSON pointer instances.
 * Method will never return null; if no matching node exists, 
 *   will return a node for which {@link #isMissingNode()} returns true.
 * 
 * @return Node that matches given JSON Pointer: if no match exists,
 *   will return a node for which {@link #isMissingNode()} returns true.
 * 
 * @since 2.3
 */
@Override
public final JsonNode at(JsonPointer ptr)
{
  // Basically: value nodes only match if we have "empty" path left
  if (ptr.matches()) {
    return this;
  }
  JsonNode n = _at(ptr);
  if (n == null) {
    return MissingNode.getInstance();
  }
  return n.at(ptr.tail());
}

相关文章