Class Substitution


  • public class Substitution
    extends java.lang.Object
    • Constructor Detail

      • Substitution

        public Substitution()
    • Method Detail

      • getSub

        public java.lang.String getSub()
      • setSub

        public void setSub​(java.lang.String sub)
      • parse

        public void parse​(java.util.Map<java.lang.String,​RewriteMap> maps)
      • evaluate

        public java.lang.String evaluate​(java.util.regex.Matcher rule,
                                         java.util.regex.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