fi.hut.tml.xsmiles.mlfc.xforms.dialog
Class Grammar

java.lang.Object
  extended byfi.hut.tml.xsmiles.mlfc.xforms.dialog.Grammar

public class Grammar
extends java.lang.Object

Author:
mpohja

Constructor Summary
Grammar()
           
Grammar(java.lang.String[] commands)
           
 
Method Summary
 void setImport(java.lang.String importRule, java.lang.String header)
          Set an import statement to grammar.
 void setRule(java.lang.String rule, java.lang.String header)
          Set rules to grammar.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Grammar

public Grammar()

Grammar

public Grammar(java.lang.String[] commands)
Parameters:
commands -
Method Detail

setImport

public void setImport(java.lang.String importRule,
                      java.lang.String header)
Set an import statement to grammar.

Parameters:
importRule - whole statement, e.g., import <command>;
header - whole header, e.g., <command>

setRule

public void setRule(java.lang.String rule,
                    java.lang.String header)
Set rules to grammar.

Parameters:
rule - complete rule
header - whole header, e.g., <command>

toString

public java.lang.String toString()


X-Smiles 1.2