Interface ITextReplacer

    • Field Detail

      • GET_REGION

        static final com.google.common.base.Function<ITextReplacer,​ITextSegment> GET_REGION
        A function that maps a given replacer to the region that it replaces.
    • Method Detail

      • getRegion

        ITextSegment getRegion()
        The region this replace is responsible for. All text replacements create by this replacer must be inside this region.
      • createReplacements

        ITextReplacerContext createReplacements​(ITextReplacerContext context)
        Creates the real replacements for this region. The given context may be altered and returned afterwards.