public abstract class CommentCheckBase extends CheckImplementationBase
context
Constructor and Description |
---|
CommentCheckBase() |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Executes the custom check with the given context.
|
protected abstract void |
processComment(IToken token,
int startLine,
int endLine)
When implemented in a subclass, processes the specified comment token, which
runs from the provided start line to the provided end line.
|
createFinding, createFinding, createFinding, createFinding, createFinding, createFinding, createFinding, createFindingForSiblingEntities, createFindingForSiblings, createFindingOnFirstLine, createFindingOnUnfilteredCode, createFindingOnUnfilteredCode, createFindingOnUnfilteredCode, createInstance, createSelectionPattern, getCodeViewOption, initialize, isCpp, select, select, selectUnfilteredPreProcessed, setContext
public CommentCheckBase()
public void execute() throws CheckException
execute
in class CheckImplementationBase
CheckException
protected abstract void processComment(IToken token, int startLine, int endLine) throws CheckException
token
- the comment token to processstartLine
- the 1-based start line of the comment token in the analyzed
resource.endLine
- the 1-based end line of the comment token in the analyzed
resource.CheckException