/** * Factory method for constructing a {@link JsonPointer} that points to the current * location within the stream that this context is for, excluding information about * "root context" (only relevant for multi-root-value cases) * * @since 2.9 */ public JsonPointer pathAsPointer() { return JsonPointer.forPath(this, false); }
/** * Factory method for constructing a {@link JsonPointer} that points to the current * location within the stream that this context is for, optionally including * "root value index" * * @param includeRoot Whether root-value offset is included as the first segment or not; * * @since 2.9 */ public JsonPointer pathAsPointer(boolean includeRoot) { return JsonPointer.forPath(this, includeRoot); }
/** * Factory method for constructing a {@link JsonPointer} that points to the current * location within the stream that this context is for, optionally including * "root value index" * * @param includeRoot Whether root-value offset is included as the first segment or not */ public JsonPointer pathAsPointer(boolean includeRoot) { return JsonPointer.forPath(this, includeRoot); }
/** * Factory method for constructing a {@link JsonPointer} that points to the current * location within the stream that this context is for, excluding information about * "root context" (only relevant for multi-root-value cases) */ public JsonPointer pathAsPointer() { return JsonPointer.forPath(this, false); }
/** * Factory method for constructing a {@link JsonPointer} that points to the current * location within the stream that this context is for, optionally including * "root value index" * * @param includeRoot Whether root-value offset is included as the first segment or not; * * @since 2.9 */ public JsonPointer pathAsPointer(boolean includeRoot) { return JsonPointer.forPath(this, includeRoot); }
/** * Factory method for constructing a {@link JsonPointer} that points to the current * location within the stream that this context is for, excluding information about * "root context" (only relevant for multi-root-value cases) * * @since 2.9 */ public JsonPointer pathAsPointer() { return JsonPointer.forPath(this, false); }