Uses of Class
com.puppycrawl.tools.checkstyle.api.FileText
-
Packages that use FileText Package Description com.puppycrawl.tools.checkstyle Contains the implementation of the Checkstyle framework.com.puppycrawl.tools.checkstyle.api Contains the core API to be used to implement checks.com.puppycrawl.tools.checkstyle.checks Contains the checks that are bundled with the main distribution.com.puppycrawl.tools.checkstyle.checks.header File Header checks.com.puppycrawl.tools.checkstyle.checks.javadoc Contains the Javadoc checks that are bundled with the main distribution.com.puppycrawl.tools.checkstyle.checks.regexp Contains the regular expression checks that are bundled with the main distribution.com.puppycrawl.tools.checkstyle.checks.sizes Contains the Size Violations checks that are bundled with the main distribution.com.puppycrawl.tools.checkstyle.checks.whitespace Contains the Whitespace checks that are bundled with the main distribution.com.puppycrawl.tools.checkstyle.filters Contains the filters that are bundled with the main distribution.com.puppycrawl.tools.checkstyle.gui User interface classes for CheckStyle.com.puppycrawl.tools.checkstyle.xpath 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 FileText Modifier and Type Method Description private static java.lang.StringSuppressionsStringPrinter. generate(FileText fileText, DetailAST detailAST, int lineNumber, int columnNumber, int tabWidth)CreatesXpathQueryGeneratorinstance and generates suppressions.static DetailASTJavaParser. parseFileText(FileText text, JavaParser.Options options)Parse a text and return the parse tree.static java.lang.StringAstTreeStringPrinter. printAst(FileText text, JavaParser.Options options)Parse a file and print the parse tree.protected voidTreeWalker. processFiltered(java.io.File file, FileText fileText) -
Uses of FileText in com.puppycrawl.tools.checkstyle.api
Fields in com.puppycrawl.tools.checkstyle.api declared as FileText Modifier and Type Field Description private FileTextFileContents. textThe text.Methods in com.puppycrawl.tools.checkstyle.api that return FileText Modifier and Type Method Description FileTextFileContents. getText()Get the full text of the file.Methods in com.puppycrawl.tools.checkstyle.api with parameters of type FileText Modifier and Type Method Description java.util.SortedSet<Violation>AbstractFileSetCheck. process(java.io.File file, FileText fileText)java.util.SortedSet<Violation>FileSetCheck. process(java.io.File file, FileText fileText)Request to process a file.protected abstract voidAbstractFileSetCheck. processFiltered(java.io.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 FileText Constructor Description FileContents(FileText text)Creates a newFileContentsinstance.FileText(FileText fileText)Copy constructor. -
Uses of FileText in com.puppycrawl.tools.checkstyle.checks
Methods in com.puppycrawl.tools.checkstyle.checks with parameters of type FileText Modifier and Type Method Description private static intOrderedPropertiesCheck. getIndex(int startLineNo, FileText fileText, java.lang.String keyName)Inner method to get the index number of the position of keyName.private static intOrderedPropertiesCheck. getLineNumber(int startLineNo, FileText fileText, java.lang.String previousProp, java.lang.String propKey)Method returns the index number where the key is detected (starting at 0).private static intUniquePropertiesCheck. getLineNumber(FileText fileText, java.lang.String keyName)Method returns line number the key is detected in the checked properties files first.protected voidNewlineAtEndOfFileCheck. processFiltered(java.io.File file, FileText fileText)protected voidOrderedPropertiesCheck. processFiltered(java.io.File file, FileText fileText)Processes the file and check order.protected voidTranslationCheck. processFiltered(java.io.File file, FileText fileText)protected voidUniquePropertiesCheck. processFiltered(java.io.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 FileText Modifier and Type Method Description protected voidHeaderCheck. processFiltered(java.io.File file, FileText fileText)protected voidRegexpHeaderCheck. processFiltered(java.io.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 FileText Modifier and Type Method Description protected voidJavadocPackageCheck. processFiltered(java.io.File file, FileText fileText) -
Uses of FileText in com.puppycrawl.tools.checkstyle.checks.regexp
Fields in com.puppycrawl.tools.checkstyle.checks.regexp declared as FileText Modifier and Type Field Description private FileTextMultilineDetector. textThe file text content.Methods in com.puppycrawl.tools.checkstyle.checks.regexp with parameters of type FileText Modifier and Type Method Description private booleanRegexpCheck. isIgnore(int startLine, FileText text, LineColumn start)Detect ignore situation.protected voidRegexpMultilineCheck. processFiltered(java.io.File file, FileText fileText)protected voidRegexpOnFilenameCheck. processFiltered(java.io.File file, FileText fileText)protected voidRegexpSinglelineCheck. processFiltered(java.io.File file, FileText fileText)voidMultilineDetector. processLines(FileText fileText)Processes an entire text file looking for matches.voidSinglelineDetector. 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 FileText Modifier and Type Method Description protected voidFileLengthCheck. processFiltered(java.io.File file, FileText fileText)protected voidLineLengthCheck. processFiltered(java.io.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 FileText Modifier and Type Method Description protected voidFileTabCharacterCheck. processFiltered(java.io.File file, FileText fileText) -
Uses of FileText in com.puppycrawl.tools.checkstyle.filters
Methods in com.puppycrawl.tools.checkstyle.filters that return FileText Modifier and Type Method Description private static FileTextSuppressWithPlainTextCommentFilter. getFileText(java.lang.String fileName)ReturnsFileTextinstance created based on the given file name.Methods in com.puppycrawl.tools.checkstyle.filters with parameters of type FileText Modifier and Type Method Description private java.util.Optional<SuppressWithPlainTextCommentFilter.Suppression>SuppressWithPlainTextCommentFilter. getSuppression(FileText fileText, int lineNo)Tries to extract the suppression from the given line.private java.util.List<SuppressWithPlainTextCommentFilter.Suppression>SuppressWithPlainTextCommentFilter. getSuppressions(FileText fileText)Returns the list ofSuppressWithPlainTextCommentFilter.Suppressioninstances retrieved from the givenFileText. -
Uses of FileText in com.puppycrawl.tools.checkstyle.gui
Methods in com.puppycrawl.tools.checkstyle.gui that return FileText Modifier and Type Method Description private static FileTextMainFrameModel. getFileText(java.io.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 FileText Modifier and Type Field Description private FileTextXpathQueryGenerator. fileTextTheFileTextobject, representing content of the file.Constructors in com.puppycrawl.tools.checkstyle.xpath with parameters of type FileText Constructor Description XpathQueryGenerator(DetailAST rootAst, int lineNumber, int columnNumber, int tokenType, FileText fileText, int tabWidth)Creates a newXpathQueryGeneratorinstance.XpathQueryGenerator(DetailAST rootAst, int lineNumber, int columnNumber, FileText fileText, int tabWidth)Creates a newXpathQueryGeneratorinstance.
-