|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.ac.man.cs.rainbow.datamodel.Type
The core class of types. You can only instantiate the classes inside this one directly though, as raw types are not useful.
Data
,
TypeData
, Serialized FormInner Class Summary | |
static class |
Type.Boolean
The class of types of booleans. |
static class |
Type.Enum
The class of types of enumerations. |
static class |
Type.Integer
The class of types of integers. |
static class |
Type.Tuple
The class of types of tuples/records/bundles. |
static class |
Type.Union
The class of types of unions. |
static class |
Type.Vector
The class of types of vectors. |
Method Summary | |
void |
compatableWith(Argument arg)
|
boolean |
equals(Object o)
General equality test for types. |
abstract boolean |
equals(Type t)
Test for equality between types. |
static Type |
parse(String s)
Attempts to parse the given string to produce a type. |
static Type |
parse(String s,
Hashtable context)
Attempts to parse the given string (in context) to produce a type. |
Type |
subst(GeneralSubstitution s)
|
abstract String |
toString()
Render the type as a string. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public abstract String toString()
toString
in class Object
public final boolean equals(Object o)
equals
in class Object
public abstract boolean equals(Type t)
public static Type parse(String s) throws TypeException
public static Type parse(String s, Hashtable context) throws TypeException
public void compatableWith(Argument arg)
compatableWith
in interface Argument
uk.ac.man.cs.rainbow.rapa.data.Argument
CompatabilityFailure
- If you are not allowed to map from this argument to the
given one.public Type subst(GeneralSubstitution s)
subst
in interface Type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |