| Modifier and Type | Field and Description |
|---|---|
static Class<? extends NgxEntry> |
BLOCK |
static Class<? extends NgxEntry> |
COMMENT |
static Class<? extends NgxEntry> |
IF |
static Class<? extends NgxEntry> |
PARAM |
| Constructor and Description |
|---|
NgxConfig() |
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(NgxToken token) |
Collection<NgxToken> |
getTokens() |
static NgxConfig |
read(InputStream in) |
static NgxConfig |
read(String path)
Parse an existing config
|
static NgxConfig |
readAntlr(InputStream in) |
static NgxConfig |
readJavaCC(InputStream input)
Read config from existing stream
|
String |
toString() |
addEntry, find, findAll, findAll, findBlock, findParam, getEntries, iterator, remove, removeAlladdValue, getName, getValue, getValuespublic static NgxConfig read(String path) throws IOException
path - Path to config fileIOExceptionpublic static NgxConfig read(InputStream in) throws IOException
IOExceptionpublic static NgxConfig readJavaCC(InputStream input) throws IOException, ParseException
input - stream to read fromIOExceptionParseExceptionpublic static NgxConfig readAntlr(InputStream in) throws IOException
IOExceptionpublic Collection<NgxToken> getTokens()
getTokens in class NgxAbstractEntrypublic void addValue(NgxToken token)
addValue in class NgxAbstractEntryCopyright © 2016. All rights reserved.