public class CSubstitution
extends java.lang.Object
TypePlaceholder auf einen Substitutions-Typ ab. Instanzen dieser
Klasse werden in der Regel aus
Pair-Objekten erzeugt.| Constructor and Description |
|---|
CSubstitution() |
CSubstitution(Pair unifier) |
CSubstitution(TypePlaceholder typeVar,
Type type) |
| Modifier and Type | Method and Description |
|---|---|
Type |
applyThisSubstitution(Type type) |
void |
applyUnifier(CSubstitutionSet unifier)
Wendet den Unifier auf die rechte Seite dieser Substitution an.
|
CSubstitution |
clone() |
boolean |
equals(java.lang.Object obj) |
void |
execute()
Sucht die eindeutige Instanz der Typeplaceholders in der Registry der
Typeplaceholders des Syntaxbaumes und f�hrt die Typsubstitution im
Syntaxbaum durch.
|
Type |
getType()
Author: J�rg B�uerle
|
Type |
getTypeVar()
Author: J�rg B�uerle
|
void |
setType(Type type)
Author: J�rg B�uerle
|
void |
setTypeVar(TypePlaceholder typeVar)
Author: J�rg B�uerle
|
java.lang.String |
toString() |
public CSubstitution()
public CSubstitution(TypePlaceholder typeVar, Type type)
public CSubstitution(Pair unifier) throws CTypeReconstructionException
CTypeReconstructionExceptionpublic Type getType()
public void setType(Type type)
type - The Type to set.public Type getTypeVar()
public void setTypeVar(TypePlaceholder typeVar)
typeVar - The TypeVar to set.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic CSubstitution clone()
clone in class java.lang.Objectpublic void execute()
throws CTypeReconstructionException
CTypeReconstructionException - Falls TypePlaceholder nicht in Registry
gefunden wird.public void applyUnifier(CSubstitutionSet unifier)
unifier -