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 Details

    • MemberContainerExtension

      public MemberContainerExtension()
  • Method Details

    • 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:
      me - the container.
      name - name of the classifier.
      Returns:
      classifier with the given name defined in this member container
    • getContainedField

      public static Field getContainedField(MemberContainer me, String name)
      Parameters:
      me - the container.
      name - name of the field.
      Returns:
      field with the given name defined in this member container
    • getContainedMethod

      public static Method getContainedMethod(MemberContainer me, String name)
      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

      public static Field createField(MemberContainer me, String name, String qualifiedTypeName)