xtc.parser
Class ModuleName

java.lang.Object
  extended by xtc.tree.Node
      extended by xtc.parser.Name
          extended by xtc.parser.ModuleName
All Implemented Interfaces:
java.lang.Iterable<java.lang.Object>, Locatable

public class ModuleName
extends Name

A module name as a node.

Version:
$Revision: 1.5 $
Author:
Robert Grimm

Field Summary
 
Fields inherited from class xtc.parser.Name
name
 
Constructor Summary
ModuleName(java.lang.String name)
          Create a new module name.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 ModuleName rename(ModuleMap renaming)
          Rename this module name.
 
Methods inherited from class xtc.parser.Name
hashCode, toString
 
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, toToken, write
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModuleName

public ModuleName(java.lang.String name)
Create a new module name.

Parameters:
name - The name.
Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

rename

public ModuleName rename(ModuleMap renaming)
Rename this module name. If this module name is a key in the specified module map, this method returns a new module name that equals the mapping's value. The new module name's original property is set to be this module name's original name (i.e., this module name's original property if it has that property or this module name if it does not). Otherwise, this method returns this module name.

Parameters:
renaming - The module map.
Returns:
The renamed module name.


Copyright © 2012. All Rights Reserved.