Skip to content

Commit e574cd2

Browse files
committed
docs: jsonpath.token.Token
1 parent 4c42ab8 commit e574cd2

2 files changed

Lines changed: 32 additions & 2 deletions

File tree

‎docs/custom_api.md‎

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
11
# Low Level API Reference
22

3-
TODO
3+
::: jsonpath.token.Token
4+
handler: python
5+
6+
## jsonpath.filter.FilterExpression
7+
8+
TODO:
9+
10+
## jsonpath.lex.Lexer
11+
12+
TODO:
13+
14+
## jsonpath.parse.Parser
15+
16+
TODO:
17+
18+
## jsonpath.selectors.JSONPathSelector
19+
20+
TODO:
21+
22+
## jsonpath.stream.TokenStream
23+
24+
TODO:

‎jsonpath/token.py‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,16 @@
7878

7979

8080
class Token:
81-
"""A token, as returned from `lex.Lexer.tokenize()`."""
81+
"""A token, as returned from `lex.Lexer.tokenize()`.
82+
83+
Attributes:
84+
kind (str): The token's type. It is always one of the constants defined
85+
in _jsonpath.token.py_.
86+
value (str): The _path_ substring containing text for the token.
87+
index (str): The index at which _value_ starts in _path_.
88+
path (str): A reference to the complete JSONPath string from which this
89+
token derives.
90+
"""
8291

8392
__slots__ = ("kind", "value", "index", "path")
8493

0 commit comments

Comments
 (0)