|
||||||||||
| 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
public abstract class AbstractHeaderCheck
Abstract super class for header checks. Provides support for headerFile property.
| Constructor Summary | |
|---|---|
AbstractHeaderCheck()
|
|
| Method Summary | |
|---|---|
protected abstract com.puppycrawl.tools.checkstyle.checks.header.HeaderInfo |
createHeaderInfo()
Abstract factory method to create an unconfigured header info bean. |
protected void |
finishLocalSetup()
Checks that required args were specified. |
int[] |
getDefaultTokens()
Returns the default token a check is interested in. |
protected com.puppycrawl.tools.checkstyle.checks.header.HeaderInfo |
getHeaderInfo()
Return the header info to check against. |
protected String[] |
getHeaderLines()
Return the header lines to check against. |
void |
setHeader(String aHeader)
Set the header to check against. |
void |
setHeaderFile(String aFileName)
Set the header file to check against. |
| Methods inherited from class com.puppycrawl.tools.checkstyle.api.Check |
|---|
beginTree, destroy, finishTree, getAcceptableTokens, getClassLoader, getFileContents, getLines, getRequiredTokens, getTabWidth, getTokenNames, init, 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 AbstractHeaderCheck()
| Method Detail |
|---|
protected String[] getHeaderLines()
protected abstract com.puppycrawl.tools.checkstyle.checks.header.HeaderInfo createHeaderInfo()
protected com.puppycrawl.tools.checkstyle.checks.header.HeaderInfo getHeaderInfo()
public void setHeaderFile(String aFileName)
throws org.apache.commons.beanutils.ConversionException
aFileName - the file that contains the header to check against.
org.apache.commons.beanutils.ConversionException - if the file cannot be loadedpublic void setHeader(String aHeader)
aHeader - header content to check against.
org.apache.commons.beanutils.ConversionException - if the header cannot be interpreted
protected final void finishLocalSetup()
throws CheckstyleException
finishLocalSetup in class AutomaticBeanCheckstyleException - if there is a configuration error.AutomaticBean.finishLocalSetup()public final int[] getDefaultTokens()
getDefaultTokens in class CheckTokenTypes
|
Back to the Checkstyle Home Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||