|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbyucc.edif.NamedObject
byucc.edif.RenamedObject
Represents Edif names that are renamed using the RENAME keyword. This class actually contains two names: The first name is the "Edif" name that will be used by the EDIF infrastructure. This name is accessed/changed using the NamedObject super class methods. The second name is the "old name" or the origional name that was renamed. This is often an invalid EDIF name that required renaming for internal use. This object is immutable.
Sample Edif:
(rename diff_0 "diff(0)")
| Field Summary | |
private java.lang.String |
_oldname
The old name that had to be renamed. |
| Fields inherited from class byucc.edif.NamedObject |
|
| Constructor Summary | |
RenamedObject(java.lang.String name,
java.lang.String oldname)
Constructs an initialized RenamedObject. |
|
| Method Summary | |
java.lang.Object |
clone()
Provide a deep clone of this object. |
static EdifNameable |
createValidEdifNameable(java.lang.String string)
This method will create a new EdifNameable object from the given string. |
boolean |
equals(java.lang.Object cmp)
Compares this Object's name to the given Object. |
java.lang.String |
getOldName()
Returns the old name. |
void |
toEdif(EdifPrintWriter epw)
Converts this object to EDIF format, and writes it to the passed in EdifPrintWriter |
java.lang.String |
toString()
Returns a String representation of this object. |
| Methods inherited from class byucc.edif.NamedObject |
createValidEdifString, getName, isValidEdifName |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private java.lang.String _oldname
| Constructor Detail |
public RenamedObject(java.lang.String name,
java.lang.String oldname)
name - The Edif name (new name)oldname - The old original name that needed renaming| Method Detail |
public java.lang.Object clone()
clone in interface EdifNameableclone in class NamedObjectpublic static EdifNameable createValidEdifNameable(java.lang.String string)
string - The string that will be used to make a valid and
unique EDIF name
public boolean equals(java.lang.Object cmp)
NamedObject
equals in class NamedObjectcmp - The Object to compare to this one
public java.lang.String getOldName()
public void toEdif(EdifPrintWriter epw)
toEdif in interface EdifOuttoEdif in class NamedObjectepw - The EdifPrintWriter Object that the EDIF data will
be written topublic java.lang.String toString()
toString in class NamedObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||