Class TextFileBuilder

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

public abstract class TextFileBuilder extends Object
A builder for a new text file. See static methods on TextFile.
  • Field Details

    • languageVersion

      protected final LanguageVersion languageVersion
    • parentFsId

      protected FileId parentFsId
  • Method Details

    • asReadOnly

      public TextFileBuilder asReadOnly()
      Specify that the built file is read only. Some text files are always read-only.
      Returns:
      This builder
    • setParentFsPath

      public TextFileBuilder setParentFsPath(@Nullable FileId fileId)
    • build

      public abstract TextFile build()
      Creates and returns the new text file.