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.PropertiesFileTokenMakerToken maker for FlatLaf properties files.Lets the super class parse the properties file and modify the added tokens. The super class uses
TokenTypes.RESERVED_WORDfor property keys andTokenTypes.LITERAL_STRING_DOUBLE_QUOTEfor property values.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static intTOKEN_COLOR(package private) static intTOKEN_FUNCTION(package private) static intTOKEN_NUMBER(package private) static intTOKEN_PROPERTY(package private) static intTOKEN_STRING(package private) static intTOKEN_TYPE(package private) static intTOKEN_VARIABLEprivate org.fife.ui.rsyntaxtextarea.TokenMaptokenMap-
Fields inherited from class org.fife.ui.rsyntaxtextarea.modes.PropertiesFileTokenMaker
VALUE, YYEOF, YYINITIAL
-
-
Constructor Summary
Constructors Constructor Description FlatThemeTokenMaker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToken(char[] array, int start, int end, int tokenType, int startOffset, boolean hyperlink)This method is only invoked from the super class.private voidaddTokenImpl(char[] array, int start, int end, int tokenType, int startOffset, int parenthesisLevel)protected org.fife.ui.rsyntaxtextarea.OccurrenceMarkercreateOccurrenceMarker()booleangetMarkOccurrencesOfTokenType(int type)booleanisIdentifierChar(int languageIndex, char ch)private booleanisPropertyChar(char ch)private voidtokenizeValue(char[] array, int start, int end, int startOffset)-
Methods inherited from class org.fife.ui.rsyntaxtextarea.modes.PropertiesFileTokenMaker
addToken, getLineCommentStartAndEnd, getTokenList, yybegin, yycharat, yyclose, yylength, yylex, yypushback, yyreset, yystate, yytext
-
Methods inherited from class org.fife.ui.rsyntaxtextarea.TokenMakerBase
addNullToken, addToken, getClosestStandardTokenTypeForInternalType, getCurlyBracesDenoteCodeBlocks, getInsertBreakAction, getLanguageIndex, getLastTokenTypeOnLine, getNoTokensIdentifiedYet, getOccurrenceMarker, getShouldIndentNextLineAfter, isMarkupLanguage, resetTokenList, setLanguageIndex
-
-
-
-
Field Detail
-
TOKEN_PROPERTY
static final int TOKEN_PROPERTY
- See Also:
- Constant Field Values
-
TOKEN_VARIABLE
static final int TOKEN_VARIABLE
- See Also:
- Constant Field Values
-
TOKEN_NUMBER
static final int TOKEN_NUMBER
- See Also:
- Constant Field Values
-
TOKEN_COLOR
static final int TOKEN_COLOR
- See Also:
- Constant Field Values
-
TOKEN_STRING
static final int TOKEN_STRING
- See Also:
- Constant Field Values
-
TOKEN_FUNCTION
static final int TOKEN_FUNCTION
- See Also:
- Constant Field Values
-
TOKEN_TYPE
static final int TOKEN_TYPE
- See Also:
- Constant Field Values
-
tokenMap
private final org.fife.ui.rsyntaxtextarea.TokenMap tokenMap
-
-
Method Detail
-
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
-
tokenizeValue
private void tokenizeValue(char[] array, int start, int end, int startOffset)
-
addTokenImpl
private void addTokenImpl(char[] array, int start, int end, int tokenType, int startOffset, int parenthesisLevel)
-
isPropertyChar
private boolean isPropertyChar(char ch)
-
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
-
-