public class JsonScalarResolver extends Object implements ScalarResolver
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
BOOL
Boolean as defined in JSON
|
static Pattern |
EMPTY
No value indication
|
static Pattern |
ENV_FORMAT
group 1: name, group 2: separator, group 3: value
|
static Pattern |
FLOAT
Float as defined in JSON (Number which is Float)
|
static Pattern |
INT
Integer as defined in JSON (Number which is Integer)
|
static Pattern |
NULL
Null as defined in JSON
|
protected Map<Character,List<org.snakeyaml.engine.v2.resolver.ResolverTuple>> |
yamlImplicitResolvers
Map from the char to the resolver which may begin with this char
|
| Constructor and Description |
|---|
JsonScalarResolver()
Create
|
| Modifier and Type | Method and Description |
|---|---|
void |
addImplicitResolver(org.snakeyaml.engine.v2.nodes.Tag tag,
Pattern regexp,
String first)
Add a resolver to resolve a value that matches the provided regular expression to the provided
tag
|
protected void |
addImplicitResolvers()
Register all the resolvers to be applied
|
org.snakeyaml.engine.v2.nodes.Tag |
resolve(String value,
Boolean implicit)
Resolve (detect) the tag of the scalar node of the given type.
|
public static final Pattern BOOL
public static final Pattern FLOAT
public static final Pattern INT
public static final Pattern NULL
public static final Pattern EMPTY
public static final Pattern ENV_FORMAT
public void addImplicitResolver(org.snakeyaml.engine.v2.nodes.Tag tag,
Pattern regexp,
String first)
tag - - the Tag to assign when the value matchesregexp - - the RE which is applied for every valuefirst - - the possible first characters (this is merely for performance improvement) to
skip RE evaluation to gain timeprotected void addImplicitResolvers()
public org.snakeyaml.engine.v2.nodes.Tag resolve(String value, Boolean implicit)
ScalarResolverresolve in interface ScalarResolvervalue - - the value of the scalar nodeimplicit - - true if there was no tag specified (the tag will be resolved)Copyright © 2018–2022. All rights reserved.