|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorc.ast.simple.type.Type
orc.ast.simple.type.TypeVariable
public class TypeVariable
A bound type variable.
| Field Summary | |
|---|---|
java.lang.String |
name
|
| Fields inherited from class orc.ast.simple.type.Type |
|---|
BOT, TOP |
| Constructor Summary | |
|---|---|
TypeVariable()
|
|
| Method Summary | |
|---|---|
Type |
convert(Env<TypeVariable> env)
Convert this syntactic type into an actual type, given an appropriate type context |
Type |
subst(Type T,
FreeTypeVariable X)
Performs the substitution [T/X], replacing occurrences of the free type variable X with the type T (which could be any type, including another variable). |
java.lang.String |
toString()
|
| Methods inherited from class orc.ast.simple.type.Type |
|---|
convertAll, subMap, substAll, substMaybe, subvar |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String name
| Constructor Detail |
|---|
public TypeVariable()
| Method Detail |
|---|
public Type convert(Env<TypeVariable> env)
throws TypeException
Type
convert in class Typeenv - The type environment, used in content addressable mode to
find the appropriate deBruijn index of a type variable.
TypeException
public Type subst(Type T,
FreeTypeVariable X)
Type
subst in class TypeT - The replacing typeX - The free type variable whose occurrences will be replaced
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||