|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.mjc.CUniverse
This is the abstract base class that represents Universes. It defines some standard methods and most importantly implements the Type-Scheme combinator in the method combine.
| Constructor Summary | |
protected |
CUniverse()
|
| Method Summary | |
static CUniverse |
combine(CUniverse first,
CUniverse second)
Combine two given universes and return the result universe. |
boolean |
equals(Object other)
Check whether two universe objects are the same. |
abstract byte |
getByteConstant()
Returns the bytecode constant representing this particular universe. |
abstract boolean |
isAlwaysAssignableTo(CUniverse other)
Tests whether the current universe can be assigned to the given universe. |
String |
toString()
Output the name of the universe. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected CUniverse()
| Method Detail |
public boolean equals(Object other)
equals in class Objectpublic abstract boolean isAlwaysAssignableTo(CUniverse other)
other - The destination universe type.public String toString()
toString in class Objectpublic abstract byte getByteConstant()
public static CUniverse combine(CUniverse first,
CUniverse second)
first - The first/left hand side universe.second - The second/right hand side universe.
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||