brk-code

jsonpath-ng の API リファレンス

jsonpath-ng (h2non/jsonpath-ng) の公開 API 60 件 —— クラス 20、関数 0、メソッド 40。実際のソースを静的解析して抽出した正確なシグネチャを掲載しています。

リポジトリ: h2non/jsonpath-ng

種別件数
クラス20
関数0
メソッド40

API 一覧

classjsonpath_ng.ext.filter.Expression
The JSONQuery expression
classjsonpath_ng.ext.filter.Filter
The JSONQuery filter
classjsonpath_ng.ext.iterable.Keys
The JSONPath referring to the keys of the current object.
classjsonpath_ng.ext.iterable.Len
The JSONPath referring to the len of the current object.
classjsonpath_ng.ext.iterable.Path
The JSONPath referring to the path of the current object.
classjsonpath_ng.ext.parser.ExtendedJsonPathLexer
Custom LALR-lexer for JsonPath
methodjsonpath_ng.ext.parser.ExtendedJsonPathLexer.t_BOOL(t)
true|false
methodjsonpath_ng.ext.parser.ExtendedJsonPathLexer.t_FLOAT(t)
-?\d+\.\d+
methodjsonpath_ng.ext.parser.ExtendedJsonPathLexer.t_ID(t)
@?[a-zA-Z_][a-zA-Z0-9_@\-]*
methodjsonpath_ng.ext.parser.ExtendedJsonPathLexer.t_SORT_DIRECTION(t)
,?\s*(/|\\)
classjsonpath_ng.ext.parser.ExtendedJsonPathParser
Custom LALR-parser for JsonPath
methodjsonpath_ng.ext.parser.ExtendedJsonPathParser.p_expressions_expression(p)
expressions : expression
methodjsonpath_ng.ext.parser.ExtendedJsonPathParser.p_filter(p)
filter : '?' expressions
methodjsonpath_ng.ext.parser.ExtendedJsonPathParser.p_jsonpath_named_operator(p)
jsonpath : NAMED_OPERATOR
methodjsonpath_ng.ext.parser.ExtendedJsonPathParser.p_jsonpath_this(p)
jsonpath : '@'
methodjsonpath_ng.ext.parser.ExtendedJsonPathParser.p_operator(p)
operator : '+' | '-' | '*' | '/'
methodjsonpath_ng.ext.parser.ExtendedJsonPathParser.p_sort(p)
sort : SORT_DIRECTION jsonpath
methodjsonpath_ng.ext.parser.ExtendedJsonPathParser.p_sorts_comma(p)
sorts : sorts sorts
methodjsonpath_ng.ext.parser.ExtendedJsonPathParser.p_sorts_sort(p)
sorts : sort
classjsonpath_ng.ext.string.Str
String converter Concrete syntax is '`str()`'
classjsonpath_ng.ext.string.Sub
Regex substituor Concrete syntax is '`sub(/regex/, repl)`'
classjsonpath_ng.jsonpath.Child
JSONPath that first matches the left, then the right.
classjsonpath_ng.jsonpath.DatumInContext
Represents a datum along a path from a context.
classjsonpath_ng.jsonpath.Fields
JSONPath referring to some field of the current object.
classjsonpath_ng.jsonpath.Intersect
JSONPath for bits that match *both* patterns.
classjsonpath_ng.jsonpath.Parent
JSONPath that matches the parent node of the current match.
classjsonpath_ng.jsonpath.Root
The JSONPath referring to the "root" object.
classjsonpath_ng.jsonpath.Slice
JSONPath matching a slice of an array.
classjsonpath_ng.jsonpath.This
The JSONPath referring to the current datum.
classjsonpath_ng.jsonpath.Union
JSONPath that returns the union of the results of each match.
classjsonpath_ng.lexer.JsonPathLexer
A Lexical analyzer for JsonPath.
methodjsonpath_ng.lexer.JsonPathLexer.t_NUMBER(t)
-?\d+
methodjsonpath_ng.lexer.JsonPathLexer.t_backquote(t)
`
methodjsonpath_ng.lexer.JsonPathLexer.t_backquote_content(t)
[^`\\]+
methodjsonpath_ng.lexer.JsonPathLexer.t_backquote_end(t)
`
methodjsonpath_ng.lexer.JsonPathLexer.t_backquote_escape(t)
\\.
methodjsonpath_ng.lexer.JsonPathLexer.t_doublequote(t)
"
methodjsonpath_ng.lexer.JsonPathLexer.t_doublequote_content(t)
[^"\\]+
methodjsonpath_ng.lexer.JsonPathLexer.t_doublequote_end(t)
"
methodjsonpath_ng.lexer.JsonPathLexer.t_doublequote_escape(t)
\\.
methodjsonpath_ng.lexer.JsonPathLexer.t_newline(t)
\n
methodjsonpath_ng.lexer.JsonPathLexer.t_singlequote(t)
'
methodjsonpath_ng.lexer.JsonPathLexer.t_singlequote_content(t)
[^'\\]+
methodjsonpath_ng.lexer.JsonPathLexer.t_singlequote_end(t)
'
methodjsonpath_ng.lexer.JsonPathLexer.t_singlequote_escape(t)
\\.
classjsonpath_ng.parser.JsonPathParser
An LALR-parser for JsonPath
methodjsonpath_ng.parser.JsonPathParser.p_empty(p)
empty :
methodjsonpath_ng.parser.JsonPathParser.p_fields_comma(p)
fields : fields ',' fields
methodjsonpath_ng.parser.JsonPathParser.p_fields_id(p)
fields : ID
methodjsonpath_ng.parser.JsonPathParser.p_idx(p)
idx : NUMBER
methodjsonpath_ng.parser.JsonPathParser.p_idx_comma(p)
idx : idx ',' idx
methodjsonpath_ng.parser.JsonPathParser.p_jsonpath_fieldbrackets(p)
jsonpath : '[' fields ']'
methodjsonpath_ng.parser.JsonPathParser.p_jsonpath_fields(p)
jsonpath : fields_or_any
methodjsonpath_ng.parser.JsonPathParser.p_jsonpath_idx(p)
jsonpath : '[' idx ']'
methodjsonpath_ng.parser.JsonPathParser.p_jsonpath_named_operator(p)
jsonpath : NAMED_OPERATOR
methodjsonpath_ng.parser.JsonPathParser.p_jsonpath_parens(p)
jsonpath : '(' jsonpath ')'
methodjsonpath_ng.parser.JsonPathParser.p_jsonpath_root(p)
jsonpath : '$'
methodjsonpath_ng.parser.JsonPathParser.p_jsonpath_slice(p)
jsonpath : '[' slice ']'
methodjsonpath_ng.parser.JsonPathParser.p_maybe_int(p)
maybe_int : NUMBER | empty
methodjsonpath_ng.parser.JsonPathParser.p_slice_any(p)
slice : '*'

この情報について

掲載しているシグネチャは h2non/jsonpath-ng の公開ソースコードを Python の ast モジュールで静的解析し、引数名・デフォルト値・ 型注釈・戻り値型をそのまま抽出したものです。実装コードは保存していません。 詳しくは仕組みの解説をご覧ください。

収録ライブラリ一覧(全 805 件)へ戻る