Class TypeParameterExtension
- java.lang.Object
-
- org.emftext.language.java.extensions.generics.TypeParameterExtension
-
public class TypeParameterExtension extends Object
-
-
Constructor Summary
Constructors Constructor Description TypeParameterExtension()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EList<Member>
getAllMembers(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>
getAllSuperClassifiers(TypeParameter me)
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)
-
-
-
Method Detail
-
getAllSuperClassifiers
public static EList<ConcreteClassifier> getAllSuperClassifiers(TypeParameter me)
- Parameters:
me
- the type parameter.- Returns:
- all super classifiers.
-
getAllMembers
public static EList<Member> getAllMembers(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).- Parameters:
me
- the type parameter.context
- to check protected visibility.- Returns:
- member list.
-
getBoundType
public static Type getBoundType(TypeParameter me, TypeReference typeReference, Reference reference)
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)
-
-