java.lang.Object
org.yaml.snakeyaml.resolver.Resolver
public class Resolver
extends java.lang.Object
Resolver tries to detect a type by content (when the tag is implicit)
-
Field Summary
Fields Modifier and Type Field Description static java.util.regex.PatternBOOLstatic java.util.regex.PatternEMPTYstatic java.util.regex.PatternFLOATThe regular expression is taken from the 1.2 specification but '_'s are added to keep backwards compatibilitystatic java.util.regex.PatternINTstatic java.util.regex.PatternMERGEstatic java.util.regex.PatternNULLstatic java.util.regex.PatternTIMESTAMPstatic java.util.regex.PatternVALUEstatic java.util.regex.PatternYAMLprotected java.util.Map<java.lang.Character,java.util.List<org.yaml.snakeyaml.resolver.ResolverTuple>>yamlImplicitResolvers -
Constructor Summary
Constructors Constructor Description Resolver() -
Method Summary
Modifier and Type Method Description voidaddImplicitResolver(Tag tag, java.util.regex.Pattern regexp, java.lang.String first)protected voidaddImplicitResolvers()Tagresolve(NodeId kind, java.lang.String value, boolean implicit)
-
Field Details
-
BOOL
public static final java.util.regex.Pattern BOOL -
FLOAT
public static final java.util.regex.Pattern FLOATThe regular expression is taken from the 1.2 specification but '_'s are added to keep backwards compatibility -
INT
public static final java.util.regex.Pattern INT -
MERGE
public static final java.util.regex.Pattern MERGE -
NULL
public static final java.util.regex.Pattern NULL -
EMPTY
public static final java.util.regex.Pattern EMPTY -
TIMESTAMP
public static final java.util.regex.Pattern TIMESTAMP -
VALUE
public static final java.util.regex.Pattern VALUE -
YAML
public static final java.util.regex.Pattern YAML -
yamlImplicitResolvers
protected java.util.Map<java.lang.Character,java.util.List<org.yaml.snakeyaml.resolver.ResolverTuple>> yamlImplicitResolvers
-
-
Constructor Details
-
Resolver
public Resolver()
-
-
Method Details
-
addImplicitResolvers
protected void addImplicitResolvers() -
addImplicitResolver
-
resolve
-