/** Initialize the Ecore element. * @param container the container of the SarlBehaviorUnit. * @param name the type of the SarlBehaviorUnit. */ public void eInit(XtendTypeDeclaration container, String name, IJvmTypeProvider context) { setTypeResolutionContext(context); if (this.sarlBehaviorUnit == null) { this.container = container; this.sarlBehaviorUnit = SarlFactory.eINSTANCE.createSarlBehaviorUnit(); this.sarlBehaviorUnit.setAnnotationInfo(XtendFactory.eINSTANCE.createXtendMember()); this.sarlBehaviorUnit.setName(newTypeRef(container, name)); container.getMembers().add(this.sarlBehaviorUnit); } }