クラス JSONPathNode.ObjectKeyCheckerNode
java.lang.Object
io.github.takenoko4096.json.JSONPathNode<JSONObject, JSONPathNode.Pair<String, JSONObject>>
io.github.takenoko4096.json.JSONPathNode.ObjectKeyCheckerNode
- 含まれているクラス:
JSONPathNode<S extends JSONStructure, T>
public static final class JSONPathNode.ObjectKeyCheckerNode
extends JSONPathNode<JSONObject, JSONPathNode.Pair<String, JSONObject>>
オブジェクトが紐づけられたキーに対する条件付きアクセスを表現するノード。
-
ネストされたクラスの概要
クラスから継承されたネストされたクラス/インタフェース JSONPathNode
JSONPathNode.ArrayIndexFinderNode, JSONPathNode.ArrayIndexNode, JSONPathNode.ObjectKeyCheckerNode, JSONPathNode.ObjectKeyNode, JSONPathNode.Pair<A,B> -
フィールドの概要
クラスから継承されたフィールド JSONPathNode
child, parameter -
メソッドの概要
修飾子とタイプメソッド説明<U> @Nullable Uaccess(JSONObject structure, JSONLocationAccessProvider<JSONObject, @Nullable U> function) 第一引数に渡された構造体そのまま、及びこのノードに対応する位置にアクセスするためのキーとなる値の2つを引数に取るラムダを受け取ります。copy()ノードのコピーを作成します。toString()
-
メソッドの詳細
-
access
public <U> @Nullable U access(JSONObject structure, JSONLocationAccessProvider<JSONObject, @Nullable U> function) throws JSONPathUnableToAccessException クラスからコピーされた説明:JSONPathNode第一引数に渡された構造体そのまま、及びこのノードに対応する位置にアクセスするためのキーとなる値の2つを引数に取るラムダを受け取ります。各サブクラスにてチェックや検索等その他の処理が事前に行われることがあります。- 定義:
accessクラス内JSONPathNode<JSONObject, JSONPathNode.Pair<String, JSONObject>>- 型パラメータ:
U- コールバックの戻り値の型- パラメータ:
structure- 任意の構造体。function- コールバック。- 戻り値:
- コールバックの戻り値そのまま。
- 例外:
JSONPathUnableToAccessException- 構造との不整合によりアクセスできなかった場合。
-
copy
クラスからコピーされた説明:JSONPathNodeノードのコピーを作成します。- 定義:
copyクラス内JSONPathNode<JSONObject, JSONPathNode.Pair<String, JSONObject>>- 戻り値:
- ノードのディープコピー。
-
toString
- 定義:
toStringクラス内JSONPathNode<JSONObject, JSONPathNode.Pair<String, JSONObject>>
-