org.jscience.linguistics
Class Grammar

java.lang.Object
  extended by org.jscience.linguistics.Grammar

public class Grammar
extends java.lang.Object

The Grammar class holds the information about the rules needed to parse a language.


Constructor Summary
Grammar(Language language)
          Creates a new Grammar object.
 
Method Summary
 void addRule(Rule rule)
          DOCUMENT ME!
 Language getLanguage()
          DOCUMENT ME!
 java.util.Set getRules()
          DOCUMENT ME!
 void removeRule(Rule rule)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grammar

public Grammar(Language language)
Creates a new Grammar object.

Parameters:
language - DOCUMENT ME!
Method Detail

getRules

public java.util.Set getRules()
DOCUMENT ME!

Returns:
DOCUMENT ME!

addRule

public void addRule(Rule rule)
DOCUMENT ME!

Parameters:
rule - DOCUMENT ME!

removeRule

public void removeRule(Rule rule)
DOCUMENT ME!

Parameters:
rule - DOCUMENT ME!

getLanguage

public Language getLanguage()
DOCUMENT ME!

Returns:
DOCUMENT ME!