com.puppycrawl.tools.checkstyle.checks
Class RequiredRegexpCheck
- Configurable, Contextualizable
public class RequiredRegexpCheck
A check that makes sure that a specified pattern exists in the code.
An example of how to configure the check to make sure a copyright statement
is included in the file (but without requirements on where in the file
it should be):
<module name="RequiredRegexp">
<property name="format" value="This code is copyrighted"/>
</module>
beginTree, destroy, finishTree, getAcceptableTokens, getClassLoader, getDefaultTokens, getFileContents, getLines, getRequiredTokens, getTabWidth, getTokenNames, init, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens, visitToken |
getId, getMessageBundle, getSeverity, getSeverityLevel, log, log, log, log, log, log, log, log, log, log, log, setId, setSeverity |
RequiredRegexpCheck
public RequiredRegexpCheck()
Instantiates an new GenericIllegalRegexpCheck.