|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxtc.tree.Node
xtc.parser.Grammar
public class Grammar
A grammar represented as a collection of modules.
| Field Summary | |
|---|---|
java.util.List<Module> |
modules
The list of modules. |
| Constructor Summary | |
|---|---|
Grammar(java.util.List<Module> modules)
Create a new grammar. |
|
| Method Summary | |
|---|---|
void |
remove(Module module)
Remove the specified module from this grammar. |
void |
replace(Module oldModule,
Module newModule)
Replace the specified module. |
| Methods inherited from class xtc.tree.Node |
|---|
add, add, addAll, addAll, addAll, addAll, addAllTo, addNode, contains, get, getBoolean, getBooleanProperty, getGeneric, getList, getLocation, getName, getNode, getProperty, getString, getStringProperty, getTokenText, hasLocation, hasName, hasProperty, hasTraversal, hasVariable, indexOf, isAnnotation, isEmpty, isGeneric, isList, isToken, iterator, lastIndexOf, properties, remove, removeProperty, set, setLocation, setLocation, setProperty, size, strip, toAnnotation, toList, toString, toToken, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public java.util.List<Module> modules
modules. The first module in this
list is the grammar's main module and the following modules are
all the dependent modules.
| Constructor Detail |
|---|
public Grammar(java.util.List<Module> modules)
modules - The list of modules.| Method Detail |
|---|
public void remove(Module module)
module - The module.
java.lang.IllegalArgumentException - Signals that the specified module is not part of this grammar.
public void replace(Module oldModule,
Module newModule)
oldModule - The old module.newModule - The new module.
java.lang.IllegalArgumentException - Signals that the specified old module is not part of this grammar.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||