Class FragmentedDocBuilder

java.lang.Object
net.sourceforge.pmd.lang.document.FragmentedDocBuilder

public final class FragmentedDocBuilder extends Object
  • Constructor Details

    • FragmentedDocBuilder

      public FragmentedDocBuilder(TextDocument original)
  • Method Details

    • toLocation

      public FileLocation toLocation(int indexInInput)
    • recordDelta

      public void recordDelta(int startInInput, int endInInput, Chars translation)
      Add a new fragment.
      Parameters:
      startInInput - Start (inclusive) of the overwritten text in the source
      endInInput - End (exclusive) ...
      translation - Characters with which the range startInInput..endInInput are overwritten. This may be empty.
    • build

      public TextDocument build()