public class ImmutableIconInst extends ImmutableNodeInst
ImmutableNodeInst.Flaganchor, EMPTY_LIST, HARD_SELECT, LOCKED, name, nameDescriptor, nodeId, NULL_ARRAY, orient, protoDescriptor, protoId, SIMPLE_TRACE_SIZE, size, techBits, VIS_INSIDEflags| Modifier and Type | Method and Description |
|---|---|
void |
check()
Checks invariant of this ImmutableIconInst.
|
boolean |
equalsExceptVariables(ImmutableElectricObject o)
Indicates whether fields of other ImmutableElectricObject are equal to fields of this object.
|
Variable |
getDefinedParameter(Variable.AttrKey key)
Method to return the Parameter on this ImmuatbleIconInst with a given key.
|
java.util.Iterator<Variable> |
getDefinedParameters()
Method to return an Iterator over all Parameters on this ImmutableIconInst.
|
int |
getNumDefinedParameters()
Method to return the number of Parameters on this ImmutableIconInst.
|
ImmutableIconInst |
withoutParam(Variable.AttrKey key)
Returns ImmutableIconInst which differs from this ImmutableIconInst by removing parameter
with the specified key.
|
ImmutableIconInst |
withParam(Variable var)
Returns ImmutableIconInst which differs from this ImmutableIconInst by additional parameter.
|
ImmutableNodeInst |
withVariable(Variable var)
Returns ImmutableIconInst which differs from this ImmutableIconInst by additional Variable.
|
computeBounds, flagsFromElib, getArcDegrees, getElibBits, getPortInst, getPortsWithVariables, getSerpentineTransistorLength, getTrace, hashCodeExceptVariables, hasPortInstVariables, is, isCellCenter, isEasyShape, isUsernamed, newInstance, techSpecificFromElib, withAnchor, withFlag, withName, withNameDescriptor, withOrient, withoutVariable, withPortInst, withProtoDescriptor, withSize, withStateBits, withTechSpecificgetNumVariables, getVar, getVar, getVariables, getVarValue, searchVar, toVariableArraypublic Variable getDefinedParameter(Variable.AttrKey key)
key - the key of the Variable.java.lang.NullPointerException - if key is nullpublic java.util.Iterator<Variable> getDefinedParameters()
public int getNumDefinedParameters()
public ImmutableIconInst withParam(Variable var)
var - additional Variable.java.lang.NullPointerException - if var is nullpublic ImmutableIconInst withoutParam(Variable.AttrKey key)
key - Variable Key to remove.java.lang.NullPointerException - if key is nullpublic ImmutableNodeInst withVariable(Variable var)
withVariable in class ImmutableNodeInstvar - additional Variable.java.lang.NullPointerException - if var is nulljava.lang.IllegalArgumentException - if this ImmutableIconInst has a parameter with the same name as new variablepublic boolean equalsExceptVariables(ImmutableElectricObject o)
equalsExceptVariables in class ImmutableNodeInsto - other ImmutableElectricObject.public void check()
check in class ImmutableNodeInstjava.lang.AssertionError - if invariant is broken.