agg.parser
Class ParserOption

java.lang.Object
  extended by agg.parser.ParserOption

public class ParserOption
extends java.lang.Object

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

SIMPLEPARSER

public static final int SIMPLEPARSER
A simple backtracking.

See Also:
Constant Field Values

EXCLUDEPARSER

public static final int EXCLUDEPARSER
Parsing with critical pairs.

See Also:
Constant Field Values

SIMPLEEXCLUDEPARSER

public static final int SIMPLEEXCLUDEPARSER
A simple algorithm with critical pair analysis.

See Also:
Constant Field Values
Constructor Detail

ParserOption

public ParserOption()
Creates new option with default settings.

Method Detail

setSelectedParser

public void setSelectedParser(int parser)
Sets the algorithm for the parser.

Parameters:
parser - The algorithm.

getSelectedParser

public int getSelectedParser()
Returns the algorithm of the selected parser.

Returns:
The algorithm.

layerEnabled

public boolean layerEnabled()
Returns if layers are used.

Returns:
true if layers are used.

enableLayer

public void enableLayer(boolean enable)
Enables if layers are used.

Parameters:
enable - true if layers are used.

addOptionListener

public void addOptionListener(OptionEventListener l)
Adds an option listener.

Parameters:
l - The listener.

removeOptionListener

public void removeOptionListener(OptionEventListener l)
Removes an option listener

Parameters:
l - The listener.