|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxtc.tree.Node
xtc.parser.Module
public class Module
A grammar module.
| Field Summary | |
|---|---|
java.util.List<Attribute> |
attributes
The optional attribute list. |
Action |
body
The optional main action code. |
java.util.List<ModuleDependency> |
dependencies
The optional list of Module dependencies. |
Comment |
documentation
The option documentation comment. |
Action |
footer
The optional final action code. |
Action |
header
The optional initial action code. |
ModuleModification |
modification
The auxiliary field referencing this module's module modification, if the list of dependencies contains it. |
ModuleName |
name
The module name. |
ModuleList |
parameters
The optional list of parameters. |
java.util.List<Production> |
productions
The list of productions. |
| Constructor Summary | |
|---|---|
Module()
Create a new grammar module. |
|
Module(Comment documentation,
ModuleName name,
ModuleList parameters,
java.util.List<ModuleDependency> dependencies,
Action header,
Action body,
Action footer,
java.util.List<Attribute> attributes,
java.util.List<Production> productions)
Create a new grammar module. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getAttributeValue(java.lang.String name)
Get the value of the attribute with the specified name. |
java.lang.String |
getClassName()
Get the class name for this grammar module. |
boolean |
hasAttribute(Attribute att)
Determine whether this module has the specified attribute. |
boolean |
hasAttribute(java.lang.String name)
Determine whether this module has an attribute with the specified name. |
| 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 Comment documentation
public ModuleName name
public ModuleList parameters
public java.util.List<ModuleDependency> dependencies
Module dependencies.
public ModuleModification modification
public Action header
public Action body
public Action footer
public java.util.List<Attribute> attributes
public java.util.List<Production> productions
| Constructor Detail |
|---|
public Module()
public Module(Comment documentation,
ModuleName name,
ModuleList parameters,
java.util.List<ModuleDependency> dependencies,
Action header,
Action body,
Action footer,
java.util.List<Attribute> attributes,
java.util.List<Production> productions)
documentation - The documentation.name - The module name.parameters - The list of parameters.dependencies - The list of dependencies.header - The header.body - The body.footer - The footer.attributes - The list of attributes.productions - The list of productions.| Method Detail |
|---|
public boolean hasAttribute(Attribute att)
att - The attribute.
true if this module has the specified
attribute.public boolean hasAttribute(java.lang.String name)
name - The name.
true if this module has an attribute
with the specified name.public java.lang.Object getAttributeValue(java.lang.String name)
name - The name.
public java.lang.String getClassName()
parser attribute, the
class name is the value of that attribute. Otherwise, it is the
module name.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||