|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectagg.parser.ParserOption
public class ParserOption
The parser option provides some settings for the parser. So the parser algorithm can be chosen.
Field Summary | |
---|---|
static int |
EXCLUDEPARSER
Parsing with critical pairs. |
static int |
SIMPLEEXCLUDEPARSER
A simple algorithm with critical pair analysis. |
static int |
SIMPLEPARSER
A simple backtracking. |
Constructor Summary | |
---|---|
ParserOption()
Creates new option with default settings. |
Method Summary | |
---|---|
void |
addOptionListener(OptionEventListener l)
Adds an option listener. |
void |
enableLayer(boolean enable)
Enables if layers are used. |
int |
getSelectedParser()
Returns the algorithm of the selected parser. |
boolean |
layerEnabled()
Returns if layers are used. |
void |
removeOptionListener(OptionEventListener l)
Removes an option listener |
void |
setSelectedParser(int parser)
Sets the algorithm for the parser. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int SIMPLEPARSER
public static final int EXCLUDEPARSER
public static final int SIMPLEEXCLUDEPARSER
Constructor Detail |
---|
public ParserOption()
Method Detail |
---|
public void setSelectedParser(int parser)
parser
- The algorithm.public int getSelectedParser()
public boolean layerEnabled()
public void enableLayer(boolean enable)
enable
- true if layers are used.public void addOptionListener(OptionEventListener l)
l
- The listener.public void removeOptionListener(OptionEventListener l)
l
- The listener.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |