Class MapConfigParser

  • All Implemented Interfaces:
    ConfigParser

    public final class MapConfigParser
    extends java.lang.Object
    implements ConfigParser
    Takes in a tokenized config and returns a config node tree.
    • Constructor Summary

      Constructors 
      Constructor Description
      MapConfigParser()
      Default constructor for the MapConfigParser.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      GResultOf<ConfigNode> parse​(java.util.List<Pair<java.util.List<Token>,​ConfigValue>> configs, boolean failOnErrors)
      Takes in a tokenized config and returns a config node tree.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MapConfigParser

        public MapConfigParser()
        Default constructor for the MapConfigParser.
    • Method Detail

      • parse

        public GResultOf<ConfigNode> parse​(java.util.List<Pair<java.util.List<Token>,​ConfigValue>> configs,
                                           boolean failOnErrors)
        Description copied from interface: ConfigParser
        Takes in a tokenized config and returns a config node tree.
        Specified by:
        parse in interface ConfigParser
        Parameters:
        configs - configs to parse
        failOnErrors - if we want to fail on errors while parsing or try and recover. Results can be unpredictable if it continues
        Returns:
        the config node built