| java.lang.Object xtc.parser.ModuleMap
ModuleMap | public class ModuleMap implements Renamer.Translation(Code) | | A mapping between module names. This class has been designed for
the efficient renaming of both
ModuleDependency moduledependencies and
NonTerminal nonterminals .
author: Robert Grimm version: $Revision: 1.6 $ |
Field Summary | |
protected Map<String, ModuleName> | map The mapping from module names (represented as strings) to module
names (represented as
ModuleName module names ). |
Method Summary | |
public boolean | containsKey(ModuleName key) Determine whether this module map contains a mapping for the
specified module name.
Parameters: key - The module name. | public boolean | containsKey(String key) Determine whether this module map contains a mapping for the
specified module name.
Parameters: key - The module name. | public ModuleName | get(ModuleName key) Look up the specified module name.
Parameters: key - The module name. | public String | get(String key) Look up the specified module name.
Parameters: key - The module name. | public NonTerminal | map(NonTerminal nt, Analyzer analyzer) | public void | put(ModuleName key, ModuleName value) Add the specified mapping. |
ModuleMap | public ModuleMap()(Code) | | Create a new module map.
|
ModuleMap | public ModuleMap(ModuleName key, ModuleName value)(Code) | | Create a new module map.
Parameters: key - The single initial key. Parameters: value - The single initial value. |
ModuleMap | public ModuleMap(ModuleList keys, ModuleList values)(Code) | | Create a new module map.
Parameters: keys - The list of keys. Parameters: values - The list of values. throws: IllegalArgumentException - Signals that the lists have different lengths. |
containsKey | public boolean containsKey(ModuleName key)(Code) | | Determine whether this module map contains a mapping for the
specified module name.
Parameters: key - The module name. true if this module map has a value for thekey. |
containsKey | public boolean containsKey(String key)(Code) | | Determine whether this module map contains a mapping for the
specified module name.
Parameters: key - The module name. true if this module map has a value for thekey. |
get | public ModuleName get(ModuleName key)(Code) | | Look up the specified module name.
Parameters: key - The module name. The corresponding value or null if there isno mapping for the module name. |
get | public String get(String key)(Code) | | Look up the specified module name.
Parameters: key - The module name. The corresponding value or null if there isno mapping for the module name. |
put | public void put(ModuleName key, ModuleName value)(Code) | | Add the specified mapping.
Parameters: key - The key. Parameters: value - The value. |
|
|