com.sun.electric.tool.ncc.netlist
Class NccNameProxy

java.lang.Object
  extended by com.sun.electric.tool.ncc.netlist.NccNameProxy
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
NccNameProxy.PartNameProxy, NccNameProxy.WireNameProxy

public abstract class NccNameProxy
extends java.lang.Object
implements java.io.Serializable

Stores the information necessary to generate an instance name for a Part It is the same as HierarchyEnumerator.NameProxy except that it removes a common path prefix from the name.

See Also:
Serialized Form

Nested Class Summary
static class NccNameProxy.PartNameProxy
           
static class NccNameProxy.WireNameProxy
           
 
Method Summary
 java.lang.String cellInstPath()
          Cell instance path starting from the Cell from which NCC was run.
 VarContext getContext()
           
 java.lang.String getName()
          Name whose instance path starts from the Cell from which NCC was run
 Cell leafCell()
           
 java.lang.String leafName()
           
 boolean nameIsInTopContext()
           
static java.lang.String removePrefix(java.lang.String commonPathPrefix, java.lang.String fullName)
           
 java.lang.String toString()
          It was a mistake to use toString().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

removePrefix

public static java.lang.String removePrefix(java.lang.String commonPathPrefix,
                                            java.lang.String fullName)

toString

public java.lang.String toString()
It was a mistake to use toString(). The use of toString() makes code unmodifiable. Let me begin the process of purging all uses.

Overrides:
toString in class java.lang.Object

nameIsInTopContext

public boolean nameIsInTopContext()
Returns:
true if this Part or Wire is in the root Cell

leafCell

public Cell leafCell()
Returns:
the Cell containing this Part or Wire

leafName

public java.lang.String leafName()
Returns:
the name of this Part or Wire in the leaf Cell

getContext

public VarContext getContext()
Returns:
the VarContext of this Part or Wire

getName

public java.lang.String getName()
Name whose instance path starts from the Cell from which NCC was run


cellInstPath

public java.lang.String cellInstPath()
Cell instance path starting from the Cell from which NCC was run.