Package ghidra.app.decompiler.component
Interface ColorProvider
- All Known Implementing Classes:
DefaultColorProvider
public interface ColorProvider
Functional interface to allow us to map a token to a color.
This class allows us to avoid the namespace conflicts of Java's Function and Ghidra's
Function since we can declare a ColorProvider
as a parameter to methods instead of
a Function
.
-
Method Summary
-
Method Details
-
getColor
Returns a color for the given token- Parameters:
token
- the token- Returns:
- the color
-