Class RegexpPair

All Implemented Interfaces:
Describable<RegexpPair>, Serializable

public class RegexpPair extends AbstractDescribableImpl<RegexpPair> implements Serializable
This class represents a Regexp/Replacement pair. It also compiles internally the regexp into a Pattern object to encourage that it is compiled only once to avoid performance issues.
Author:
ccapdevi
See Also:
  • Constructor Details

    • RegexpPair

      @DataBoundConstructor public RegexpPair(String regexp, String replacement)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getRegexp

      public String getRegexp()
    • setRegexp

      @DataBoundSetter public void setRegexp(String regexp)
    • getReplacement

      public String getReplacement()
    • setReplacement

      @DataBoundSetter public void setReplacement(String replacement)
    • getCompiledRegexp

      public Pattern getCompiledRegexp()
    • readResolve

      protected Object readResolve()