system/src/sc/lang/java/IdentifierExpression.java
public boolean isGetSetConversionDisabled(int ix) {
      if (parentNode instanceof ParenExpression) {
         ParenExpression pe = (ParenExpression) parentNode;
         if (pe.parentNode instanceof IfStatement || pe.parentNode instanceof SwitchStatement || pe.parentNode instanceof WhileStatement ||
             pe.parentNode instanceof SynchronizedStatement)
            return false;

         Object boundType = getTypeForIdentifier(ix);
         if (ModelUtil.isField(boundType) || (ModelUtil.isObjectType(boundType) && !ModelUtil.isObjectSetProperty(boundType)))
            return true;
      }
      return false;
   }
/* 
    * This implements the contextual rule to disable field to getX conversion.  It's right now (field) where we have to explicitly exclude the if
    * and switch which are implemented using a ParenExpression.  There probably should be a cleaner way to specify this?
    */
This implements the contextual rule to disable field to getX conversion.  It's right now (field) where we have to explicitly exclude the if
and switch which are implemented using a ParenExpression.
This implements the contextual rule to disable field to getX conversion . It ' s right now ( field ) where we have to explicitly exclude the if and switch which are implemented using a ParenExpression .
public boolean isGetSetConversionDisabled(int ix) {
      if (parentNode instanceof ParenExpression) {
         ParenExpression pe = (ParenExpression) parentNode;
         if (pe.parentNode instanceof IfStatement || pe.parentNode instanceof SwitchStatement || pe.parentNode instanceof WhileStatement ||
             pe.parentNode instanceof SynchronizedStatement)
            return false;
         Object boundType = getTypeForIdentifier(ix);
         if (ModelUtil.isField(boundType) || (ModelUtil.isObjectType(boundType) && !ModelUtil.isObjectSetProperty(boundType)))
            return true;
      }
      return false;
   }
public boolean isGetSetConversionDisabled ( int ix ) { if ( parentNode instanceof ParenExpression ) { ParenExpression pe = ( ParenExpression ) parentNode ; if ( pe . parentNode instanceof IfStatement || pe . parentNode instanceof SwitchStatement || pe . parentNode instanceof WhileStatement || pe . parentNode instanceof SynchronizedStatement ) return false ; Object boundType = getTypeForIdentifier ( ix ) ; if ( ModelUtil . isField ( boundType ) || ( ModelUtil . isObjectType ( boundType ) && ! ModelUtil . isObjectSetProperty ( boundType ) ) ) return true ; } return false ; }
This implements the contextual rule to disable field to getX conversion.
This implements the contextual rule to disable field to getX conversion .