public class LiteralParser extends Object
| Constructor and Description |
|---|
LiteralParser() |
| Modifier and Type | Method and Description |
|---|---|
static List<JsonLiteral> |
all(JsonSource source,
PathMatcher matcher)
All literals with mathed path.
|
static List<String> |
allAsString(JsonSource source,
PathMatcher matcher)
All literals with mathed path converted to string.
|
static JsonLiteral |
first(JsonSource source,
PathMatcher matcher)
First literal with mathed path.
|
static String |
firstAsString(JsonSource source,
PathMatcher matcher)
First literal with mathed path converted to string.
|
public static JsonLiteral first(JsonSource source, PathMatcher matcher)
source - json sourcematcher - mather to identify resulted literalpublic static List<JsonLiteral> all(JsonSource source, PathMatcher matcher)
source - json sourcematcher - mather to identify resulted literalspublic static String firstAsString(JsonSource source, PathMatcher matcher)
source - json sourcematcher - mather to identify resulted literalpublic static List<String> allAsString(JsonSource source, PathMatcher matcher)
source - json sourcematcher - mather to identify resulted literalsCopyright © 2018. All rights reserved.