@@ -74,51 +74,51 @@ public Type getTarget() {
7474 @ Override
7575 public EList <Membership > getVisibleMemberships (Collection <org .omg .sysml .lang .sysml .Namespace > excludedNamespaces , Collection <Type > excludedTypes , boolean includeAll , boolean excludeImplied ) {
7676 EList <Membership > visibleMembership = super .getVisibleMemberships (excludedNamespaces , excludedTypes , includeAll , excludeImplied );
77- visibleMembership .addAll (getInheritedMembership (excludedNamespaces , excludedTypes , includeAll , excludeImplied , new HashSet <>()));
77+ visibleMembership .addAll (getInheritedMembership (excludedNamespaces , excludedTypes , new HashSet <>(), includeAll , excludeImplied ));
7878 return visibleMembership ;
7979 }
8080
81- public EList <Membership > getNonPrivateMembership (Collection <Namespace > excludedNamespaces , Collection <Type > excludedTypes ,
82- boolean includeProtected , boolean excludeImplied , Collection < Feature > redefinedFeatures ) {
81+ public EList <Membership > getNonPrivateMembership (Collection <Namespace > excludedNamespaces , Collection <Type > excludedTypes , Collection < Feature > redefinedFeatures ,
82+ boolean includeProtected , boolean excludeImplied ) {
8383 EList <Membership > nonPrivateMembership = super .getVisibleMemberships (excludedNamespaces , excludedTypes , false , excludeImplied );
8484 if (includeProtected ) {
8585 nonPrivateMembership .addAll (getVisibleOwnedMembership (VisibilityKind .PROTECTED ));
8686 }
8787 removeRedefinedFeatures (nonPrivateMembership , redefinedFeatures );
88- nonPrivateMembership .addAll (getInheritedMembership (excludedNamespaces , excludedTypes , includeProtected , excludeImplied , redefinedFeatures ));
88+ nonPrivateMembership .addAll (getInheritedMembership (excludedNamespaces , excludedTypes , redefinedFeatures , includeProtected , excludeImplied ));
8989 return nonPrivateMembership ;
9090 }
9191
92- public EList <Membership > getInheritedMembership (Collection <Namespace > excludedNamespaces , Collection <Type > excludedTypes ,
93- boolean includeProtected , boolean excludeImplied , Collection < Feature > redefinedFeatures ) {
92+ public EList <Membership > getInheritedMembership (Collection <Namespace > excludedNamespaces , Collection <Type > excludedTypes , Collection < Feature > redefinedFeatures ,
93+ boolean includeProtected , boolean excludeImplied ) {
9494 EList <Membership > inheritedMemberships = new BasicInternalEList <Membership >(Membership .class );
9595 Type target = getTarget ();
9696 excludedTypes .add (target );
9797 Conjugation conjugator = target .getOwnedConjugator ();
9898 if (conjugator != null ) {
9999 Type originalType = conjugator .getOriginalType ();
100100 if (originalType != null && !excludedTypes .contains (originalType )) {
101- inheritedMemberships .addAll (TypeUtil .getMembershipFor (originalType , excludedNamespaces , excludedTypes , includeProtected , excludeImplied , redefinedFeatures ));
101+ inheritedMemberships .addAll (TypeUtil .getMembershipFor (originalType , excludedNamespaces , excludedTypes , redefinedFeatures , includeProtected , excludeImplied ));
102102 }
103103 }
104104 Collection <Feature > newRedefinedFeatures = new HashSet <>(redefinedFeatures );
105105 newRedefinedFeatures .addAll (getAllFeaturesRedefinedByType ());
106106 for (Type general : TypeUtil .getGeneralTypesOf (target )) {
107107 if (general != null && !excludedTypes .contains (general )) {
108- inheritedMemberships .addAll (TypeUtil .getNonPrivateMembershipFor (general , excludedNamespaces , excludedTypes , includeProtected , excludeImplied , newRedefinedFeatures ));
108+ inheritedMemberships .addAll (TypeUtil .getNonPrivateMembershipFor (general , excludedNamespaces , excludedTypes , newRedefinedFeatures , includeProtected , excludeImplied ));
109109 }
110110 }
111111 return inheritedMemberships ;
112112 }
113113
114114 public EList <Membership > getMembership (Collection <Namespace > excludedNamespaces , Collection <Type > excludedTypes ,
115- boolean includeProtected , boolean excludeImplied , Collection < Feature > redefinedFeatures ) {
115+ Collection < Feature > redefinedFeatures , boolean includeProtected , boolean excludeImplied ) {
116116 Type target = getTarget ();
117117 EList <Membership > membership = new BasicInternalEList <>(Membership .class );
118118 membership .addAll (target .getOwnedMembership ());
119119 membership .addAll (getImportedMembership (excludedNamespaces , excludedTypes , false ));
120120 removeRedefinedFeatures (membership , redefinedFeatures );
121- membership .addAll (getInheritedMembership (excludedNamespaces , excludedTypes , includeProtected , excludeImplied , redefinedFeatures ));
121+ membership .addAll (getInheritedMembership (excludedNamespaces , excludedTypes , redefinedFeatures , includeProtected , excludeImplied ));
122122 return membership ;
123123 }
124124
0 commit comments