com.puppycrawl.tools.checkstyle.checks

Class RequiredRegexpCheck

public class RequiredRegexpCheck extends AbstractFormatCheck

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>
 

Author: Daniel Grenner

Constructor Summary
RequiredRegexpCheck()
Instantiates an new GenericIllegalRegexpCheck.
Method Summary
voidbeginTree(DetailAST aRootAST)
{@inheritDoc}
int[]getDefaultTokens()
{@inheritDoc}

Constructor Detail

RequiredRegexpCheck

public RequiredRegexpCheck()
Instantiates an new GenericIllegalRegexpCheck.

Method Detail

beginTree

public void beginTree(DetailAST aRootAST)
{@inheritDoc}

getDefaultTokens

public int[] getDefaultTokens()
{@inheritDoc}