uk.ac.man.cs.rainbow.rapa.data
Class TypeVariable

java.lang.Object
  |
  +--uk.ac.man.cs.rainbow.rapa.data.TypeVariable
All Implemented Interfaces:
Argument, Type

public class TypeVariable
extends Object
implements Type


Constructor Summary
TypeVariable(String name)
           
TypeVariable(String name, int n)
           
 
Method Summary
 void compatableWith(Argument arg)
           
 Type subst(GeneralSubstitution s)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TypeVariable

public TypeVariable(String name)

TypeVariable

public TypeVariable(String name,
                    int n)
Method Detail

compatableWith

public void compatableWith(Argument arg)
Specified by:
compatableWith in interface Argument
Following copied from interface: uk.ac.man.cs.rainbow.rapa.data.Argument
Throws:
CompatabilityFailure - If you are not allowed to map from this argument to the given one.

subst

public Type subst(GeneralSubstitution s)
Specified by:
subst in interface Type

toString

public String toString()
Overrides:
toString in class Object