Top Description Fields Constructors Methods
org.snakeyaml.engine.v2.resolver

public abstract Class BaseScalarResolver

extends Object
implements ScalarResolver
Class Inheritance
All Implemented Interfaces
org.snakeyaml.engine.v2.resolver.ScalarResolver
Known Direct Subclasses
org.snakeyaml.engine.v2.resolver.CoreScalarResolver, org.snakeyaml.engine.v2.resolver.FailsafeScalarResolver, org.snakeyaml.engine.v2.resolver.JsonScalarResolver
Imports
java.util.ArrayList, .HashMap, .List, .Map, java.util.regex.Pattern, org.snakeyaml.engine.v2.nodes.Tag

Base resolver

Field Summary

Modifier and TypeField and Description
public static final Pattern
EMPTY

No value indication

public static final Pattern
ENV_FORMAT

group 1: name, group 2: separator, group 3: value

protected Map<Character, List<ResolverTuple>>
yamlImplicitResolvers

Map from the char to the resolver which may begin with this char

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addImplicitResolver(Tag
- the Tag to assign when the value matches
tag
,
Pattern
- the RE which is applied for every value
regexp
,
String
- the possible first characters (this is merely for performance improvement) to skip RE evaluation to gain time
first
)

Add a resolver to resolve a value that matches the provided regular expression to the provided tag

pack-priv abstract void
addImplicitResolvers()

Register all the resolvers to be applied

public Tag
resolve(String value, Boolean implicit)

Implements org.snakeyaml.engine.v2.resolver.ScalarResolver.resolve.

Resolve (detect) the tag of the scalar node of the given type.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

EMPTYback to summary
public static final Pattern EMPTY

No value indication

ENV_FORMATback to summary
public static final Pattern ENV_FORMAT

group 1: name, group 2: separator, group 3: value

Annotations
@SuppressWarnings:squid:S4784
yamlImplicitResolversback to summary
protected Map<Character, List<ResolverTuple>> yamlImplicitResolvers

Map from the char to the resolver which may begin with this char

Constructor Detail

BaseScalarResolverback to summary
public BaseScalarResolver()

Create

Method Detail

addImplicitResolverback to summary
public void addImplicitResolver(Tag tag, Pattern regexp, String first)

Add a resolver to resolve a value that matches the provided regular expression to the provided tag

Parameters
tag:Tag

- the Tag to assign when the value matches

regexp:Pattern

- the RE which is applied for every value

first:String

- the possible first characters (this is merely for performance improvement) to skip RE evaluation to gain time

addImplicitResolversback to summary
pack-priv abstract void addImplicitResolvers()

Register all the resolvers to be applied

resolveback to summary
public Tag resolve(String value, Boolean implicit)

Implements org.snakeyaml.engine.v2.resolver.ScalarResolver.resolve.

Doc from org.snakeyaml.engine.v2.resolver.ScalarResolver.resolve.

Resolve (detect) the tag of the scalar node of the given type.

Annotations
@Override