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 |
MERGE |
static Pattern |
NULL |
protected Map<Character,List<com.hazelcast.org.snakeyaml.engine.v1.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 MERGE
public static final Pattern NULL
public static final Pattern EMPTY
protected Map<Character,List<com.hazelcast.org.snakeyaml.engine.v1.resolver.ResolverTuple>> yamlImplicitResolvers
protected void addImplicitResolvers()
public Tag resolve(String value, Boolean implicit)
ScalarResolver
resolve
in interface ScalarResolver
value
- - the value of the scalar nodeimplicit
- - true if there was no tag specified (the tag will be resolved)Copyright © 2019 Hazelcast, Inc.. All rights reserved.