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>
- Daniel Grenner
beginTree , destroy , finishTree , getAcceptableTokens , getClassLoader , getDefaultTokens , getFileContents , getLines , getRequiredTokens , getTabWidth , getTokenNames , init , leaveToken , log , log , setClassLoader , setFileContents , setMessages , setTabWidth , setTokens , visitToken |
getMessageBundle , getSeverity , getSeverityLevel , log , log , log , log , log , log , log , log , log , log , log , setSeverity |
RequiredRegexpCheck
public RequiredRegexpCheck()
Instantiates an new GenericIllegalRegexpCheck.
getDefaultTokens
public int[] getDefaultTokens()
- getDefaultTokens in interface Check
Check