Package org.fife.ui.rsyntaxtextarea
Class AbstractTokenMaker
java.lang.Object
org.fife.ui.rsyntaxtextarea.TokenMakerBase
org.fife.ui.rsyntaxtextarea.AbstractTokenMaker
- All Implemented Interfaces:
TokenMaker
- Direct Known Subclasses:
UnixShellTokenMaker
,WindowsBatchTokenMaker
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 Summary
FieldsModifier and TypeFieldDescriptionprotected TokenMap
Hash table of words to highlight and what token type they are.Fields inherited from class org.fife.ui.rsyntaxtextarea.TokenMakerBase
currentToken, firstToken, previousToken
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract TokenMap
Returns the words to highlight for this programming language.void
Removes the token last added from the linked list of tokens.Methods inherited from class org.fife.ui.rsyntaxtextarea.TokenMakerBase
addNullToken, addToken, addToken, addToken, createOccurrenceMarker, getClosestStandardTokenTypeForInternalType, getCurlyBracesDenoteCodeBlocks, getInsertBreakAction, getLanguageIndex, getLastTokenTypeOnLine, getLineCommentStartAndEnd, getMarkOccurrencesOfTokenType, getNoTokensIdentifiedYet, getOccurrenceMarker, getShouldIndentNextLineAfter, isIdentifierChar, isMarkupLanguage, resetTokenList, setLanguageIndex
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.fife.ui.rsyntaxtextarea.TokenMaker
getTokenList
-
Field Details
-
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
orToken.FUNCTION
.
-
-
Constructor Details
-
AbstractTokenMaker
public AbstractTokenMaker()Constructor.
-
-
Method Details
-
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 ofTokenMaker
if necessary.
-