system/src/sc/lang/java/IdentifierExpression.java
public boolean needsSetMethod() {
      if (idTypes == null) {
         System.err.println("*** needsSetMethod called on unstarted expression");
         return false;
      }

      int last = idTypes.length-1;
      IdentifierType idType = idTypes[last];
      // If the type started out as a set, or it started out as a field but needs conversion and we are not
      // in a property method we do the set conversion.
      return (idType == IdentifierType.SetVariable ||
             (idType == IdentifierType.FieldName && ModelUtil.needsSet(boundTypes[last]))) &&
             !inPropertyMethodForDef(boundTypes[last]) && !isManualGetSet();
   }
/**
    * If we are part of an assignment and our last value points to a field with a set method and we are not in
    * the set method itself, we need to be transformed into a setX expression.
    */
If we are part of an assignment and our last value points to a field with a set method and we are not in
the set method itself, we need to be transformed into a setX expression.
If we are part of an assignment and our last value points to a field with a set method and we are not in the set method itself we need to be transformed into a setX expression .
public boolean needsSetMethod() {
      if (idTypes == null) {
         System.err.println("*** needsSetMethod called on unstarted expression");
         return false;
      }
      int last = idTypes.length-1;
      IdentifierType idType = idTypes[last];
      return (idType == IdentifierType.SetVariable ||
             (idType == IdentifierType.FieldName && ModelUtil.needsSet(boundTypes[last]))) &&
             !inPropertyMethodForDef(boundTypes[last]) && !isManualGetSet();
   }
public boolean needsSetMethod ( ) { if ( idTypes == null ) { System . err . println ( "*** needsSetMethod called on unstarted expression" ) ; return false ; } int last = idTypes . length - 1 ; IdentifierType idType = idTypes [ last ] ; return ( idType == IdentifierType . SetVariable || ( idType == IdentifierType . FieldName && ModelUtil . needsSet ( boundTypes [ last ] ) ) ) && ! inPropertyMethodForDef ( boundTypes [ last ] ) && ! isManualGetSet ( ) ; }
If we are part of an assignment and our last value points to a field with a set method and we are not in
 the set method itself, we need to be transformed into a setX expression.
If we are part of an assignment and our last value points to a field with a set method and we are not in the set method itself we need to be transformed into a setX expression .
// If the type started out as a set, or it started out as a field but needs conversion and we are not // in a property method we do the set conversion.