Class YamlParseContext

    • Constructor Detail

      • YamlParseContext

        public YamlParseContext()
    • Method Detail

      • push

        public YamlParseContext push​(String key,
                                     YamlParseHandler handler)
        Parse a child of the current object if present
        Parameters:
        key - key of the child entry
        handler - handler to use
        Returns:
        self
      • push

        public YamlParseContext push​(YamlObject scope,
                                     String key,
                                     YamlParseHandler handler)
        Parse a child of the specified object if present
        Parameters:
        scope - object to start from
        key - key of the child entry
        handler - handler to use
        Returns:
        self
      • push

        public YamlParseContext push​(YamlParseHandler handler)
        Add a handler to the stack handling the current object. Used for "inlined"/common properties.
        Parameters:
        handler - handler to use
        Returns:
        self
      • push

        public YamlParseContext push​(YamlObject obj,
                                     YamlParseHandler handler)
        Add a handler to the stack handling the specified object
        Parameters:
        obj - the object to parse
        handler - handler to use
        Returns:
        self
      • getDocHint

        @Nullable
        public Object getDocHint​(String key)
      • setDocHint

        public void setDocHint​(String key,
                               Object value)
      • mergeDocHints

        public void mergeDocHints​(Map<String,​Object> hints)