public class ConfigParser
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ConfigParser.Arg |
static class |
ConfigParser.ParseException |
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
CONFIG_MSG |
protected java.util.List<java.io.File> |
files |
protected java.io.File |
relativeDirectory |
protected java.util.List<java.io.File> |
xmlfiles |
| Constructor and Description |
|---|
ConfigParser() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addFile(java.io.File sourceFile)
??? We would like to call a showNonFatalError method here to show all errors in config files before aborting the compilation
|
protected void |
addXmlFile(java.io.File xmlFile) |
java.util.List<java.io.File> |
getFiles() |
java.util.List<java.io.File> |
getXmlFiles() |
java.io.File |
makeFile(java.lang.String name) |
void |
parseCommandLine(java.lang.String[] argsArray) |
void |
parseConfigFile(java.io.File configFile) |
protected void |
parseImportedConfigFile(java.lang.String relativeFilePath) |
protected void |
parseOption(java.lang.String arg,
java.util.LinkedList args) |
protected ConfigParser.Arg |
removeArg(java.util.LinkedList args) |
protected java.lang.String |
removeStringArg(java.util.LinkedList args) |
protected void |
showError(java.lang.String message) |
protected void |
showWarning(java.lang.String message) |
protected java.io.File relativeDirectory
protected java.util.List<java.io.File> files
protected java.util.List<java.io.File> xmlfiles
protected static java.lang.String CONFIG_MSG
public java.util.List<java.io.File> getFiles()
public java.util.List<java.io.File> getXmlFiles()
public void parseCommandLine(java.lang.String[] argsArray)
throws ConfigParser.ParseException
ConfigParser.ParseExceptionpublic void parseConfigFile(java.io.File configFile)
throws ConfigParser.ParseException
ConfigParser.ParseExceptionprotected void addFile(java.io.File sourceFile)
protected void addXmlFile(java.io.File xmlFile)
protected void parseOption(java.lang.String arg,
java.util.LinkedList args)
protected void showWarning(java.lang.String message)
protected void showError(java.lang.String message)
protected ConfigParser.Arg removeArg(java.util.LinkedList args)
protected java.lang.String removeStringArg(java.util.LinkedList args)
protected void parseImportedConfigFile(java.lang.String relativeFilePath)
public java.io.File makeFile(java.lang.String name)