Class ClassExtension

java.lang.Object
org.emftext.language.java.extensions.classifiers.ClassExtension

public class ClassExtension extends Object
  • Constructor Details

    • ClassExtension

      public ClassExtension()
  • Method Details

    • getAllSuperClassifiers

      public static EList<ConcreteClassifier> getAllSuperClassifiers(Class me)
      Recursively collects all super types (extended classes and implemented interfaces) of the given class.
      Parameters:
      me - the given class.
      Returns:
      the collected super types.
    • getSuperClass

      public static Class getSuperClass(Class me)
      Parameters:
      me - the given class.
      Returns:
      the direct super class
    • unWrapPrimitiveType

      public static PrimitiveType unWrapPrimitiveType(Class me)
      Parameters:
      me - the given class.
      Returns:
      primitive type, if the class can be wrapped