public abstract class TopLevelTypeCheckBase extends CheckImplementationBase
context| Constructor and Description |
|---|
TopLevelTypeCheckBase() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
analyzeTopLevelTypes(java.util.List<ShallowEntity> topLevelTypeEntities)
Analyzes the given top-level entities.
|
void |
execute()
Executes the custom check with the given context.
|
protected java.lang.String |
getXPathTypeSelectionString()
Returns the xPath selection string that is used to select all types.
|
protected abstract boolean |
isTopLevelType(ShallowEntity typeEntity)
Returns whether the given entity represents a top-level type.
|
createFinding, createFinding, createFinding, createFinding, createFinding, createFinding, createFinding, createFindingForSiblingEntities, createFindingForSiblings, createFindingOnFirstLine, createFindingOnUnfilteredCode, createFindingOnUnfilteredCode, createFindingOnUnfilteredCode, createInstance, createSelectionPattern, getCodeViewOption, initialize, isCpp, select, select, selectUnfilteredPreProcessed, setContextpublic TopLevelTypeCheckBase()
public void execute() throws CheckException
execute in class CheckImplementationBaseCheckExceptionprotected java.lang.String getXPathTypeSelectionString()
protected abstract void analyzeTopLevelTypes(java.util.List<ShallowEntity> topLevelTypeEntities) throws CheckException
CheckExceptionprotected abstract boolean isTopLevelType(ShallowEntity typeEntity)