com.sun.electric.database.hierarchy
Class HierarchyEnumerator.NameProxy

java.lang.Object
  extended by com.sun.electric.database.hierarchy.HierarchyEnumerator.NameProxy
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
HierarchyEnumerator.NetNameProxy, HierarchyEnumerator.NodableNameProxy
Enclosing class:
HierarchyEnumerator

public abstract static class HierarchyEnumerator.NameProxy
extends java.lang.Object
implements java.io.Serializable

Stores the information necessary to generate an instance name for a Part It is sometimes important not to store the instance name as a String. When I stored instance names as strings in NCC profiles indicated that almost 50% of the storage space was used in these strings and 70% of the execution time was spent generating these Strings!!!

See Also:
Serialized Form

Constructor Summary
protected HierarchyEnumerator.NameProxy(VarContext context, java.lang.String sep)
           
 
Method Summary
 VarContext getContext()
           
abstract  Cell leafCell()
           
abstract  java.lang.String leafName()
           
 java.lang.String toString()
           
 java.lang.String toString(int numRemoveParents)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HierarchyEnumerator.NameProxy

protected HierarchyEnumerator.NameProxy(VarContext context,
                                        java.lang.String sep)
Method Detail

leafName

public abstract java.lang.String leafName()

leafCell

public abstract Cell leafCell()

getContext

public VarContext getContext()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toString

public java.lang.String toString(int numRemoveParents)