system/src/sc/lang/SemanticNode.java
public boolean transform(ILanguageModel.RuntimeType runtime) {
      if (transformed)
         return false;
      transformed = true;
      boolean any = false;
      DynType type = TypeUtil.getPropertyCache(getClass());
      IBeanMapper[] semanticProps = type.getSemanticPropertyList();

      for (int i = 0; i < semanticProps.length; i++) {
         IBeanMapper mapper = semanticProps[i];
         Object val = PTypeUtil.getProperty(this, mapper.getField(), false);
         if (val instanceof ISemanticNode) {
            ISemanticNode nodeVal = (ISemanticNode) val;
            if (!nodeVal.getTransformed() && nodeVal.transform(runtime))
               any = true;
         }
      }
      return any;
   }
/** Override this to implement a model transformation required to generate a representation in this new runtime language */
Override this to implement a model transformation required to generate a representation in this new runtime language
Override this to implement a model transformation required to generate a representation in this new runtime language
public boolean transform(ILanguageModel.RuntimeType runtime) {
      if (transformed)
         return false;
      transformed = true;
      boolean any = false;
      DynType type = TypeUtil.getPropertyCache(getClass());
      IBeanMapper[] semanticProps = type.getSemanticPropertyList();
      for (int i = 0; i < semanticProps.length; i++) {
         IBeanMapper mapper = semanticProps[i];
         Object val = PTypeUtil.getProperty(this, mapper.getField(), false);
         if (val instanceof ISemanticNode) {
            ISemanticNode nodeVal = (ISemanticNode) val;
            if (!nodeVal.getTransformed() && nodeVal.transform(runtime))
               any = true;
         }
      }
      return any;
   }
public boolean transform ( ILanguageModel . RuntimeType runtime ) { if ( transformed ) return false ; transformed = true ; boolean any = false ; DynType type = TypeUtil . getPropertyCache ( getClass ( ) ) ; IBeanMapper [ ] semanticProps = type . getSemanticPropertyList ( ) ; for ( int i = 0 ; i < semanticProps . length ; i ++ ) { IBeanMapper mapper = semanticProps [ i ] ; Object val = PTypeUtil . getProperty ( this , mapper . getField ( ) , false ) ; if ( val instanceof ISemanticNode ) { ISemanticNode nodeVal = ( ISemanticNode ) val ; if ( ! nodeVal . getTransformed ( ) && nodeVal . transform ( runtime ) ) any = true ; } } return any ; }
Override this to implement a model transformation required to generate a representation in this new runtime language
Override this to implement a model transformation required to generate a representation in this new runtime language