Class TypeParameterExtension
java.lang.Object
org.emftext.language.java.extensions.generics.TypeParameterExtension
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAllMembers
(TypeParameter me, Commentable context) Returns all members of the given classifier including inner classes and all members of super types (extended classes and implemented interfaces).static EList<ConcreteClassifier>
static Type
getBoundType
(TypeParameter me, TypeReference typeReference, Reference reference) Returns the type bound to the given parameter in the context of the given reference.static TypeReference
getBoundTypeReference
(TypeParameter me, TypeReference typeReference, Reference reference)
-
Constructor Details
-
TypeParameterExtension
public TypeParameterExtension()
-
-
Method Details
-
getAllSuperClassifiers
- Parameters:
me
- the type parameter.- Returns:
- all super classifiers.
-
getAllMembers
Returns all members of the given classifier including inner classes and all members of super types (extended classes and implemented interfaces).- Parameters:
me
- the type parameter.context
- to check protected visibility.- Returns:
- member list.
-
getBoundType
Returns the type bound to the given parameter in the context of the given reference.- Parameters:
me
- the type parameter.typeReference
-reference
- the context.- Returns:
- bound type or parameter if not bound.
-
getBoundTypeReference
public static TypeReference getBoundTypeReference(TypeParameter me, TypeReference typeReference, Reference reference)
-