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.
|
Modifier and Type | Method and Description |
---|---|
private void |
TreeWalker.notifyBegin(DetailAST rootAST,
FileContents contents,
TreeWalker.AstState astState)
Notify checks that we are about to begin walking a tree.
|
static DetailAST |
TreeWalker.parse(FileContents contents)
Static helper method to parses a Java source file.
|
static DetailAST |
TreeWalker.parseWithComments(FileContents contents)
Parses Java source file.
|
private void |
TreeWalker.walk(DetailAST ast,
FileContents contents,
TreeWalker.AstState astState)
Initiates the walk of an AST.
|
Modifier and Type | Field and Description |
---|---|
private FileContents |
AbstractCheck.fileContents
The current file contents.
|
Modifier and Type | Method and Description |
---|---|
FileContents |
AbstractCheck.getFileContents()
Returns the file contents associated with the tree.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractCheck.setFileContents(FileContents contents)
Set the file contents associated with the tree.
|
Modifier and Type | Field and Description |
---|---|
private static FileContents |
FileContentsHolder.currentFileContents
The current file contents.
|
Modifier and Type | Method and Description |
---|---|
static FileContents |
FileContentsHolder.getContents()
Deprecated.
use getCurrentFileContents() instead.
|
static FileContents |
FileContentsHolder.getCurrentFileContents()
Returns content of current file.
|
Modifier and Type | Field and Description |
---|---|
private FileContents |
CommentSuppressor.currentContents
File contents to check for comments.
|
Constructor and Description |
---|
CommentSuppressor(FileContents currentContents)
Constructor for this suppressor.
|
Modifier and Type | Field and Description |
---|---|
private java.lang.ref.WeakReference<FileContents> |
SuppressWithNearbyCommentFilter.fileContentsReference
References the current FileContents for this filter.
|
private java.lang.ref.WeakReference<FileContents> |
SuppressionCommentFilter.fileContentsReference
References the current FileContents for this filter.
|
Modifier and Type | Method and Description |
---|---|
FileContents |
SuppressWithNearbyCommentFilter.getFileContents()
Returns FileContents for this filter.
|
FileContents |
SuppressionCommentFilter.getFileContents()
Returns FileContents for this filter.
|
Modifier and Type | Method and Description |
---|---|
void |
SuppressWithNearbyCommentFilter.setFileContents(FileContents fileContents)
Set the FileContents for this filter.
|
void |
SuppressionCommentFilter.setFileContents(FileContents fileContents)
Set the FileContents for this filter.
|