Package ghidra.app.decompiler
Interface CTokenHighlightMatcher
public interface CTokenHighlightMatcher
The interface that clients must define to create a
DecompilerHighlighter
Every function decompiled will trigger this matcher to get called. The order of method
calls is: start(ClangNode), repeated calls to getTokenHighlight(ClangToken)
and then end().
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidend()getTokenHighlight(ClangToken token) The basic method clients must implement to determine if a token should be highlighted.default void
-
Method Details
-
start
-
end
default void end() -
getTokenHighlight
The basic method clients must implement to determine if a token should be highlighted. Returning a non-null Color will trigger the given token to be highlighted.- Parameters:
token- the token- Returns:
- the highlight color or null
-