Package ghidra.app.decompiler.component
Class NullClangHighlightController
- java.lang.Object
-
- ghidra.app.decompiler.component.ClangHighlightController
-
- ghidra.app.decompiler.component.NullClangHighlightController
-
public class NullClangHighlightController extends ClangHighlightController
A stub implementation of the highlight controller that allows clients to avoid null checks
-
-
Field Summary
-
Fields inherited from class ghidra.app.decompiler.component.ClangHighlightController
DEFAULT_HIGHLIGHT_COLOR, defaultHighlightColor, defaultParenColor
-
-
Constructor Summary
Constructors Constructor Description NullClangHighlightController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addHighlightBrace(ClangSyntaxToken token, java.awt.Color highlightColor)
void
addListener(ClangHighlightListener listener)
void
addPrimaryHighlights(ClangNode parentNode, ghidra.app.plugin.core.decompile.actions.TokenHighlightColorProvider colorProvider)
void
addPrimaryHighlights(ClangNode parentNode, java.util.Set<PcodeOp> ops, java.awt.Color highlightColor)
void
addPrimaryHighlights(java.util.function.Supplier<? extends java.util.Collection<ClangToken>> tokens, java.awt.Color highlightColor)
void
clearAllHighlights()
void
fieldLocationChanged(FieldLocation location, Field field, EventTrigger trigger)
java.lang.String
getHighlightedText()
void
removeListener(ClangHighlightListener listener)
-
Methods inherited from class ghidra.app.decompiler.component.ClangHighlightController
addPrimaryHighlight, addPrimaryHighlightToTokensForParenthesis, addSecondaryHighlights, addSecondaryHighlights, clearPrimaryHighlights, dummyIfNull, getCombinedColor, getPrimaryHighlightedTokens, getSecondaryHighlightColors, getSecondaryHighlightedTokens, getSecondaryHighlightsByFunction, getUpdateId, hasPrimaryHighlight, hasSecondaryHighlight, notifyListeners, removeSecondaryHighlights, removeSecondaryHighlights, removeSecondaryHighlights, togglePrimaryHighlights
-
-
-
-
Method Detail
-
fieldLocationChanged
public void fieldLocationChanged(FieldLocation location, Field field, EventTrigger trigger)
- Specified by:
fieldLocationChanged
in classClangHighlightController
-
getHighlightedText
public java.lang.String getHighlightedText()
- Overrides:
getHighlightedText
in classClangHighlightController
-
addPrimaryHighlights
public void addPrimaryHighlights(ClangNode parentNode, ghidra.app.plugin.core.decompile.actions.TokenHighlightColorProvider colorProvider)
- Overrides:
addPrimaryHighlights
in classClangHighlightController
-
addPrimaryHighlights
public void addPrimaryHighlights(ClangNode parentNode, java.util.Set<PcodeOp> ops, java.awt.Color highlightColor)
- Overrides:
addPrimaryHighlights
in classClangHighlightController
-
addPrimaryHighlights
public void addPrimaryHighlights(java.util.function.Supplier<? extends java.util.Collection<ClangToken>> tokens, java.awt.Color highlightColor)
- Overrides:
addPrimaryHighlights
in classClangHighlightController
-
clearAllHighlights
public void clearAllHighlights()
- Overrides:
clearAllHighlights
in classClangHighlightController
-
addHighlightBrace
public void addHighlightBrace(ClangSyntaxToken token, java.awt.Color highlightColor)
- Overrides:
addHighlightBrace
in classClangHighlightController
-
addListener
public void addListener(ClangHighlightListener listener)
- Overrides:
addListener
in classClangHighlightController
-
removeListener
public void removeListener(ClangHighlightListener listener)
- Overrides:
removeListener
in classClangHighlightController
-
-