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