public interface EGenericType extends EObject
Type
.
It can represent a reference to a type parameter,
a reference to a classifier, along with optional type arguments if the classifier specify type parameters,
or a wildcard with an optional upper or lower bound.The following features are supported:
EcorePackage.getEGenericType()
Modifier and Type | Method and Description |
---|---|
EClassifier |
getEClassifier()
Returns the value of the 'EClassifier' reference
|
EGenericType |
getELowerBound()
Returns the value of the 'ELower Bound' containment reference
|
EClassifier |
getERawType()
Returns the value of the 'ERaw Type' reference
|
EList<EGenericType> |
getETypeArguments()
Returns the value of the 'EType Arguments' containment reference list.
|
ETypeParameter |
getETypeParameter()
Returns the value of the 'EType Parameter' reference
|
EGenericType |
getEUpperBound()
Returns the value of the 'EUpper Bound' containment reference
|
boolean |
isInstance(java.lang.Object object)
Returns whether the object is an instance of this generic type.
|
void |
setEClassifier(EClassifier value)
Sets the value of the '
EClassifier ' reference |
void |
setELowerBound(EGenericType value)
Sets the value of the '
ELower Bound ' containment reference |
void |
setETypeParameter(ETypeParameter value)
Sets the value of the '
EType Parameter ' reference |
void |
setEUpperBound(EGenericType value)
Sets the value of the '
EUpper Bound ' containment reference |
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
eAdapters, eDeliver, eNotify, eSetDeliver
EGenericType getEUpperBound()
A generic type with an upper bound T, is equivalent to "? extends T" in Java.
setEUpperBound(EGenericType)
,
EcorePackage.getEGenericType_EUpperBound()
void setEUpperBound(EGenericType value)
EUpper Bound
' containment reference.
value
- the new value of the 'EUpper Bound' containment reference.getEUpperBound()
EList<EGenericType> getETypeArguments()
EGenericType
.
These represent the template arguments applied to a classifier with type parameters, e.g., Map<T>.
EcorePackage.getEGenericType_ETypeArguments()
EClassifier getERawType()
This represents the erased or raw type of the generic type.
EcorePackage.getEGenericType_ERawType()
EGenericType getELowerBound()
A generic type with a lower bound T, is equivalent to "? super T" in Java.
setELowerBound(EGenericType)
,
EcorePackage.getEGenericType_ELowerBound()
void setELowerBound(EGenericType value)
ELower Bound
' containment reference.
value
- the new value of the 'ELower Bound' containment reference.getELowerBound()
ETypeParameter getETypeParameter()
The represents a reference to a type parameter.
setETypeParameter(ETypeParameter)
,
EcorePackage.getEGenericType_ETypeParameter()
void setETypeParameter(ETypeParameter value)
EType Parameter
' reference.
value
- the new value of the 'EType Parameter' reference.getETypeParameter()
EClassifier getEClassifier()
The represents a reference to a classifier.
setEClassifier(EClassifier)
,
EcorePackage.getEGenericType_EClassifier()
void setEClassifier(EClassifier value)
EClassifier
' reference.
value
- the new value of the 'EClassifier' reference.getEClassifier()
boolean isInstance(java.lang.Object object)