Method Summary |
|
public synchronized void | addView(Polymorphic other) add another view for this object. |
protected boolean | already(Class t) Answer true iff this is already acceptable to the given type t. |
protected boolean | alreadyHasView(Class t) Answer true iff this polymorphic object already has a valid view of
type t in its ring (so .as()ing it doesn't need to
construct a new object). |
final protected Polymorphic | asInternal(Class t) Answer a polymorphic object that presents this in a way which satisfies type
t. |
abstract protected boolean | canSupport(Class t) subclasses must provide a method for testing if _this_ can be
converted to an instance of _t_. |
abstract protected Polymorphic | convertTo(Class t) subclasses must provide a method for converting _this_, if
possible, into an instance of _t_. |
abstract public boolean | equals(Object o) subclasses must override equals. |
abstract protected Personality | getPersonality() |
abstract public boolean | isValid() answer true iff this enhanced node is still underpinned in the graph
by triples appropriate to its type. |
public boolean | supports(Class t) return _true_ iff this polymorphic object supports the specified interface.
Synonymous with "does the argument class have this as an instance".
Actually it shouldn't be. |