public class SuperWildcardType extends WildcardType implements ITypeContainer, IMatchable
innerTypeparent| Constructor and Description |
|---|
SuperWildcardType(int offset,
ObjectType innerType)
Author: Arne Lüdtke
Standard Konstruktor für eine SuperWildcard |
SuperWildcardType(ObjectType innerType) |
| Modifier and Type | Method and Description |
|---|---|
SuperWildcardType |
clone()
Author: Arne Lüdtke
Gibt einen Klon der Wildcard zurück. |
boolean |
equals(java.lang.Object obj)
Author: Arne Lüdtke
Vergleicht mit einem anderen Objekt. |
ObjectType |
get_SuperType()
Author: Arne Lüdtke
Gibt den Typen in der Wildcard zurück. |
Type |
getContainedType()
Author: Arne Lüdtke
Das gleiche wie get_innerType(). |
FreshSuperWildcardType |
GetFreshWildcardType()
Author: Arne Lüdtke
Gibt die passende FreshWildcardType Klasse zurück. |
Menge<TypePlaceholder> |
getInvolvedTypePlaceholder()
Sammelt alle TypePlaceholder, welche in diesem Typ vorkommen.
|
Type |
getMatchType()
Author: Arne Lüdtke
Gibt den Typen zurück, der bei einem match im Unify verwendet werden soll. |
Type |
GetWildcardType()
Author: Arne Lüdtke
Das gleiche wie get_innerType(). |
void |
parserPostProcessing(SyntaxTreeNode parent)
Wird nach dem Parsen aufgerufen.
|
JavaCodeResult |
printJavaCode(ResultSet result) |
void |
SetWildcardType(ObjectType T)
Author: Arne Lüdtke
Setzt den Typ in der Wildcard |
java.lang.String |
toString()
Author: Arne Lüdtke
Gibt String Entsprechung zurück. |
ConstraintType |
TYPE(TypeAssumptions ass,
SyntaxTreeNode parent)
Prüft ob der Typ in den Assumptions ass vorhanden ist.
|
SetWildcardTypeapplyResultSet, checkTYPE, get_Name, get_UsedId, getChildren, getName, getOffset, getSimpleName, getSuperWildcardTypes, getUnresolvedTPH, getVariableLength, involves, set_UsedId, setOffset, Type2Key, Type2StringaddTypeInsertPoints, getDescription, getGTVDeclarationContext, getMatchingParentNode, getParent, getParentClass, seesTypepublic SuperWildcardType(ObjectType innerType)
public SuperWildcardType(int offset,
ObjectType innerType)
public ObjectType get_SuperType()
public java.lang.String toString()
toString in class WildcardTypepublic SuperWildcardType clone()
clone in class WildcardTypepublic FreshSuperWildcardType GetFreshWildcardType()
GetFreshWildcardType in class WildcardTypepublic Type GetWildcardType()
GetWildcardType in class WildcardTypepublic void SetWildcardType(ObjectType T)
T - - Type to be setpublic Type getContainedType()
getContainedType in interface ITypeContainerpublic Type getMatchType()
getMatchType in interface IMatchablepublic JavaCodeResult printJavaCode(ResultSet result)
printJavaCode in class WildcardTypepublic boolean equals(java.lang.Object obj)
equals in class WildcardTypeobj - - Object to compare.public Menge<TypePlaceholder> getInvolvedTypePlaceholder()
TypegetInvolvedTypePlaceholder in class Typepublic void parserPostProcessing(SyntaxTreeNode parent)
SyntaxTreeNodeparserPostProcessing in class SyntaxTreeNodepublic ConstraintType TYPE(TypeAssumptions ass, SyntaxTreeNode parent)
TypeTYPE in class WildcardTypeass - - Die Assumptions für den jeweiligen Kontext in dem sich der Typ befindet.
public ConstraintType checkType(TypeAssumptions ass, SyntaxTreeNode parent){
ConstraintType t = ass.getTypeFor(this, this);
if(t==null)
throw new TypeinferenceException("Der Typ "+this.getName()+" ist nicht korrekt", parent);
return t;
}