| Modifier and Type | Class and Description |
|---|---|
static interface |
HighlightInfo.Builder |
static class |
HighlightInfo.IntentionActionDescriptor |
| Modifier and Type | Field and Description |
|---|---|
int |
endOffset |
TextAttributes |
forcedTextAttributes |
TextAttributesKey |
forcedTextAttributesKey |
java.util.List<Pair<HighlightInfo.IntentionActionDescriptor,RangeMarker>> |
quickFixActionMarkers |
java.util.List<Pair<HighlightInfo.IntentionActionDescriptor,TextRange>> |
quickFixActionRanges |
int |
startOffset |
HighlightInfoType |
type |
BY_START_OFFSET_THEN_END_OFFSET, EMPTY_ARRAY| Modifier | Constructor and Description |
|---|---|
protected |
HighlightInfo(TextAttributes forcedTextAttributes,
TextAttributesKey forcedTextAttributesKey,
HighlightInfoType type,
int startOffset,
int endOffset,
java.lang.String escapedDescription,
java.lang.String escapedToolTip,
HighlightSeverity severity,
boolean afterEndOfLine,
java.lang.Boolean needsUpdateOnTyping,
boolean isFileLevelAnnotation,
int navigationShift,
ProblemGroup problemGroup,
java.lang.String inspectionToolId,
GutterMark gutterIconRenderer,
int group) |
public final TextAttributes forcedTextAttributes
public final TextAttributesKey forcedTextAttributesKey
public final HighlightInfoType type
public final int startOffset
public final int endOffset
public java.util.List<Pair<HighlightInfo.IntentionActionDescriptor,TextRange>> quickFixActionRanges
public java.util.List<Pair<HighlightInfo.IntentionActionDescriptor,RangeMarker>> quickFixActionMarkers
protected HighlightInfo(TextAttributes forcedTextAttributes, TextAttributesKey forcedTextAttributesKey, HighlightInfoType type, int startOffset, int endOffset, java.lang.String escapedDescription, java.lang.String escapedToolTip, HighlightSeverity severity, boolean afterEndOfLine, java.lang.Boolean needsUpdateOnTyping, boolean isFileLevelAnnotation, int navigationShift, ProblemGroup problemGroup, java.lang.String inspectionToolId, GutterMark gutterIconRenderer, int group)
public static HighlightInfo fromRangeHighlighter(RangeHighlighter highlighter)
public java.lang.String getToolTip()
public java.lang.String getDescription()
public java.lang.String getInspectionToolId()
public HighlightSeverity getSeverity()
public RangeHighlighterEx getHighlighter()
public void setHighlighter(RangeHighlighterEx highlighter)
public boolean isAfterEndOfLine()
public TextAttributes getTextAttributes(PsiElement element, EditorColorsScheme editorColorsScheme)
public static TextAttributes getAttributesByType(PsiElement element, HighlightInfoType type, TextAttributesScheme colorsScheme)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectprotected boolean equalsByActualOffset(HighlightInfo info)
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic static HighlightInfo.Builder newHighlightInfo(HighlightInfoType type)
public GutterMark getGutterIconRenderer()
public ProblemGroup getProblemGroup()
public static HighlightInfo fromAnnotation(Annotation annotation)
public static HighlightInfoType convertSeverity(HighlightSeverity severity)
public static ProblemHighlightType convertType(HighlightInfoType infoType)
public static ProblemHighlightType convertSeverityToProblemHighlight(HighlightSeverity severity)
public boolean hasHint()
public int getActualStartOffset()
public int getActualEndOffset()
public int getStartOffset()
getStartOffset in interface Segmentpublic int getEndOffset()
getEndOffset in interface Segmentpublic java.lang.String getText()
public void registerFix(IntentionAction action, java.util.List<IntentionAction> options, java.lang.String displayName, TextRange fixRange, HighlightDisplayKey key)
public void unregisterQuickFix(Condition<? super IntentionAction> condition)