クラス JSONPath.JSONPathReference<S extends JSONStructure, T>

java.lang.Object
io.github.takenoko4096.json.JSONPath.JSONPathReference<S,T>
型パラメータ:
S - アクセス位置の親の構造。
T - アクセスするために必要なキーまたは添え字。
含まれているクラス:
JSONPath

public abstract static class JSONPath.JSONPathReference<S extends JSONStructure, T> extends Object
jsonパスが構造にアクセスする際に作成される特定のオブジェクトへの参照を表現します。
  • フィールドの概要

    フィールド
    修飾子とタイプ
    フィールド
    説明
    protected final T
    アクセスするために必要なキーまたは添え字。
    protected final S
    アクセス位置の親の構造。
  • コンストラクタの概要

    コンストラクタ
    修飾子
    コンストラクタ
    説明
    protected
    JSONPathReference(S structure, T parameter)
     
  • メソッドの概要

    修飾子とタイプ
    メソッド
    説明
    abstract boolean
    パスの参照先の値を削除します。
    abstract <U extends JSONValue<?>>
    U
    get(JSONValueType<U> type)
    パスの参照先に格納された値を取得します。
    abstract JSONValueType<?>
    パスの参照先に格納された値の型を取得します。
    abstract boolean
    has()
    パスの参照先が存在するかどうかを返します。
    abstract void
    set(Object value)
    パスの参照先を任意の値で上書きします。

    クラスから継承されたメソッド Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • フィールド詳細

    • structure

      protected final S extends JSONStructure structure
      アクセス位置の親の構造。
    • parameter

      protected final T parameter
      アクセスするために必要なキーまたは添え字。
  • コンストラクタの詳細

    • JSONPathReference

      protected JSONPathReference(S structure, T parameter)
  • メソッドの詳細

    • has

      public abstract boolean has()
      パスの参照先が存在するかどうかを返します。
      戻り値:
      存在すれば真。
    • getType

      public abstract JSONValueType<?> getType()
      パスの参照先に格納された値の型を取得します。
      戻り値:
      型オブジェクト。
    • get

      public abstract <U extends JSONValue<?>> U get(JSONValueType<U> type)
      パスの参照先に格納された値を取得します。
      パラメータ:
      type - 期待する型。
      戻り値:
      格納された値。
    • set

      public abstract void set(Object value)
      パスの参照先を任意の値で上書きします。
      パラメータ:
      value - 任意の値。
    • delete

      public abstract boolean delete()
      パスの参照先の値を削除します。
      戻り値:
      削除に成功した場合、真。