Class BaseScalarResolver

    • Field Detail

      • EMPTY

        public static final Pattern EMPTY
        No value indication
      • ENV_FORMAT

        public static final Pattern ENV_FORMAT
        group 1: name, group 2: separator, group 3: value
      • yamlImplicitResolvers

        protected Map<Character,​List<org.snakeyaml.engine.v2.resolver.ResolverTuple>> yamlImplicitResolvers
        Map from the char to the resolver which may begin with this char
    • Constructor Detail

      • BaseScalarResolver

        public BaseScalarResolver()
        Create
    • Method Detail

      • addImplicitResolver

        public void addImplicitResolver​(org.snakeyaml.engine.v2.nodes.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 - - the Tag to assign when the value matches
        regexp - - the RE which is applied for every value
        first - - the possible first characters (this is merely for performance improvement) to skip RE evaluation to gain time
      • resolve

        public org.snakeyaml.engine.v2.nodes.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