|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.puppycrawl.tools.checkstyle.api.AutomaticBean
com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
com.puppycrawl.tools.checkstyle.api.Check
com.puppycrawl.tools.checkstyle.checks.header.AbstractHeaderCheck
com.puppycrawl.tools.checkstyle.checks.header.RegexpHeaderCheck
Checks the header of the source against a header file that contains a
regular expression
for each line of the source header.
Constructor Summary | |
RegexpHeaderCheck()
|
Method Summary | |
void |
beginTree(DetailAST aRootAST)
Called before the starting to process a tree. Ideal place to initialise information that is to be collected whilst processing a tree. |
protected com.puppycrawl.tools.checkstyle.checks.header.HeaderInfo |
createHeaderInfo()
Abstract factory method to create an unconfigured header info bean. Note that the actual type of the return value can be subclass specific. |
protected com.puppycrawl.tools.checkstyle.checks.header.RegexpHeaderInfo |
getRegexpHeaderInfo()
Provides typesafe access to the subclass specific HeaderInfo. |
void |
init()
Initialse the check. |
void |
setMultiLines(int[] aList)
Set the lines numbers to repeat in the header check. |
Methods inherited from class com.puppycrawl.tools.checkstyle.checks.header.AbstractHeaderCheck |
finishLocalSetup, getDefaultTokens, getHeaderInfo, getHeaderLines, setHeader, setHeaderFile |
Methods inherited from class com.puppycrawl.tools.checkstyle.api.Check |
destroy, finishTree, getAcceptableTokens, getClassLoader, getFileContents, getLines, getRequiredTokens, getTabWidth, getTokenNames, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens, visitToken |
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter |
getId, getMessageBundle, getSeverity, getSeverityLevel, log, log, log, log, log, log, log, log, log, setId, setSeverity |
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AutomaticBean |
configure, contextualize, getConfiguration, setupChild |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RegexpHeaderCheck()
Method Detail |
protected com.puppycrawl.tools.checkstyle.checks.header.RegexpHeaderInfo getRegexpHeaderInfo()
createHeaderInfo()
public void setMultiLines(int[] aList)
aList
- comma separated list of line numbers to repeat in header.public void init()
Check
init
in class Check
Check.init()
public void beginTree(DetailAST aRootAST)
beginTree
in class Check
aRootAST
- the root of the treeprotected com.puppycrawl.tools.checkstyle.checks.header.HeaderInfo createHeaderInfo()
createHeaderInfo
in class AbstractHeaderCheck
|
Back to the Checkstyle Home Page | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |