Class TypeParameterExtension


  • public class TypeParameterExtension
    extends Object
    • Constructor Detail

      • TypeParameterExtension

        public TypeParameterExtension()
    • 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.