| 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.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 | Field and Description |
|---|---|
private FileContents |
TreeWalkerAuditEvent.fileContents
The file contents.
|
| Modifier and Type | Method and Description |
|---|---|
FileContents |
TreeWalkerAuditEvent.getFileContents()
Returns contents of the file.
|
| Modifier and Type | Method and Description |
|---|---|
private java.util.SortedSet<Violation> |
TreeWalker.getFilteredViolations(java.lang.String fileName,
FileContents fileContents,
DetailAST rootAST)
Returns filtered set of
Violation. |
private void |
TreeWalker.notifyBegin(DetailAST rootAST,
FileContents contents,
TreeWalker.AstState astState)
Notify checks that we are about to begin walking a tree.
|
static DetailAST |
JavaParser.parse(FileContents contents)
Static helper method to parses a Java source file.
|
private void |
TreeWalker.walk(DetailAST ast,
FileContents contents,
TreeWalker.AstState astState)
Initiates the walk of an AST.
|
| Constructor and Description |
|---|
TreeWalkerAuditEvent(FileContents fileContents,
java.lang.String fileName,
Violation violation,
DetailAST rootAst)
Creates a new
TreeWalkerAuditEvent instance. |
| Modifier and Type | Field and Description |
|---|---|
private FileContents |
AbstractCheck.FileContext.fileContents
The current file contents.
|
private FileContents |
AbstractFileSetCheck.FileContext.fileContents
The current file contents.
|
| Modifier and Type | Method and Description |
|---|---|
FileContents |
AbstractCheck.getFileContents()
Deprecated.
Usage of this method is no longer accepted.
Please use AST based methods instead.
|
protected FileContents |
AbstractFileSetCheck.getFileContents()
Returns the file contents associated with the file.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractCheck.setFileContents(FileContents contents)
Set the file contents associated with the tree.
|
void |
AbstractFileSetCheck.setFileContents(FileContents contents)
Set the file contents associated with the tree.
|
| 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 |
|---|---|
private FileContents |
SuppressWithNearbyCommentFilter.getFileContents()
Returns FileContents for this filter.
|
private 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.
|
Copyright © 2001-2022. All Rights Reserved.