system/src/sc/lang/java/ConstructorDefinition.java
public MethodDefinition convertToMethod(String methName) {
      MethodDefinition methDef = new MethodDefinition();
      PrimitiveType voidType = new PrimitiveType();
      voidType.typeName = "void";
      methDef.fromStatement = this;
      methDef.origName = name;
      methDef.type = voidType;
      methDef.name = methName;
      methDef.arrayDimensions = arrayDimensions;
      methDef.typeParameters = typeParameters;
      methDef.modified = modified;
      //methDef.overriddenMethodName = methName;
      methDef.overriddenLayer = overriddenLayer;

      methDef.setProperty("parameters", parameters);
      methDef.setProperty("body", body);
      methDef.modifiers = modifiers;
      replacedByMethod = methDef;
      parentNode.replaceChild(this, methDef);
      return methDef;
   }
/** When overriding constructors, we need to convert them to a method */
When overriding constructors, we need to convert them to a method
When overriding constructors we need to convert them to a method
public MethodDefinition convertToMethod(String methName) {
      MethodDefinition methDef = new MethodDefinition();
      PrimitiveType voidType = new PrimitiveType();
      voidType.typeName = "void";
      methDef.fromStatement = this;
      methDef.origName = name;
      methDef.type = voidType;
      methDef.name = methName;
      methDef.arrayDimensions = arrayDimensions;
      methDef.typeParameters = typeParameters;
      methDef.modified = modified;
      methDef.overriddenLayer = overriddenLayer;
      methDef.setProperty("parameters", parameters);
      methDef.setProperty("body", body);
      methDef.modifiers = modifiers;
      replacedByMethod = methDef;
      parentNode.replaceChild(this, methDef);
      return methDef;
   }
public MethodDefinition convertToMethod ( String methName ) { MethodDefinition methDef = new MethodDefinition ( ) ; PrimitiveType voidType = new PrimitiveType ( ) ; voidType . typeName = "void" ; methDef . fromStatement = this ; methDef . origName = name ; methDef . type = voidType ; methDef . name = methName ; methDef . arrayDimensions = arrayDimensions ; methDef . typeParameters = typeParameters ; methDef . modified = modified ; methDef . overriddenLayer = overriddenLayer ; methDef . setProperty ( "parameters" , parameters ) ; methDef . setProperty ( "body" , body ) ; methDef . modifiers = modifiers ; replacedByMethod = methDef ; parentNode . replaceChild ( this , methDef ) ; return methDef ; }
When overriding constructors, we need to convert them to a method
When overriding constructors we need to convert them to a method
//methDef.overriddenMethodName = methName;