Class Substitution


  • public class Substitution
    extends Object
    • Constructor Detail

      • Substitution

        public Substitution()
    • Method Detail

      • getSub

        public String getSub()
      • setSub

        public void setSub​(String sub)
      • evaluate

        public String evaluate​(Matcher rule,
                               Matcher cond,
                               Resolver resolver)
        Evaluate the substitution based on the context.
        Parameters:
        rule - corresponding matched rule
        cond - last matched condition
        resolver - The property resolver
        Returns:
        The substitution result