Class MemberContainerExtension
java.lang.Object
org.emftext.language.java.extensions.members.MemberContainerExtension
A utility class that provides methods that belong to class MemberContainer,
but can not go there, because MemberContainer is generated.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Field
createField
(MemberContainer me, String name, String qualifiedTypeName) static EList<Constructor>
static ConcreteClassifier
getContainedClassifier
(MemberContainer me, String name) static Field
getContainedField
(MemberContainer me, String name) static Method
getContainedMethod
(MemberContainer me, String name) getMembersByName
(MemberContainer me, String name) static void
removeMethods
(MemberContainer me, String name)
-
Constructor Details
-
MemberContainerExtension
public MemberContainerExtension()
-
-
Method Details
-
getMethods
-
getFields
-
getConstructors
-
getMembersByName
-
removeMethods
-
getContainedClassifier
- Parameters:
me
- the container.name
- name of the classifier.- Returns:
- classifier with the given name defined in this member container
-
getContainedField
- Parameters:
me
- the container.name
- name of the field.- Returns:
- field with the given name defined in this member container
-
getContainedMethod
- Parameters:
me
- the container.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
-