Interface ConversionRule

All Known Implementing Classes:
MultiGroupConversionRule, SingleConversionRule

public interface ConversionRule
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a non-null value if there should be an additional line following a match of this rule.
     
    replace(Matcher matcher)
    Given replacement rules, replace each capturing group in matcher's pattern
  • Method Details

    • getPattern

      Pattern getPattern()
    • replace

      String replace(Matcher matcher)
      Given replacement rules, replace each capturing group in matcher's pattern
      Parameters:
      matcher -
      Returns:
      String
    • getAdditionalLine

      String getAdditionalLine()
      Returns a non-null value if there should be an additional line following a match of this rule. In most cases this method returns null.
      Returns:
      String