< prev index next >

src/java.corba/share/classes/com/sun/tools/corba/se/idl/SymtabEntry.java

Print this page




 110   {
 111     _dynamicVars = new Vector (maxKey + 1);
 112     for (int i = 0; i <= maxKey; ++i)
 113       _dynamicVars.addElement (null);
 114   } // initDynamicVars
 115 
 116   /** This is a shallow copy clone */
 117   public Object clone ()
 118   {
 119     return new SymtabEntry (this);
 120   } // clone
 121 
 122   /** @return the concatenation of the module and the name, delimited by '/'. */
 123   public final String fullName ()
 124   {
 125     return _module.equals ("") ? _name : _module + '/' + _name;
 126   } // fullName
 127 
 128   /** Get the name of this entry's module.  If there are modules within
 129       modules, each module name is separated by '/'.
 130       @returns this entry's module name. */
 131   public String module ()
 132   {
 133     return _module;
 134   } // module
 135 
 136   /** Set the module for this entry.
 137       @param newName the new name of the module. */
 138   public void module (String newName)
 139   {
 140     if (newName == null)
 141       _module = "";
 142     else
 143       _module = newName;
 144   } // module
 145 
 146   /** @return the name of this entry. */
 147   public String name ()
 148   {
 149     return _name;
 150   } // name




 110   {
 111     _dynamicVars = new Vector (maxKey + 1);
 112     for (int i = 0; i <= maxKey; ++i)
 113       _dynamicVars.addElement (null);
 114   } // initDynamicVars
 115 
 116   /** This is a shallow copy clone */
 117   public Object clone ()
 118   {
 119     return new SymtabEntry (this);
 120   } // clone
 121 
 122   /** @return the concatenation of the module and the name, delimited by '/'. */
 123   public final String fullName ()
 124   {
 125     return _module.equals ("") ? _name : _module + '/' + _name;
 126   } // fullName
 127 
 128   /** Get the name of this entry's module.  If there are modules within
 129       modules, each module name is separated by '/'.
 130       @return this entry's module name. */
 131   public String module ()
 132   {
 133     return _module;
 134   } // module
 135 
 136   /** Set the module for this entry.
 137       @param newName the new name of the module. */
 138   public void module (String newName)
 139   {
 140     if (newName == null)
 141       _module = "";
 142     else
 143       _module = newName;
 144   } // module
 145 
 146   /** @return the name of this entry. */
 147   public String name ()
 148   {
 149     return _name;
 150   } // name


< prev index next >