Package org.yaml.snakeyaml.resolver
Class Resolver
java.lang.Object
org.yaml.snakeyaml.resolver.Resolver
Resolver tries to detect a type by content (when the tag is implicit)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Pattern
static final Pattern
static final Pattern
The regular expression is taken from the 1.2 specification but '_'s are added to keep backwards compatibilitystatic final Pattern
static final Pattern
static final Pattern
static final Pattern
static final Pattern
static final Pattern
protected Map<Character,
List<ResolverTuple>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addImplicitResolver
(Tag tag, Pattern regexp, String first) void
addImplicitResolver
(Tag tag, Pattern regexp, String first, int limit) Add a resolver to resolve a value that matches the provided regular expression to the provided tagprotected void
-
Field Details
-
BOOL
-
FLOAT
The regular expression is taken from the 1.2 specification but '_'s are added to keep backwards compatibility -
INT
-
MERGE
-
NULL
-
EMPTY
-
TIMESTAMP
-
VALUE
-
YAML
-
yamlImplicitResolvers
-
-
Constructor Details
-
Resolver
public Resolver()
-
-
Method Details
-
addImplicitResolvers
protected void addImplicitResolvers() -
addImplicitResolver
-
addImplicitResolver
Add a resolver to resolve a value that matches the provided regular expression to the provided tag- Parameters:
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 timelimit
- - the limit of the value to analyze. The limit is here only to fight the DoS attack when huge values are provided, and it may lead to slow pattern evaluation
-
resolve
-