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
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
FieldsFields inherited from class org.fife.ui.rsyntaxtextarea.TokenMakerBase
currentToken, firstToken, previousToken
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract 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 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
-
Field Details
-
s
-
start
protected int start -
offsetShift
protected int offsetShift
-
-
Constructor Details
-
AbstractJFlexTokenMaker
public AbstractJFlexTokenMaker()
-
-
Method Details
-
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
Closes the input stream. This method is defined for test purposes.- Throws:
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
-