Class ClassExtension
- java.lang.Object
-
- org.emftext.language.java.extensions.classifiers.ClassExtension
-
public class ClassExtension extends Object
-
-
Constructor Summary
Constructors Constructor Description ClassExtension()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EList<ConcreteClassifier>
getAllSuperClassifiers(Class me)
Recursively collects all super types (extended classes and implemented interfaces) of the given class.static Class
getSuperClass(Class me)
static PrimitiveType
unWrapPrimitiveType(Class me)
-
-
-
Method Detail
-
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
-
-