Uses of Class
com.puppycrawl.tools.checkstyle.api.FileText
Packages that use FileText
Package
Description
Contains the implementation of the Checkstyle framework.
Contains the core API to be used to implement checks.
Contains the checks that are bundled with the main distribution.
File Header checks.
Contains the Javadoc checks that are bundled with the main distribution.
Contains the regular expression checks that are bundled with the main
distribution.
Contains the Size Violations checks
that are bundled with the main distribution.
Contains the Whitespace checks that
are bundled with the main distribution.
Contains the filters that are bundled with the main distribution.
User interface classes for CheckStyle.
Contains the nodes implementations for XPATH queries and query generator.
-
Uses of FileText in com.puppycrawl.tools.checkstyle
Methods in com.puppycrawl.tools.checkstyle with parameters of type FileTextModifier and TypeMethodDescriptionprivate static String
SuppressionsStringPrinter.generate
(FileText fileText, DetailAST detailAST, int lineNumber, int columnNumber, int tabWidth) CreatesXpathQueryGenerator
instance and generates suppressions.static DetailAST
JavaParser.parseFileText
(FileText text, JavaParser.Options options) Parse a text and return the parse tree.static String
AstTreeStringPrinter.printAst
(FileText text, JavaParser.Options options) Parse a file and print the parse tree.protected void
TreeWalker.processFiltered
(File file, FileText fileText) Called to process a file that matches the specified file extensions. -
Uses of FileText in com.puppycrawl.tools.checkstyle.api
Fields in com.puppycrawl.tools.checkstyle.api declared as FileTextMethods in com.puppycrawl.tools.checkstyle.api that return FileTextMethods in com.puppycrawl.tools.checkstyle.api with parameters of type FileTextModifier and TypeMethodDescriptionRequest to process a file.protected abstract void
AbstractFileSetCheck.processFiltered
(File file, FileText fileText) Called to process a file that matches the specified file extensions.Constructors in com.puppycrawl.tools.checkstyle.api with parameters of type FileTextModifierConstructorDescriptionFileContents
(FileText text) Creates a newFileContents
instance.Copy constructor. -
Uses of FileText in com.puppycrawl.tools.checkstyle.checks
Methods in com.puppycrawl.tools.checkstyle.checks with parameters of type FileTextModifier and TypeMethodDescriptionprivate static int
Inner method to get the index number of the position of keyName.private static int
OrderedPropertiesCheck.getLineNumber
(int startLineNo, FileText fileText, String previousProp, String propKey) Method returns the index number where the key is detected (starting at 0).private static int
UniquePropertiesCheck.getLineNumber
(FileText fileText, String keyName) Method returns line number the key is detected in the checked properties files first.protected void
NewlineAtEndOfFileCheck.processFiltered
(File file, FileText fileText) protected void
OrderedPropertiesCheck.processFiltered
(File file, FileText fileText) Processes the file and check order.protected void
TranslationCheck.processFiltered
(File file, FileText fileText) protected void
UniquePropertiesCheck.processFiltered
(File file, FileText fileText) -
Uses of FileText in com.puppycrawl.tools.checkstyle.checks.header
Methods in com.puppycrawl.tools.checkstyle.checks.header with parameters of type FileTextModifier and TypeMethodDescriptionprotected void
HeaderCheck.processFiltered
(File file, FileText fileText) protected void
RegexpHeaderCheck.processFiltered
(File file, FileText fileText) -
Uses of FileText in com.puppycrawl.tools.checkstyle.checks.javadoc
Methods in com.puppycrawl.tools.checkstyle.checks.javadoc with parameters of type FileTextModifier and TypeMethodDescriptionprotected void
JavadocPackageCheck.processFiltered
(File file, FileText fileText) -
Uses of FileText in com.puppycrawl.tools.checkstyle.checks.regexp
Fields in com.puppycrawl.tools.checkstyle.checks.regexp declared as FileTextMethods in com.puppycrawl.tools.checkstyle.checks.regexp with parameters of type FileTextModifier and TypeMethodDescriptionprivate boolean
RegexpCheck.isIgnore
(int startLine, FileText text, LineColumn start, Matcher matcher) Detect ignore situation.protected void
RegexpMultilineCheck.processFiltered
(File file, FileText fileText) protected void
RegexpOnFilenameCheck.processFiltered
(File file, FileText fileText) protected void
RegexpSinglelineCheck.processFiltered
(File file, FileText fileText) void
MultilineDetector.processLines
(FileText fileText) Processes an entire text file looking for matches.void
SinglelineDetector.processLines
(FileText fileText) Processes a set of lines looking for matches. -
Uses of FileText in com.puppycrawl.tools.checkstyle.checks.sizes
Methods in com.puppycrawl.tools.checkstyle.checks.sizes with parameters of type FileTextModifier and TypeMethodDescriptionprotected void
FileLengthCheck.processFiltered
(File file, FileText fileText) protected void
LineLengthCheck.processFiltered
(File file, FileText fileText) -
Uses of FileText in com.puppycrawl.tools.checkstyle.checks.whitespace
Methods in com.puppycrawl.tools.checkstyle.checks.whitespace with parameters of type FileTextModifier and TypeMethodDescriptionprotected void
FileTabCharacterCheck.processFiltered
(File file, FileText fileText) -
Uses of FileText in com.puppycrawl.tools.checkstyle.filters
Methods in com.puppycrawl.tools.checkstyle.filters that return FileTextModifier and TypeMethodDescriptionprivate static FileText
SuppressWithNearbyTextFilter.getFileText
(String fileName) ReturnsFileText
instance created based on the given file name.private static FileText
SuppressWithPlainTextCommentFilter.getFileText
(String fileName) ReturnsFileText
instance created based on the given file name.Methods in com.puppycrawl.tools.checkstyle.filters with parameters of type FileTextModifier and TypeMethodDescriptionprivate void
SuppressWithNearbyTextFilter.collectSuppressions
(FileText fileText) Collets allSuppressWithNearbyTextFilter.Suppression
instances retrieved from the givenFileText
.SuppressWithNearbyTextFilter.getSuppression
(FileText fileText, int lineNo) Tries to extract the suppression from the given line.SuppressWithPlainTextCommentFilter.getSuppression
(FileText fileText, int lineNo) Tries to extract the suppression from the given line.SuppressWithPlainTextCommentFilter.getSuppressions
(FileText fileText) Returns the list ofSuppressWithPlainTextCommentFilter.Suppression
instances retrieved from the givenFileText
. -
Uses of FileText in com.puppycrawl.tools.checkstyle.gui
Methods in com.puppycrawl.tools.checkstyle.gui that return FileTextModifier and TypeMethodDescriptionprivate static FileText
MainFrameModel.getFileText
(File file) Get FileText from a file. -
Uses of FileText in com.puppycrawl.tools.checkstyle.xpath
Fields in com.puppycrawl.tools.checkstyle.xpath declared as FileTextModifier and TypeFieldDescriptionprivate final FileText
XpathQueryGenerator.fileText
TheFileText
object, representing content of the file.Constructors in com.puppycrawl.tools.checkstyle.xpath with parameters of type FileTextModifierConstructorDescriptionXpathQueryGenerator
(DetailAST rootAst, int lineNumber, int columnNumber, int tokenType, FileText fileText, int tabWidth) Creates a newXpathQueryGenerator
instance.XpathQueryGenerator
(DetailAST rootAst, int lineNumber, int columnNumber, FileText fileText, int tabWidth) Creates a newXpathQueryGenerator
instance.