|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcoursesolutions.CourseHierarchy
| Constructor Summary | |
CourseHierarchy()
|
|
| Method Summary | |
void |
assertParentOf(Type a,
Type b)
Type a is the parent type of b |
void |
finished()
No more changes |
Type |
getSuperClass(Type t1)
Get the supplied type's superclass |
boolean |
narrows(Type t1,
Type t2)
is t1 a direct or indirect subclass of t2? |
boolean |
widens(Type t1,
Type t2)
Is t1 a direct or indirect superclass of t2? |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CourseHierarchy()
| Method Detail |
public void assertParentOf(Type a,
Type b)
assertParentOf in interface HierarchyInterfacepublic void finished()
finished in interface HierarchyInterface
public boolean narrows(Type t1,
Type t2)
narrows in interface HierarchyInterface
public boolean widens(Type t1,
Type t2)
widens in interface HierarchyInterfacepublic Type getSuperClass(Type t1)
getSuperClass in interface HierarchyInterface
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||