Package com.formdev.flatlaf.themeeditor
Class FlatThemeTokenMaker
java.lang.Object
org.fife.ui.rsyntaxtextarea.TokenMakerBase
org.fife.ui.rsyntaxtextarea.AbstractJFlexTokenMaker
org.fife.ui.rsyntaxtextarea.modes.PropertiesFileTokenMaker
com.formdev.flatlaf.themeeditor.FlatThemeTokenMaker
- All Implemented Interfaces:
org.fife.ui.rsyntaxtextarea.TokenMaker
public class FlatThemeTokenMaker
extends org.fife.ui.rsyntaxtextarea.modes.PropertiesFileTokenMaker
Token maker for FlatLaf properties files.
Lets the super class parse the properties file and modify the added tokens.
The super class uses TokenTypes.RESERVED_WORD for property keys and
TokenTypes.LITERAL_STRING_DOUBLE_QUOTE for property values.
- Author:
- Karl Tauber
-
Field Summary
Fields inherited from class org.fife.ui.rsyntaxtextarea.modes.PropertiesFileTokenMaker
VALUE, YYEOF, YYINITIALFields inherited from class org.fife.ui.rsyntaxtextarea.AbstractJFlexTokenMaker
offsetShift, s, startFields inherited from class org.fife.ui.rsyntaxtextarea.TokenMakerBase
currentToken, firstToken, previousToken -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToken(char[] array, int start, int end, int tokenType, int startOffset, boolean hyperlink) This method is only invoked from the super class.protected org.fife.ui.rsyntaxtextarea.OccurrenceMarkerbooleangetMarkOccurrencesOfTokenType(int type) booleanisIdentifierChar(int languageIndex, char ch) Methods inherited from class org.fife.ui.rsyntaxtextarea.modes.PropertiesFileTokenMaker
addToken, getLineCommentStartAndEnd, getTokenList, yybegin, yycharat, yyclose, yylength, yylex, yypushback, yyreset, yystate, yytextMethods inherited from class org.fife.ui.rsyntaxtextarea.AbstractJFlexTokenMaker
yybeginMethods inherited from class org.fife.ui.rsyntaxtextarea.TokenMakerBase
addNullToken, addToken, getClosestStandardTokenTypeForInternalType, getCurlyBracesDenoteCodeBlocks, getInsertBreakAction, getLanguageIndex, getLastTokenTypeOnLine, getNoTokensIdentifiedYet, getOccurrenceMarker, getShouldIndentNextLineAfter, isMarkupLanguage, resetTokenList, setLanguageIndex
-
Constructor Details
-
FlatThemeTokenMaker
public FlatThemeTokenMaker()
-
-
Method Details
-
addToken
public void addToken(char[] array, int start, int end, int tokenType, int startOffset, boolean hyperlink) This method is only invoked from the super class.- Overrides:
addTokenin classorg.fife.ui.rsyntaxtextarea.TokenMakerBase
-
createOccurrenceMarker
protected org.fife.ui.rsyntaxtextarea.OccurrenceMarker createOccurrenceMarker()- Overrides:
createOccurrenceMarkerin classorg.fife.ui.rsyntaxtextarea.TokenMakerBase
-
getMarkOccurrencesOfTokenType
public boolean getMarkOccurrencesOfTokenType(int type) - Specified by:
getMarkOccurrencesOfTokenTypein interfaceorg.fife.ui.rsyntaxtextarea.TokenMaker- Overrides:
getMarkOccurrencesOfTokenTypein classorg.fife.ui.rsyntaxtextarea.TokenMakerBase
-
isIdentifierChar
public boolean isIdentifierChar(int languageIndex, char ch) - Specified by:
isIdentifierCharin interfaceorg.fife.ui.rsyntaxtextarea.TokenMaker- Overrides:
isIdentifierCharin classorg.fife.ui.rsyntaxtextarea.TokenMakerBase
-