public abstract class ThrowExceptionCheckBase extends EntityTokenPatternCheckBase
context| Constructor and Description |
|---|
ThrowExceptionCheckBase() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
createFindingForException(java.lang.String className)
Returns true if this check should create a finding for the thrown exception.
|
protected TokenPattern |
getFindingPattern()
Returns the pattern that the processed tokens are matched against.
|
protected java.lang.String |
getXPathSelectionString()
Returns the xPath string for selecting entities.
|
protected void |
processEntity(ShallowEntity entity)
Processes a single selected entity.
|
protected void |
processTokens(java.util.List<IToken> tokens)
Process the start or end tokens for a selected entity.
|
abstract boolean |
skipMethod(ShallowEntity entity)
Returns true if given method should be skipped from the check analysis.
|
getFindingMessageexecute, filterEntitiescreateFinding, createFinding, createFinding, createFinding, createFinding, createFinding, createFinding, createFindingForSiblingEntities, createFindingForSiblings, createFindingOnFirstLine, createFindingOnUnfilteredCode, createFindingOnUnfilteredCode, createFindingOnUnfilteredCode, createInstance, createSelectionPattern, getCodeViewOption, initialize, isCpp, select, select, selectUnfilteredPreProcessed, setContextpublic ThrowExceptionCheckBase()
protected java.lang.String getXPathSelectionString()
getXPathSelectionString in class EntityCheckBaseprotected TokenPattern getFindingPattern()
TokenPattern.group(int).
All tokens that are matched within this group are passed to
EntityTokenPatternCheckBase.getFindingMessage(List) and a finding will be created for them.getFindingPattern in class EntityTokenPatternCheckBaseprotected void processEntity(ShallowEntity entity) throws CheckException
processEntity in class EntityTokenCheckBaseCheckExceptionpublic abstract boolean skipMethod(ShallowEntity entity)
protected void processTokens(java.util.List<IToken> tokens) throws CheckException
processTokens in class EntityTokenPatternCheckBaseCheckExceptionpublic abstract boolean createFindingForException(java.lang.String className) throws CheckException
CheckException