public class JsonScalarResolver extends Object implements ScalarResolver
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
BOOL |
static Pattern |
EMPTY |
static Pattern |
FLOAT |
static Pattern |
INT |
static Pattern |
NULL |
protected Map<Character,List<org.snakeyaml.engine.v2.resolver.ResolverTuple>> |
yamlImplicitResolvers |
| Constructor and Description |
|---|
JsonScalarResolver() |
| Modifier and Type | Method and Description |
|---|---|
void |
addImplicitResolver(Tag tag,
Pattern regexp,
String first) |
protected void |
addImplicitResolvers() |
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
protected void addImplicitResolvers()
public 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–2019. All rights reserved.