public class CSubstitution
extends java.lang.Object
TypePlaceholder auf einen Substitutions-Typ ab. Instanzen dieser
Klasse werden in der Regel aus
Pair-Objekten erzeugt.| Modifier and Type | Field and Description |
|---|---|
protected static Logger |
inferencelog |
protected Type |
m_Type |
private TypePlaceholder |
m_TypeVar |
| Constructor and Description |
|---|
CSubstitution() |
CSubstitution(Pair unifier) |
CSubstitution(TypePlaceholder typeVar,
Type type) |
| Modifier and Type | Method and Description |
|---|---|
private Type |
applySubstitution(Type type,
CSubstitution unifierSub)
Wendet die �bergebene Substitution rekursiv auf den �bergebenen Typ an.
|
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) |
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() |
private TypePlaceholder m_TypeVar
protected Type m_Type
protected static Logger inferencelog
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 applyUnifier(CSubstitutionSet unifier)
unifier - private Type applySubstitution(Type type, CSubstitution unifierSub)
type - Der zu untersuchende TypunifierSub - Die anzuwendende Substitution