public abstract class Name extends java.lang.Object implements java.lang.Comparable<Name>
Modifier and Type | Field and Description |
---|---|
protected static int |
BUS |
protected static int |
DUPLICATES |
protected static int |
ERROR |
protected static int |
HAS_EMPTIES |
protected static int |
LIST |
protected static int |
SIMPLE |
static java.util.Comparator<Name> |
STRING_NUMBER_ORDER
Comparator that compares Names by com.sun.electric.databes.text.TextUtils#STRING_NUMBER_ORDER
|
protected static int |
TEMP |
Constructor and Description |
---|
Name() |
Modifier and Type | Method and Description |
---|---|
abstract int |
busWidth()
Returns number of subnames of a bus.
|
static java.lang.String |
checkName(java.lang.String ns)
Method to check whether or not string is a valid name.
|
protected static int |
checkNameThrow(java.lang.String ns)
Method to check whether or not string is a valid name.
|
abstract 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.
|
abstract Name |
findSuffixed(int i)
Returns the name obtained from base of this simple name by adding numerical suffix.
|
abstract Name |
getBasename()
Returns basename of temporary Name.
|
abstract int |
getNumSuffix()
Returns numerical suffix of temporary Name.
|
abstract boolean |
hasDuplicates()
Tells whether Name has duplicate subnames.
|
abstract boolean |
hasEmptySubnames()
Tells whether Name has duplicate subnames.
|
abstract boolean |
isBus()
Tells whether or not this Name is a bus name.
|
abstract boolean |
isList()
Tells whether or not this Name is a list of names separated by comma.
|
abstract boolean |
isTempname()
Tells whether or not this Name is a temporary name
|
abstract boolean |
isValid()
Tells whether or not this Name is a valid bus or signal name.
|
static void |
printStatistics()
Print statistics about Names.
|
abstract Name |
subname(int i)
Returns subname of a bus name.
|
public static final java.util.Comparator<Name> STRING_NUMBER_ORDER
protected static final int ERROR
protected static final int LIST
protected static final int BUS
protected static final int SIMPLE
protected static final int TEMP
protected static final int DUPLICATES
protected static final int HAS_EMPTIES
public static Name findName(java.lang.String ns)
ns
- given stringpublic static java.lang.String checkName(java.lang.String ns)
ns
- given stringpublic static void printStatistics()
public abstract int compareTo(Name name)
compareTo
in interface java.lang.Comparable<Name>
name
- the Name to be compared.public abstract boolean isValid()
public abstract boolean isTempname()
public abstract boolean hasDuplicates()
public abstract boolean hasEmptySubnames()
public abstract boolean isList()
public abstract boolean isBus()
public abstract Name subname(int i)
i
- an index of subname.public abstract int busWidth()
public abstract Name getBasename()
public abstract int getNumSuffix()
public abstract Name findSuffixed(int i)
i
- numerical suffixprotected static int checkNameThrow(java.lang.String ns) throws java.lang.NumberFormatException
ns
- given stringjava.lang.NumberFormatException