|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmycompiler.mytypereconstruction.CSubstitution
public class CSubstitution
Implementierung einer Typsubstitution. Bildet eine zu ersetzende TyploseVariable
auf einen Substitutions-Typ ab. Instanzen dieser Klasse werden in der Regel aus
Pair-Objekten erzeugt.
| Constructor Summary | |
|---|---|
CSubstitution()
|
|
CSubstitution(Pair unifier)
|
|
CSubstitution(TyploseVariable typeVar,
Type type)
|
|
| Method Summary | |
|---|---|
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 TyplosenVariable in der Registry der TyplosenVariablen des Syntaxbaumes und führt die Typsubstitution im Syntaxbaum durch. |
Type |
getType()
Author: Jörg Bäuerle |
TyploseVariable |
getTypeVar()
Author: Jörg Bäuerle |
void |
setType(Type type)
Author: Jörg Bäuerle |
void |
setTypeVar(TyploseVariable typeVar)
Author: Jörg Bäuerle |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CSubstitution()
public CSubstitution(TyploseVariable typeVar,
Type type)
public CSubstitution(Pair unifier)
throws CTypeReconstructionException
CTypeReconstructionException| Method Detail |
|---|
public Type getType()
public void setType(Type type)
type - The Type to set.public TyploseVariable getTypeVar()
public void setTypeVar(TyploseVariable 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.Object
public void execute()
throws CTypeReconstructionException
CTypeReconstructionException - Falls TyploseVariable nicht in Registry gefunden wird.public void applyUnifier(CSubstitutionSet unifier)
unifier -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||