- java.lang.Object
-
- org.github.gestalt.config.parser.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.
-
-
-
Method Detail
-
parse
public GResultOf<ConfigNode> parse(java.util.List<Pair<java.util.List<Token>,ConfigValue>> configs, boolean failOnErrors)
Description copied from interface:ConfigParserTakes in a tokenized config and returns a config node tree.- Specified by:
parsein interfaceConfigParser- Parameters:
configs- configs to parsefailOnErrors- 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
-
-