Class MemberContainerExtension
- java.lang.Object
-
- org.emftext.language.java.extensions.members.MemberContainerExtension
-
public class MemberContainerExtension extends Object
A utility class that provides methods that belong to class MemberContainer, but can not go there, because MemberContainer is generated.
-
-
Constructor Summary
Constructors Constructor Description MemberContainerExtension()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Field
createField(MemberContainer me, String name, String qualifiedTypeName)
static EList<Constructor>
getConstructors(MemberContainer me)
static ConcreteClassifier
getContainedClassifier(MemberContainer me, String name)
static Field
getContainedField(MemberContainer me, String name)
static Method
getContainedMethod(MemberContainer me, String name)
static EList<Field>
getFields(MemberContainer me)
static EList<Member>
getMembersByName(MemberContainer me, String name)
static EList<Method>
getMethods(MemberContainer me)
static void
removeMethods(MemberContainer me, String name)
-
-
-
Method Detail
-
getMethods
public static EList<Method> getMethods(MemberContainer me)
-
getFields
public static EList<Field> getFields(MemberContainer me)
-
getConstructors
public static EList<Constructor> getConstructors(MemberContainer me)
-
getMembersByName
public static EList<Member> getMembersByName(MemberContainer me, String name)
-
removeMethods
public static void removeMethods(MemberContainer me, String name)
-
getContainedClassifier
public static ConcreteClassifier getContainedClassifier(MemberContainer me, String name)
- Parameters:
name
-name
-- Returns:
- classifier with the given name defined in this member container
-
getContainedField
public static Field getContainedField(MemberContainer me, String name)
- Parameters:
name
-name
-- Returns:
- field with the given name defined in this member container
-
getContainedMethod
public static Method getContainedMethod(MemberContainer me, String name)
- Parameters:
name
- the method name to search for- Returns:
- method with the given name defined in this member container; null, if there is no such method or if there are multiple methods with the same name
-
createField
public static Field createField(MemberContainer me, String name, String qualifiedTypeName)
-
-