public interface ICheckContext extends ITokenElementContext
Modifier and Type | Method and Description |
---|---|
<T extends IExtractedValue<D>,D extends java.io.Serializable> |
accessPhaseInvertedResult(java.lang.Class<? extends IGlobalExtractionPhase<T,D>> phaseClass)
Returns an accessor function to read inverted results of the provided phase.
|
<T extends IExtractedValue<D>,D extends java.io.Serializable> |
accessPhaseResult(java.lang.Class<? extends IGlobalExtractionPhase<T,D>> phaseClass)
Returns an accessor function to read results of the provided phase.
|
void |
createFindingForElement(java.lang.String message)
Creates a finding with the given message for the whole analyzed token
element.
|
void |
createFindingForLines(java.lang.String message,
int startLine,
int endLine,
ECodeViewOption.ETextViewOption textView)
Creates a finding with the given message from the given start line
(inclusive) to the given end line (inclusive).
|
void |
createFindingForOffsets(java.lang.String message,
int startOffset,
int endOffset,
ECodeViewOption.ETextViewOption textView)
Creates a finding with the given message from the given start offset
(inclusive) to the given end offset (inclusive).
|
void |
createFindingForSiblings(java.lang.String message,
CheckTextRegionLocation mainLocation,
java.util.List<CheckTextRegionLocation> siblingLocations)
Creates one finding for the given message and main location.
|
void |
createFindingForSiblingsInCurrentFile(java.lang.String message,
java.util.List<OffsetBasedRegion> regions)
Creates a finding for each entry in the given List of
OffsetBasedRegion with the given message from the given start offsets
(inclusive) to the corresponding end offsets (inclusive). |
<T extends IExtractedValue<D>,D extends java.io.Serializable> |
listAllPhaseValues(java.lang.Class<? extends IGlobalExtractionPhase<T,D>> phaseClass)
Returns all values that have been extracted by the phase.
|
calculateLocalPreprocessedTokens, getAbstractSyntaxTree, getClangTranslationUnitWrapper, getLanguage, getRootEntity, getTextContent, getTokens, getTypeResolution, getUniformPath
void createFindingForElement(java.lang.String message) throws CheckException
CheckException
void createFindingForLines(java.lang.String message, int startLine, int endLine, ECodeViewOption.ETextViewOption textView) throws CheckException
ECodeViewOption.ETextViewOption
that was used to get the token stream.
If textView is ECodeViewOption.ETextViewOption.UNFILTERED_CONTENT
and the finding
refers to filtered code, then it will be ignored.CheckException
void createFindingForSiblingsInCurrentFile(java.lang.String message, java.util.List<OffsetBasedRegion> regions) throws CheckException
OffsetBasedRegion
with the given message from the given start offsets
(inclusive) to the corresponding end offsets (inclusive).
Offsets must be based on filtered content
(ECodeViewOption.ETextViewOption.FILTERED_CONTENT
).CheckException
void createFindingForSiblings(java.lang.String message, CheckTextRegionLocation mainLocation, java.util.List<CheckTextRegionLocation> siblingLocations)
ECodeViewOption.ETextViewOption.UNFILTERED_CONTENT
.void createFindingForOffsets(java.lang.String message, int startOffset, int endOffset, ECodeViewOption.ETextViewOption textView) throws CheckException
ECodeViewOption.ETextViewOption
that was used to get the token stream.
If textView is ECodeViewOption.ETextViewOption.UNFILTERED_CONTENT
and the finding
refers to filtered code, then it will be ignored.CheckException
<T extends IExtractedValue<D>,D extends java.io.Serializable> java.util.function.Function<java.lang.String,java.util.List<T>> accessPhaseResult(java.lang.Class<? extends IGlobalExtractionPhase<T,D>> phaseClass)
<T extends IExtractedValue<D>,D extends java.io.Serializable> java.util.function.Function<java.lang.String,java.util.List<T>> accessPhaseInvertedResult(java.lang.Class<? extends IGlobalExtractionPhase<T,D>> phaseClass)
<T extends IExtractedValue<D>,D extends java.io.Serializable> java.util.List<java.lang.String> listAllPhaseValues(java.lang.Class<? extends IGlobalExtractionPhase<T,D>> phaseClass)