Class AbstractTokenMaker

    • Field Detail

      • 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 Detail

      • AbstractTokenMaker

        public AbstractTokenMaker()
        Constructor.
    • Method Detail

      • 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.