public interface Nodable
Modifier and Type | Method and Description |
---|---|
boolean |
contains(NodeInst ni,
int arrayIndex)
Returns true if this Nodable wraps NodeInst ni.
|
java.util.Iterator<Variable> |
getDefinedParameters()
Method to return an Iterator over defined Parameters on this Nodable.
|
java.lang.String |
getName()
Method to return the name of this Nodable.
|
Name |
getNameKey()
Method to return the name key of this Nodable.
|
NodeInst |
getNodeInst()
Get the NodeInst associated with this Nodable
|
Variable |
getParameter(Variable.Key key)
Method to return the Parameter on this Nodable with the given key.
|
Variable |
getParameterOrVariable(Variable.Key key)
Method to return the Parameter or Variable on this Nodable with a given key.
|
java.util.Iterator<Variable> |
getParameters()
Method to return an Iterator over all Parameters on this Nodable.
|
Cell |
getParent()
Method to return the Cell that contains this Nodable.
|
NodeProto |
getProto()
Method to return the prototype of this Nodable.
|
Variable |
getVar(Variable.Key key)
Method to return the Variable on this ElectricObject with a given key.
|
boolean |
isCellInstance()
Method to tell whether this Nodable is a cell instance.
|
boolean |
isDefinedParameter(Variable.Key key)
Method to tell if the Variable.Key is a defined parameters of this Nodable.
|
java.lang.String |
toString()
Returns a printable version of this Nodable.
|
NodeProto getProto()
boolean isCellInstance()
Cell getParent()
java.lang.String getName()
Name getNameKey()
Variable getVar(Variable.Key key)
key
- the key of the Variable.Variable getParameter(Variable.Key key)
key
- the key of the ParameterVariable getParameterOrVariable(Variable.Key key)
key
- the key of the Parameter or Variable.java.lang.NullPointerException
- if key is nullboolean isDefinedParameter(Variable.Key key)
key
- the key of the parameterjava.util.Iterator<Variable> getParameters()
java.util.Iterator<Variable> getDefinedParameters()
java.lang.String toString()
toString
in class java.lang.Object
boolean contains(NodeInst ni, int arrayIndex)
ni
- a NodeInstNodeInst getNodeInst()