system/src/sc/lang/TemplateLanguage.java
public void postProcessSemanticValue(Object semValue, String fileName) {
      if (semValue instanceof Template) {
         Template temp = (Template) semValue;
         if (processTemplate) {
            // Allow the template to see values in the layer definition file since it's being evaluated
            temp.resolveInLayer = true;

            if (!staticTemplate)
               temp.createInstance = true;
            if (!compiledTemplate)
               temp.dynamicType = true;
            // Some interpreted templates, such as web.scxml depend on the output method template etc.
            temp.generateOutputMethod = true;
            if (!prependLayerPackage)
               temp.prependLayerPackage = false;
         }

         if (postBuildTemplate)
            temp.generateOutputMethod = true;

         if (needsOutputMethod)
            temp.generateOutputMethod = true;

         // Stateful pages need to have a base class to implement the 'invalidate' methods so if there's no extendsType, it's not a stateful page.
         if (defaultExtendsType == null || statefulPages == false)
            temp.statefulPage = false;

         if (templateModifiers != null) {
            temp.templateModifiers = new SemanticNodeList();
            temp.templateModifiers.addAll(templateModifiers);
         }

         // Lots of properties are propagated through the template processor from the template so we need to set it even if not processing the template
         temp.templateProcessor = createResultProcessor(temp, fileName);
      }
   }
/** Use configuration in the template language to configure properties in the result */
Use configuration in the template language to configure properties in the result
Use configuration in the template language to configure properties in the result
public void postProcessSemanticValue(Object semValue, String fileName) {
      if (semValue instanceof Template) {
         Template temp = (Template) semValue;
         if (processTemplate) {
            temp.resolveInLayer = true;
            if (!staticTemplate)
               temp.createInstance = true;
            if (!compiledTemplate)
               temp.dynamicType = true;
            temp.generateOutputMethod = true;
            if (!prependLayerPackage)
               temp.prependLayerPackage = false;
         }
         if (postBuildTemplate)
            temp.generateOutputMethod = true;
         if (needsOutputMethod)
            temp.generateOutputMethod = true;
         if (defaultExtendsType == null || statefulPages == false)
            temp.statefulPage = false;
         if (templateModifiers != null) {
            temp.templateModifiers = new SemanticNodeList();
            temp.templateModifiers.addAll(templateModifiers);
         }
         temp.templateProcessor = createResultProcessor(temp, fileName);
      }
   }
public void postProcessSemanticValue ( Object semValue , String fileName ) { if ( semValue instanceof Template ) { Template temp = ( Template ) semValue ; if ( processTemplate ) { temp . resolveInLayer = true ; if ( ! staticTemplate ) temp . createInstance = true ; if ( ! compiledTemplate ) temp . dynamicType = true ; temp . generateOutputMethod = true ; if ( ! prependLayerPackage ) temp . prependLayerPackage = false ; } if ( postBuildTemplate ) temp . generateOutputMethod = true ; if ( needsOutputMethod ) temp . generateOutputMethod = true ; if ( defaultExtendsType == null || statefulPages == false ) temp . statefulPage = false ; if ( templateModifiers != null ) { temp . templateModifiers = new SemanticNodeList ( ) ; temp . templateModifiers . addAll ( templateModifiers ) ; } temp . templateProcessor = createResultProcessor ( temp , fileName ) ; } }
Use configuration in the template language to configure properties in the result
Use configuration in the template language to configure properties in the result
// Allow the template to see values in the layer definition file since it's being evaluated // Some interpreted templates, such as web.scxml depend on the output method template etc. // Stateful pages need to have a base class to implement the 'invalidate' methods so if there's no extendsType, it's not a stateful page. // Lots of properties are propagated through the template processor from the template so we need to set it even if not processing the template