Class JsonScalarResolver

    • Field Detail

      • BOOL

        public static final Pattern BOOL
      • FLOAT

        public static final Pattern FLOAT
      • INT

        public static final Pattern INT
      • NULL

        public static final Pattern NULL
      • EMPTY

        public static final Pattern EMPTY
      • ENV_FORMAT

        public static final Pattern ENV_FORMAT
      • yamlImplicitResolvers

        protected Map<Character,​List<org.snakeyaml.engine.v2.resolver.ResolverTuple>> yamlImplicitResolvers
    • Constructor Detail

      • JsonScalarResolver

        public JsonScalarResolver()
    • Method Detail

      • addImplicitResolver

        public void addImplicitResolver​(Tag tag,
                                        Pattern regexp,
                                        String first)
      • addImplicitResolvers

        protected void addImplicitResolvers()
      • resolve

        public Tag resolve​(String value,
                           Boolean implicit)
        Description copied from interface: ScalarResolver
        Resolve (detect) the tag of the scalar node of the given type.
        Specified by:
        resolve in interface ScalarResolver
        Parameters:
        value - - the value of the scalar node
        implicit - - true if there was no tag specified (the tag will be resolved)
        Returns:
        the Tag that matches the contents