Class VariableDeclarationMerger


  • public class VariableDeclarationMerger
    extends Object
    Merges variable declarations in a th:with attribute processor, taking the declarations in the target and combining them with the declarations in the source, overriding any same-named declarations in the target.
    Author:
    zhanhb, Emanuel Rabina
    • Constructor Detail

      • VariableDeclarationMerger

        public VariableDeclarationMerger​(IExpressionContext context)
        Constructor, sets the processing context for the merger.
        Parameters:
        context -
    • Method Detail

      • merge

        public String merge​(String target,
                            String source)
        Merge th:with attributes so that names from the source value overwrite the same names in the target value.
        Parameters:
        target -
        source -
        Returns: