T - Representation of Cellspublic abstract class DesignObject<T>
extends Object
| Constructor and Description |
|---|
DesignObject() |
| Modifier and Type | Method and Description |
|---|---|
static <T> DesignObject<T> |
requireCastUnwrappedObject(Object obj,
EdifCellLookup<T> lookup)
Casting helper:
If the object is an instance of the cell class (T), casts and wraps it into a DesignObject o
Casts DesignObjects
|
static <T> DesignObject<?> |
requireUnwrapTclObject(tcl.lang.Interp interp,
tcl.lang.TclObject obj,
EdifCellLookup<T> lookup)
Convert a TclObject into the DesignObject it represents or throw if it isn't one
|
abstract Stream<UnsupportedConstraintElement> |
toUnsupportedConstraintElement() |
abstract String |
toXdc() |
static <T> Optional<DesignObject<T>> |
unwrapTclObject(tcl.lang.Interp interp,
tcl.lang.TclObject obj,
EdifCellLookup<T> lookup)
Try to convert a TclObject into the DesignObject it represents
|
public static <T> DesignObject<T> requireCastUnwrappedObject(Object obj, EdifCellLookup<T> lookup)
T - the lookup's cell representationobj - cell (T) or DesignObjectlookup - the cell lookuppublic static <T> Optional<DesignObject<T>> unwrapTclObject(tcl.lang.Interp interp, tcl.lang.TclObject obj, EdifCellLookup<T> lookup) throws tcl.lang.TclException
T - the lookup's cell representationinterp - the interpreterobj - the object to unwraplookup - the cell lookuptcl.lang.TclExceptionpublic static <T> DesignObject<?> requireUnwrapTclObject(tcl.lang.Interp interp, tcl.lang.TclObject obj, EdifCellLookup<T> lookup) throws tcl.lang.TclException
T - the lookup's cell representationinterp - the interpreterobj - the object to unwraplookup - the cell lookuptcl.lang.TclExceptionpublic abstract String toXdc()
public abstract Stream<UnsupportedConstraintElement> toUnsupportedConstraintElement()