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.
|
processEntity
execute, filterEntities, getXPathSelectionString
createFinding, createFinding, createFinding, createFinding, createFinding, createFinding, createFinding, createFindingForSiblingEntities, createFindingForSiblings, createFindingOnFirstLine, createFindingOnUnfilteredCode, createFindingOnUnfilteredCode, createFindingOnUnfilteredCode, createInstance, createSelectionPattern, getCodeViewOption, initialize, isCpp, select, select, selectUnfilteredPreProcessed, setContext
public EntityTokenPatternCheckBase()
protected void processTokens(java.util.List<IToken> tokens) throws CheckException
processTokens
in class EntityTokenCheckBase
CheckException
protected 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)