Add support for generating property type specific code immediately after the property definition is constructed.
| | |
| | | select="concat(' PD_', $java-prop-name, ' = builder.getInstance();
')" /> |
| | | <xsl:value-of |
| | | select="concat(' INSTANCE.registerPropertyDefinition(PD_', $java-prop-name, ');
')" /> |
| | | <xsl:call-template name="get-property-definition-post-ctor"/> |
| | | <xsl:value-of select="' }
'" /> |
| | | </xsl:template> |
| | | <!-- |
| | |
| | | --> |
| | | <xsl:template match="*" mode="java-definition-ctor" /> |
| | | <!-- |
| | | Generate property definition specific post-construction code. |
| | | |
| | | By default, do nothing. |
| | | --> |
| | | <xsl:template match="*" mode="java-definition-post-ctor" /> |
| | | <!-- |
| | | |
| | | |
| | | Wrapper templates which can be called directly instead of |
| | |
| | | <xsl:apply-templates select="adm:syntax/*" |
| | | mode="java-definition-ctor" /> |
| | | </xsl:template> |
| | | <!-- |
| | | Generate property definition specific post-construction code. |
| | | --> |
| | | <xsl:template name="get-property-definition-post-ctor"> |
| | | <xsl:apply-templates select="adm:syntax/*" |
| | | mode="java-definition-post-ctor" /> |
| | | </xsl:template> |
| | | <!-- |
| | | Generate the property getter declarations. |
| | | --> |