public class CheckstyleApiFixer extends Object
Constructor and Description |
---|
CheckstyleApiFixer(Check pCheck)
Constructor.
|
CheckstyleApiFixer(Check pCheck,
String pCurrentFileNameMockFile)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
File |
getCurrentFileName()
Wrapper for
FileContents.getFileName() (Checkstyle issue #1205). |
String |
getTokenName(int pTokenId)
Returns the name of a token for a given ID.
|
public CheckstyleApiFixer(@Nonnull Check pCheck)
pCheck
- the check for which this instance of the API fixer shall runpublic CheckstyleApiFixer(@Nonnull Check pCheck, @Nullable String pCurrentFileNameMockFile)
pCheck
- the check for which this instance of the API fixer shall runpCurrentFileNameMockFile
- file to use as result of getCurrentFileName()
in unit tests@CheckForNull public File getCurrentFileName()
FileContents.getFileName()
(Checkstyle issue #1205).UnsupportedOperationException
- no known variant of FileContents.getFileName()
could be found@Nonnull public String getTokenName(int pTokenId)
pTokenId
- the ID of the token name to getUnsupportedOperationException
- no known variant of getTokenName()
could be found