public class ExtendsWildcardType extends WildcardType implements ITypeContainer, IMatchable
innerTypeparent| Constructor and Description |
|---|
ExtendsWildcardType(int offset,
ObjectType extendsType)
Author: Arne Lüdtke
Standard Konstruktor für eine ExtendsWildcard |
ExtendsWildcardType(ObjectType extendsType) |
| Modifier and Type | Method and Description |
|---|---|
ExtendsWildcardType |
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_ExtendsType()
Author: Arne Lüdtke
Gibt den Typen in der Wildcard zurück. |
ObjectType |
getContainedType()
Author: Arne Lüdtke
Das gleiche wie get_ExtendsType(). |
FreshExtendsWildcardType |
GetFreshWildcardType()
Author: Arne Lüdtke
Gibt die passende FreshWildcardType Klasse zurück. |
Menge<TypePlaceholder> |
getInvolvedTypePlaceholder()
Sammelt alle TypePlaceholder, welche in diesem Typ vorkommen.
|
ObjectType |
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_ExtendsType(). |
void |
parserPostProcessing(SyntaxTreeNode parent)
Wird nach dem Parsen aufgerufen.
|
JavaCodeResult |
printJavaCode(ResultSet resultSet) |
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 ExtendsWildcardType(int offset,
ObjectType extendsType)
public ExtendsWildcardType(ObjectType extendsType)
public ObjectType get_ExtendsType()
public java.lang.String toString()
toString in class WildcardTypepublic ExtendsWildcardType clone()
clone in class WildcardTypepublic boolean equals(java.lang.Object obj)
equals in class WildcardTypeobj - - Object to compare.public FreshExtendsWildcardType GetFreshWildcardType()
GetFreshWildcardType in class WildcardTypepublic Type GetWildcardType()
GetWildcardType in class WildcardTypepublic void SetWildcardType(ObjectType T)
T - - Type to be setpublic ObjectType getContainedType()
getContainedType in interface ITypeContainerpublic ObjectType getMatchType()
getMatchType in interface IMatchablepublic JavaCodeResult printJavaCode(ResultSet resultSet)
printJavaCode in class WildcardTypepublic 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;
}