| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 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
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.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.Copyright © 2014. All Rights Reserved.