public class HeaderCheck extends AbstractHeaderCheck
Constructor and Description |
---|
HeaderCheck() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isMatch(int aLineNumber,
String aLine)
Checks if a code line matches the required header line.
|
protected void |
processFiltered(File aFile,
List<String> aLines)
Called to process a file that matches the specified file extensions.
|
void |
setIgnoreLines(int[] aList)
Set the lines numbers to ignore in the header check.
|
finishLocalSetup, getHeaderLines, postprocessHeaderLines, setCharset, setHeader, setHeaderFile
beginProcessing, destroy, finishProcessing, fireErrors, getMessageCollector, getMessageDispatcher, init, log, log, process, setFileExtensions, setMessageDispatcher
getCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, log, setId, setSeverity
configure, contextualize, getConfiguration, setupChild
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
configure
contextualize
protected boolean isMatch(int aLineNumber, String aLine)
aLineNumber
- the line number to check against the headeraLine
- the line contentspublic void setIgnoreLines(int[] aList)
aList
- comma separated list of line numbers to ignore in header.protected void processFiltered(File aFile, List<String> aLines)
AbstractFileSetCheck
processFiltered
in class AbstractFileSetCheck
aFile
- the file to be processedaLines
- an immutable list of the contents of the file.Copyright © 2001–2017. All rights reserved.