protected void appendAOPMembers ( JvmGenericType featureContainerType , XtendTypeDeclaration container , GenerationContext context ) { Utils . populateInheritanceContext ( featureContainerType , context . getInheritedFinalOperations ( ) , context . getInheritedOverridableOperations ( ) , null , context . getInheritedOperationsToImplement ( ) , null , this . sarlSignatureProvider ) ; final List < XtendMember > delayedMembers = new LinkedList <> ( ) ; for ( final XtendMember feature : container . getMembers ( ) ) { if ( context . isSupportedMember ( feature ) ) { if ( ( feature instanceof SarlCapacityUses ) || ( feature instanceof SarlRequiredCapacity ) ) { delayedMembers . add ( feature ) ; } else { transform ( feature , featureContainerType , true ) ; } } } for ( final XtendMember feature : delayedMembers ) { transform ( feature , featureContainerType , false ) ; } // Add event handlers appendEventGuardEvaluators ( featureContainerType ) ; // Add dispatch methods appendSyntheticDispatchMethods ( container , featureContainerType ) ; // Add SARL synthetic functions appendSyntheticDefaultValuedParameterMethods ( container , featureContainerType , context ) ; }
Generate the code for the given SARL members in a agent - oriented container .