Class TypeParameterExtension

java.lang.Object
tools.mdsd.jamopp.model.java.extensions.generics.TypeParameterExtension

public final class TypeParameterExtension extends Object
  • Method Details

    • getAllSuperClassifiers

      public static EList<ConcreteClassifier> getAllSuperClassifiers(TypeParameter typeParameter)
      Returns:
      all type restrictions
    • getAllMembers

      public static EList<Member> getAllMembers(TypeParameter typeParameter, Commentable context)
      Returns all members of the given classifier including inner classes and all members of super types (extended classes and implemented interfaces).
      Parameters:
      context - to check protected visibility
      Returns:
      member list
    • getBoundType

      public static Type getBoundType(TypeParameter typeParameter, EObject typeReference, Reference reference)
      Returns the type bound to the given parameter in the context of the given reference.
      Parameters:
      typeReference -
      reference -
      Returns:
      bound type or parameter if not bound