Class Substitution.RewriteCondBackReferenceElement

    • Field Summary

      Fields 
      Modifier and Type Field Description
      int n
      The group number to reference.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String evaluate​(java.util.regex.Matcher rule, java.util.regex.Matcher cond, Resolver resolver)
      Evaluates this element against the given matchers and resolver.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • n

        public int n
        The group number to reference.
    • Constructor Detail

      • RewriteCondBackReferenceElement

        public RewriteCondBackReferenceElement()
        Constructs a new RewriteCondBackReferenceElement.
    • Method Detail

      • evaluate

        public java.lang.String evaluate​(java.util.regex.Matcher rule,
                                         java.util.regex.Matcher cond,
                                         Resolver resolver)
        Description copied from class: Substitution.SubstitutionElement
        Evaluates this element against the given matchers and resolver.
        Specified by:
        evaluate in class Substitution.SubstitutionElement
        Parameters:
        rule - the rewrite rule matcher
        cond - the condition matcher
        resolver - the property resolver
        Returns:
        the evaluated string