system/src/sc/lang/java/PropertyDefinitionParameters.java
public void init(Object fieldObj, boolean doObjConvert, LayeredSystem sys) {
      Object enclType = ModelUtil.getEnclosingType(fieldObj);
      // Need to get absolute type names here because we do not do the imports from the model because we never resolved the interface fields in this model
      setTypeName = propertyTypeName = ModelUtil.getAbsoluteGenericTypeName(enclType, fieldObj, true);
      Object propType = ModelUtil.getPropertyType(fieldObj);
      useIndexSetForArrays = sys.useIndexSetForArrays;

      if (doObjConvert) {
         if (ModelUtil.isPrimitive(propType)) {
            preReturn =  "sc.dyn.DynUtil." + ModelUtil.getNumberPrefixFromType(propType) + "Value(";
            postReturn = ")";
         }
         else {
            preReturn = "(" + propertyTypeName + ") ";
            postReturn = "";
         }
      }
      else {
         preReturn = "";
         postReturn = "";
      }

      int aix = propertyTypeName.indexOf("[");
      if (aix != -1) {
         arrayDimensions = propertyTypeName.substring(aix);
         propertyTypeName = propertyTypeName.substring(0, aix);
      }
      getModifiers = TransformUtil.removeModifiers(ModelUtil.modifiersToString(fieldObj, true, true, false, false, true, JavaSemanticNode.MemberType.GetMethod), TransformUtil.fieldOnlyModifiers);
      setModifiers = TransformUtil.removeModifiers(ModelUtil.modifiersToString(fieldObj, true, true, false, false, true, JavaSemanticNode.MemberType.SetMethod), TransformUtil.fieldOnlyModifiers);
      if (getNeedsIndexedSetter())
         setIndexedModifiers = TransformUtil.removeModifiers(ModelUtil.modifiersToString(fieldObj, false, true, false, false, true, JavaSemanticNode.MemberType.SetIndexed), TransformUtil.fieldOnlyModifiers);
   }
/** TODO: this method is not called for the main use of PropertyDefinitionParameters... there's some replicated code we should cleanup between here and the other places where this class is created */
this method is not called for the main use of PropertyDefinitionParameters... there's some replicated code we should cleanup between here and the other places where this class is created
this method is not called for the main use of PropertyDefinitionParameters ... there ' s some replicated code we should cleanup between here and the other places where this class is created
public void init(Object fieldObj, boolean doObjConvert, LayeredSystem sys) {
      Object enclType = ModelUtil.getEnclosingType(fieldObj);
      setTypeName = propertyTypeName = ModelUtil.getAbsoluteGenericTypeName(enclType, fieldObj, true);
      Object propType = ModelUtil.getPropertyType(fieldObj);
      useIndexSetForArrays = sys.useIndexSetForArrays;
      if (doObjConvert) {
         if (ModelUtil.isPrimitive(propType)) {
            preReturn =  "sc.dyn.DynUtil." + ModelUtil.getNumberPrefixFromType(propType) + "Value(";
            postReturn = ")";
         }
         else {
            preReturn = "(" + propertyTypeName + ") ";
            postReturn = "";
         }
      }
      else {
         preReturn = "";
         postReturn = "";
      }
      int aix = propertyTypeName.indexOf("[");
      if (aix != -1) {
         arrayDimensions = propertyTypeName.substring(aix);
         propertyTypeName = propertyTypeName.substring(0, aix);
      }
      getModifiers = TransformUtil.removeModifiers(ModelUtil.modifiersToString(fieldObj, true, true, false, false, true, JavaSemanticNode.MemberType.GetMethod), TransformUtil.fieldOnlyModifiers);
      setModifiers = TransformUtil.removeModifiers(ModelUtil.modifiersToString(fieldObj, true, true, false, false, true, JavaSemanticNode.MemberType.SetMethod), TransformUtil.fieldOnlyModifiers);
      if (getNeedsIndexedSetter())
         setIndexedModifiers = TransformUtil.removeModifiers(ModelUtil.modifiersToString(fieldObj, false, true, false, false, true, JavaSemanticNode.MemberType.SetIndexed), TransformUtil.fieldOnlyModifiers);
   }
public void init ( Object fieldObj , boolean doObjConvert , LayeredSystem sys ) { Object enclType = ModelUtil . getEnclosingType ( fieldObj ) ; setTypeName = propertyTypeName = ModelUtil . getAbsoluteGenericTypeName ( enclType , fieldObj , true ) ; Object propType = ModelUtil . getPropertyType ( fieldObj ) ; useIndexSetForArrays = sys . useIndexSetForArrays ; if ( doObjConvert ) { if ( ModelUtil . isPrimitive ( propType ) ) { preReturn = "sc.dyn.DynUtil." + ModelUtil . getNumberPrefixFromType ( propType ) + "Value(" ; postReturn = ")" ; } else { preReturn = "(" + propertyTypeName + ") " ; postReturn = "" ; } } else { preReturn = "" ; postReturn = "" ; } int aix = propertyTypeName . indexOf ( "[" ) ; if ( aix != - 1 ) { arrayDimensions = propertyTypeName . substring ( aix ) ; propertyTypeName = propertyTypeName . substring ( 0 , aix ) ; } getModifiers = TransformUtil . removeModifiers ( ModelUtil . modifiersToString ( fieldObj , true , true , false , false , true , JavaSemanticNode . MemberType . GetMethod ) , TransformUtil . fieldOnlyModifiers ) ; setModifiers = TransformUtil . removeModifiers ( ModelUtil . modifiersToString ( fieldObj , true , true , false , false , true , JavaSemanticNode . MemberType . SetMethod ) , TransformUtil . fieldOnlyModifiers ) ; if ( getNeedsIndexedSetter ( ) ) setIndexedModifiers = TransformUtil . removeModifiers ( ModelUtil . modifiersToString ( fieldObj , false , true , false , false , true , JavaSemanticNode . MemberType . SetIndexed ) , TransformUtil . fieldOnlyModifiers ) ; }
TODO: this method is not called for the main use of PropertyDefinitionParameters... there's some replicated code we should cleanup between here and the other places where this class is created
TODO : this method is not called for the main use of PropertyDefinitionParameters ... there ' s some replicated code we should cleanup between here and the other places where this class is created
// Need to get absolute type names here because we do not do the imports from the model because we never resolved the interface fields in this model