|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.electric.database.text.Name
public class Name
A Name is a text-parsing object for port, node and arc names.
These names can use bus notation:
Method Summary | |
---|---|
int |
busWidth()
Returns number of subnames of a bus. |
java.lang.String |
canonicString()
Returns canonic equivalent String of this Name. |
static java.lang.String |
checkName(java.lang.String ns)
Method to check whether or not string is a valid name. |
int |
compareTo(Name name)
Compares this Name with the specified Name for order. |
static Name |
findName(java.lang.String ns)
Method to return the name object for this string. |
Name |
findSuffixed(int i)
Returns the name obtained from base of this simple name by adding numerical suffix. |
Name |
getBasename()
Returns basename of temporary Name. |
int |
getNumSuffix()
Returns numerical suffix of temporary Name. |
boolean |
hasDuplicates()
Tells whether Name has duplicate subnames. |
boolean |
hasEmptySubnames()
Tells whether Name has duplicate subnames. |
boolean |
isBus()
Tells whether or not this Name is a bus name. |
boolean |
isList()
Tells whether or not this Name is a list of names separated by comma. |
boolean |
isTempname()
Tells whether or not this Name is a temporary name |
boolean |
isValid()
Tells whether or not this Name is a valid bus or signal name. |
static void |
printStatistics()
Print statistics about Names. |
Name |
subname(int i)
Returns subname of a bus name. |
java.lang.String |
toString()
Returns a printable version of this Name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static final Name findName(java.lang.String ns)
ns
- given string
public static java.lang.String checkName(java.lang.String ns)
ns
- given string
public static void printStatistics()
public final java.lang.String toString()
toString
in class java.lang.Object
public final java.lang.String canonicString()
public int compareTo(Name name)
compareTo
in interface java.lang.Comparable<Name>
name
- the Name to be compared.
public final boolean isValid()
public final boolean isTempname()
public final boolean hasDuplicates()
public final boolean hasEmptySubnames()
public final boolean isList()
public final boolean isBus()
public final Name subname(int i)
i
- an index of subname.
public final int busWidth()
public final Name getBasename()
public final int getNumSuffix()
public final Name findSuffixed(int i)
i
- numerical suffix
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |