Uses of Class
com.puppycrawl.tools.checkstyle.api.FileContents
-
Packages that use FileContents 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.regexp Contains the regular expression checks that are bundled with the main distribution.com.puppycrawl.tools.checkstyle.filters Contains the filters that are bundled with the main distribution. -
-
Uses of FileContents in com.puppycrawl.tools.checkstyle
Methods in com.puppycrawl.tools.checkstyle with parameters of type FileContents Modifier and Type Method Description private voidTreeWalker. notifyBegin(DetailAST rootAST, FileContents contents, TreeWalker.AstState astState)Notify checks that we are about to begin walking a tree.static DetailASTTreeWalker. parse(FileContents contents)Static helper method to parses a Java source file.static DetailASTTreeWalker. parseWithComments(FileContents contents)Parses Java source file.private voidTreeWalker. walk(DetailAST ast, FileContents contents, TreeWalker.AstState astState)Initiates the walk of an AST. -
Uses of FileContents in com.puppycrawl.tools.checkstyle.api
Fields in com.puppycrawl.tools.checkstyle.api declared as FileContents Modifier and Type Field Description private FileContentsAbstractCheck. fileContentsThe current file contents.Methods in com.puppycrawl.tools.checkstyle.api that return FileContents Modifier and Type Method Description FileContentsAbstractCheck. getFileContents()Returns the file contents associated with the tree.Methods in com.puppycrawl.tools.checkstyle.api with parameters of type FileContents Modifier and Type Method Description voidAbstractCheck. setFileContents(FileContents contents)Set the file contents associated with the tree. -
Uses of FileContents in com.puppycrawl.tools.checkstyle.checks
Fields in com.puppycrawl.tools.checkstyle.checks declared as FileContents Modifier and Type Field Description private static FileContentsFileContentsHolder. currentFileContentsThe current file contents.Methods in com.puppycrawl.tools.checkstyle.checks that return FileContents Modifier and Type Method Description static FileContentsFileContentsHolder. getContents()Deprecated.use getCurrentFileContents() instead.static FileContentsFileContentsHolder. getCurrentFileContents()Returns content of current file. -
Uses of FileContents in com.puppycrawl.tools.checkstyle.checks.regexp
Fields in com.puppycrawl.tools.checkstyle.checks.regexp declared as FileContents Modifier and Type Field Description private FileContentsCommentSuppressor. currentContentsFile contents to check for comments.Constructors in com.puppycrawl.tools.checkstyle.checks.regexp with parameters of type FileContents Constructor Description CommentSuppressor(FileContents currentContents)Constructor for this suppressor. -
Uses of FileContents in com.puppycrawl.tools.checkstyle.filters
Fields in com.puppycrawl.tools.checkstyle.filters with type parameters of type FileContents Modifier and Type Field Description private java.lang.ref.WeakReference<FileContents>SuppressionCommentFilter. fileContentsReferenceReferences the current FileContents for this filter.private java.lang.ref.WeakReference<FileContents>SuppressWithNearbyCommentFilter. fileContentsReferenceReferences the current FileContents for this filter.Methods in com.puppycrawl.tools.checkstyle.filters that return FileContents Modifier and Type Method Description FileContentsSuppressionCommentFilter. getFileContents()Returns FileContents for this filter.FileContentsSuppressWithNearbyCommentFilter. getFileContents()Returns FileContents for this filter.Methods in com.puppycrawl.tools.checkstyle.filters with parameters of type FileContents Modifier and Type Method Description voidSuppressionCommentFilter. setFileContents(FileContents fileContents)Set the FileContents for this filter.voidSuppressWithNearbyCommentFilter. setFileContents(FileContents fileContents)Set the FileContents for this filter.
-