Package org.fife.ui.rsyntaxtextarea
Class AbstractJFlexTokenMaker
- java.lang.Object
-
- org.fife.ui.rsyntaxtextarea.TokenMakerBase
-
- org.fife.ui.rsyntaxtextarea.AbstractJFlexTokenMaker
-
- All Implemented Interfaces:
TokenMaker
- Direct Known Subclasses:
AbstractJFlexCTokenMaker
,AbstractMarkupTokenMaker
,Assembler6502TokenMaker
,AssemblerX86TokenMaker
,ClojureTokenMaker
,CsvTokenMaker
,DelphiTokenMaker
,DockerTokenMaker
,DtdTokenMaker
,FortranTokenMaker
,HostsTokenMaker
,HtaccessTokenMaker
,IniTokenMaker
,LatexTokenMaker
,LispTokenMaker
,LuaTokenMaker
,MakefileTokenMaker
,PlainTextTokenMaker
,PropertiesFileTokenMaker
,PythonTokenMaker
,RubyTokenMaker
,SASTokenMaker
,SQLTokenMaker
,VisualBasicTokenMaker
,YamlTokenMaker
public abstract class AbstractJFlexTokenMaker extends TokenMakerBase
Base class for JFlex-generated token makers. This class attempts to factor out all common code from these classes. Many methods almost could be factored out into this class, but cannot because they reference JFlex variables that we cannot access from this class.- Version:
- 0.1
-
-
Field Summary
Fields Modifier and Type Field Description protected int
offsetShift
protected javax.swing.text.Segment
s
protected int
start
-
Fields inherited from class org.fife.ui.rsyntaxtextarea.TokenMakerBase
currentToken, firstToken, previousToken
-
-
Constructor Summary
Constructors Constructor Description AbstractJFlexTokenMaker()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
yybegin(int newState)
Declared here so we can define overloads that refer to this method.protected void
yybegin(int state, int languageIndex)
Starts a new JFlex state and changes the current language index.abstract void
yyclose()
Closes the input stream.abstract java.lang.String
yytext()
-
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
-
-
-
-
Method Detail
-
yybegin
public abstract void yybegin(int newState)
Declared here so we can define overloads that refer to this method.- Parameters:
newState
- The new JFlex state to enter.
-
yyclose
public abstract void yyclose() throws java.io.IOException
Closes the input stream. This method is defined for test purposes.- Throws:
java.io.IOException
- If an IO error occurs.
-
yybegin
protected void yybegin(int state, int languageIndex)
Starts a new JFlex state and changes the current language index.- Parameters:
state
- The new JFlex state to enter.languageIndex
- The new language index.
-
yytext
public abstract java.lang.String yytext()
-
-