public abstract class EntityTokenPatternCheckBase extends EntityTokenCheckBase
context| Constructor and Description |
|---|
EntityTokenPatternCheckBase() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.lang.String |
getFindingMessage(java.util.List<IToken> tokens)
Creates a finding messages for the given tokens.
|
protected abstract TokenPattern |
getFindingPattern()
Returns the pattern that the processed tokens are matched against.
|
protected void |
processTokens(java.util.List<IToken> tokens)
Process the start or end tokens for a selected entity.
|
processEntityexecute, filterEntities, getXPathSelectionStringcreateFinding, createFinding, createFinding, createFinding, createFinding, createFinding, createFinding, createFindingForSiblingEntities, createFindingForSiblings, createFindingOnFirstLine, createFindingOnUnfilteredCode, createFindingOnUnfilteredCode, createFindingOnUnfilteredCode, createInstance, createSelectionPattern, getCodeViewOption, initialize, isCpp, select, select, selectUnfilteredPreProcessed, setContextpublic EntityTokenPatternCheckBase()
protected void processTokens(java.util.List<IToken> tokens) throws CheckException
processTokens in class EntityTokenCheckBaseCheckExceptionprotected abstract TokenPattern getFindingPattern()
TokenPattern.group(int).
All tokens that are matched within this group are passed to
getFindingMessage(List) and a finding will be created for them.protected abstract java.lang.String getFindingMessage(java.util.List<IToken> tokens)