private ComplexTypeModel extractIndividualConstructors(
                     ComplexTypeModel compTypeAtHand, ConstructorModel constructorAtHand, ConstructorInfo[] constructors)
 {
     for (int i = 0; i < constructors.Length; i++)
     {
         ConstructorInfo constructorInfo = constructors[i];
     }
         return compTypeAtHand;
 }
        public ComplexTypeModel extract(ComplexTypeModel compTypeAtHand, Type classAtHand)
        {
            ConstructorModel constructorAtHand = new ConstructorModel(classAtHand.Name);
            constructorAtHand.setNoArgConstructor(true);
            ConstructorInfo constructorInfo = classAtHand.GetConstructor(new Type[] { });

            //Class doesnt have no-arg constructor, extract other constructors
            constructorAtHand.setNoArgConstructor(false);
            ConstructorInfo[] constructors = classAtHand.GetConstructors();

            compTypeAtHand.setConstructorModel(constructorAtHand);

            return compTypeAtHand;
        }
 private ConstructorModel buildIndividualConstructor(ConstructorModel constructorAtHand,
                            ConstructorInfo constructorInfoAtHand)
 {
     //MethodModel methodConstructorAtHand = new MethodModel()
     return constructorAtHand;
 }
Ejemplo n.º 4
0
 public void setConstructorModel(ConstructorModel constModel)
 {
     this.constructorModel = constModel;
 }