com.puppycrawl.tools.checkstyle.checks.header

Class RegexpHeaderCheck

public class RegexpHeaderCheck extends AbstractHeaderCheck

Checks the header of the source against a header file that contains a java.util.regex.Pattern regular expression for each line of the source header.

Author: Lars K|hne o_sukhodolsky

Method Summary
voidbeginTree(DetailAST aRootAST)
protected HeaderInfocreateHeaderInfo()
protected RegexpHeaderInfogetRegexpHeaderInfo()
Provides typesafe access to the subclass specific HeaderInfo.
voidinit()
voidsetMultiLines(int[] aList)
Set the lines numbers to repeat in the header check.

Method Detail

beginTree

public void beginTree(DetailAST aRootAST)
{@inheritDoc }

createHeaderInfo

protected HeaderInfo createHeaderInfo()
{@inheritDoc }

getRegexpHeaderInfo

protected RegexpHeaderInfo getRegexpHeaderInfo()
Provides typesafe access to the subclass specific HeaderInfo.

Returns: the result of createHeaderInfo

init

public void init()

See Also: init

setMultiLines

public void setMultiLines(int[] aList)
Set the lines numbers to repeat in the header check.

Parameters: aList comma separated list of line numbers to repeat in header.