| java.lang.Object xtc.tree.Node xtc.parser.ModuleDependency
All known Subclasses: xtc.parser.ModuleModification, xtc.parser.ModuleInstantiation, xtc.parser.ModuleImport,
ModuleDependency | abstract public class ModuleDependency extends Node (Code) | | A grammar module dependency. Note that two module dependencies are
equal if they describe the same module.
author: Robert Grimm version: $Revision: 1.15 $ |
arguments | public ModuleList arguments(Code) | | The arguments to the dependent module.
|
ModuleDependency | public ModuleDependency(ModuleName module, ModuleList arguments, ModuleName target)(Code) | | Create a new module dependency. If the specified arguments are
null , they are replaced with an empty module list.
If the specified target equals the module name, it is replaced by
null .
Parameters: module - The module name. Parameters: arguments - The arguments. Parameters: target - The target module name. |
hashCode | public int hashCode()(Code) | | |
isConsistentWith | public boolean isConsistentWith(ModuleDependency dep)(Code) | | Determine whether this module dependency is consistent with the
specified dependency, which has been resolved previously.
Parameters: dep - The previously resolved dependency. true if this module dependency is consistentwith the specified one. |
isImport | public boolean isImport()(Code) | | Determine whether this dependency is a
ModuleImport moduleimport .
true if this dependency is an import. |
isInstantiation | public boolean isInstantiation()(Code) | | Determine whether this dependency is a
ModuleInstantiationmodule instantiation .
true if this dependency is an instantiation. |
isModification | public boolean isModification()(Code) | | Determine whether this dependency is a
ModuleModificationmodule modification .
true if this dependency is a modification. |
rename | public ModuleDependency rename(ModuleMap renaming)(Code) | | Rename this module dependency. This method modifies this module
dependency based on the specified module map. If any module name
is renamed, the new module name's
Constants.ORIGINALoriginal property is set to the original module name.
Parameters: renaming - The module map. This module dependency. |
visibleName | public ModuleName visibleName()(Code) | | Get the visible name for this module dependency. The visible
name is the qualifier available for nonterminals referencing
productions in the dependent module.
The visible name. |
|
|