|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dllearner.parser.ConfParser
public class ConfParser
| Field Summary | |
|---|---|
Token |
jj_nt
Next token. |
Token |
token
Current token. |
ConfParserTokenManager |
token_source
Generated Token Manager. |
| Fields inherited from interface org.dllearner.parser.ConfParserConstants |
|---|
ALL, AND, BOTTOM, COMMAND_END, CONF_END, DEFAULT, DOUBLE, EOF, EXISTS, FORMAL_COMMENT, GE, ID, LE, MULTI_LINE_COMMENT, NEG_EX, NOT, NUMBER, OR, POS_EX, SINGLE_LINE_COMMENT, STRING, tokenImage, TOP |
| Constructor Summary | |
|---|---|
ConfParser(ConfParserTokenManager tm)
Constructor with generated Token Manager. |
|
ConfParser(InputStream stream)
Constructor with InputStream. |
|
ConfParser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding |
|
ConfParser(Reader stream)
Constructor. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public ConfParserTokenManager token_source
public Token token
public Token jj_nt
| Constructor Detail |
|---|
public ConfParser(InputStream stream)
public ConfParser(InputStream stream,
String encoding)
public ConfParser(Reader stream)
public ConfParser(ConfParserTokenManager tm)
| Method Detail |
|---|
public SortedSet<String> getPositiveExamples()
public SortedSet<String> getNegativeExamples()
public List<ConfFileOption> getConfOptions()
public Map<String,ConfFileOption> getConfOptionsByName()
public ConfFileOption getConfOptionsByName(String name)
public Map<String,List<ConfFileOption>> getConfOptionsByPrefix()
public List<ConfFileOption> getConfOptionsByPrefix(String prefix)
public Map<String,List<List<String>>> getFunctionCalls()
public static ConfParser parseFile(File filename)
throws FileNotFoundException,
ParseException
FileNotFoundException
ParseExceptionpublic static void main(String[] args)
public final void Start()
throws ParseException
ParseException
public final ConfFileOption ConfOption()
throws ParseException
ParseException
public final void FunctionCall()
throws ParseException
ParseException
public final void PosExample()
throws ParseException
ParseException
public final void NegExample()
throws ParseException
ParseException
public final String Individual()
throws ParseException
ParseException
public final String Id()
throws ParseException
ParseException
public final double Double()
throws ParseException
ParseException
public final int Integer()
throws ParseException
ParseException
public final String String()
throws ParseException
ParseExceptionpublic void ReInit(InputStream stream)
public void ReInit(InputStream stream,
String encoding)
public void ReInit(Reader stream)
public void ReInit(ConfParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||