| Modifier and Type | Field and Description |
|---|---|
java.util.List<Module> |
modules
The list of
modules. |
| Constructor and Description |
|---|
Grammar(java.util.List<Module> modules)
Create a new grammar.
|
| Modifier and Type | Method and Description |
|---|---|
void |
remove(Module module)
Remove the specified module from this grammar.
|
void |
replace(Module oldModule,
Module newModule)
Replace the specified module.
|
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, writepublic Grammar(java.util.List<Module> modules)
modules - The list of modules.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.Copyright © 2014. All Rights Reserved.