Class TextFileBuilder
- java.lang.Object
-
- net.sourceforge.pmd.lang.document.TextFileBuilder
-
-
Field Summary
Fields Modifier and Type Field Description protected LanguageVersion
languageVersion
protected FileId
parentFsId
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description TextFileBuilder
asReadOnly()
Specify that the built file is read only.abstract TextFile
build()
Creates and returns the new text file.TextFileBuilder
setParentFsPath(@Nullable FileId fileId)
-
-
-
Field Detail
-
languageVersion
protected final LanguageVersion languageVersion
-
parentFsId
protected FileId parentFsId
-
-
Method Detail
-
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.
-
-