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

    Modifier and Type
    Method
    Description
    Returns a color for the given token
  • Method Details

    • getColor

      Color getColor(ClangToken token)
      Returns a color for the given token
      Parameters:
      token - the token
      Returns:
      the color