| java.lang.Object xtc.tree.Node xtc.parser.Module
Module | public class Module extends Node (Code) | | A grammar module.
author: Robert Grimm version: $Revision: 1.19 $ |
Method Summary | |
public Object | getAttributeValue(String name) Get the value of the attribute with the specified name.
Parameters: name - The name. | public String | getClassName() Get the class name for this grammar module. | public boolean | hasAttribute(Attribute att) Determine whether this module has the specified attribute.
Parameters: att - The attribute. | public boolean | hasAttribute(String name) Determine whether this module has an attribute with the
specified name.
Parameters: name - The name. |
attributes | public List<Attribute> attributes(Code) | | The optional attribute list. Note that while a module's
attributes are represented as a list, they should be treated as a
set.
|
documentation | public Comment documentation(Code) | | The option documentation comment.
|
footer | public Action footer(Code) | | The optional final action code.
|
header | public Action header(Code) | | The optional initial action code.
|
modification | public ModuleModification modification(Code) | | The auxiliary field referencing this module's module
modification, if the list of dependencies contains it.
|
Module | public Module()(Code) | | Create a new grammar module.
|
Module | public Module(Comment documentation, ModuleName name, ModuleList parameters, List<ModuleDependency> dependencies, Action header, Action body, Action footer, List<Attribute> attributes, List<Production> productions)(Code) | | Create a new grammar module.
Parameters: documentation - The documentation. Parameters: name - The module name. Parameters: parameters - The list of parameters. Parameters: dependencies - The list of dependencies. Parameters: header - The header. Parameters: body - The body. Parameters: footer - The footer. Parameters: attributes - The list of attributes. Parameters: productions - The list of productions. |
getAttributeValue | public Object getAttributeValue(String name)(Code) | | Get the value of the attribute with the specified name.
Parameters: name - The name. The corresponding attribute's value. |
getClassName | public String getClassName()(Code) | | Get the class name for this grammar module. If this grammar
module has a
Constants.NAME_PARSER parser attribute, the
class name is the value of that attribute. Otherwise, it is the
module name.
The class name. |
hasAttribute | public boolean hasAttribute(Attribute att)(Code) | | Determine whether this module has the specified attribute.
Parameters: att - The attribute. true if this module has the specifiedattribute. |
hasAttribute | public boolean hasAttribute(String name)(Code) | | Determine whether this module has an attribute with the
specified name.
Parameters: name - The name. true if this module has an attributewith the specified name. |
|
|