Class TextFileBuilder
- java.lang.Object
-
- net.sourceforge.pmd.lang.document.TextFileBuilder
-
-
Field Summary
Fields Modifier and Type Field Description protected LanguageVersionlanguageVersionprotected FileIdparentFsId
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description TextFileBuilderasReadOnly()Specify that the built file is read only.abstract TextFilebuild()Creates and returns the new text file.TextFileBuildersetParentFsPath(@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.
-
-