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, setContext
public TopLevelTypeCheckBase()
public void execute() throws CheckException
execute
in class CheckImplementationBase
CheckException
protected java.lang.String getXPathTypeSelectionString()
protected abstract void analyzeTopLevelTypes(java.util.List<ShallowEntity> topLevelTypeEntities) throws CheckException
CheckException
protected abstract boolean isTopLevelType(ShallowEntity typeEntity)