Class AbstractTokenMaker

java.lang.Object
org.fife.ui.rsyntaxtextarea.TokenMakerBase
org.fife.ui.rsyntaxtextarea.AbstractTokenMaker
All Implemented Interfaces:
TokenMaker
Direct Known Subclasses:
UnixShellTokenMaker, WindowsBatchTokenMaker

public abstract class AbstractTokenMaker extends TokenMakerBase
An abstract implementation of the TokenMaker interface. It should be overridden for every language for which you want to provide syntax highlighting.

Version:
0.2
See Also:
  • Field Details

    • wordsToHighlight

      protected TokenMap wordsToHighlight
      Hash table of words to highlight and what token type they are. The keys are the words to highlight, and their values are the token types, for example, Token.RESERVED_WORD or Token.FUNCTION.
  • Constructor Details

    • AbstractTokenMaker

      public AbstractTokenMaker()
      Constructor.
  • Method Details

    • getWordsToHighlight

      public abstract TokenMap getWordsToHighlight()
      Returns the words to highlight for this programming language.
      Returns:
      A TokenMap containing the words to highlight for this programming language.
    • removeLastToken

      public void removeLastToken()
      Removes the token last added from the linked list of tokens. The programmer should never have to call this directly; it can be called by subclasses of TokenMaker if necessary.