Package mars.venus.editors.rsyntax
Class MIPSTokenMaker
java.lang.Object
org.fife.ui.rsyntaxtextarea.TokenMakerBase
org.fife.ui.rsyntaxtextarea.AbstractTokenMaker
mars.venus.editors.rsyntax.MIPSTokenMaker
- All Implemented Interfaces:
org.fife.ui.rsyntaxtextarea.TokenMaker
public class MIPSTokenMaker
extends org.fife.ui.rsyntaxtextarea.AbstractTokenMaker
implements org.fife.ui.rsyntaxtextarea.TokenMaker
MIPS Token Maker, for use with RSyntaxTextArea
Not to be confused with
Not to be confused with
MIPSTokenMarker
- Version:
- May 2021
- Author:
- Valerio Colella
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
org.fife.ui.rsyntaxtextarea.Token
getTokenList(Segment text, int initialTokenType, int startOffset)
Returns a list of tokens representing the given text.org.fife.ui.rsyntaxtextarea.TokenMap
Returns the words to highlight for MIPS programs.Methods inherited from class org.fife.ui.rsyntaxtextarea.AbstractTokenMaker
removeLastToken
Methods inherited from class org.fife.ui.rsyntaxtextarea.TokenMakerBase
addNullToken, addToken, addToken, getClosestStandardTokenTypeForInternalType, getCurlyBracesDenoteCodeBlocks, getInsertBreakAction, getLastTokenTypeOnLine, getLineCommentStartAndEnd, getMarkOccurrencesOfTokenType, getOccurrenceMarker, getShouldIndentNextLineAfter, isIdentifierChar, isMarkupLanguage
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.fife.ui.rsyntaxtextarea.TokenMaker
addNullToken, addToken, getClosestStandardTokenTypeForInternalType, getCurlyBracesDenoteCodeBlocks, getInsertBreakAction, getLastTokenTypeOnLine, getLineCommentStartAndEnd, getMarkOccurrencesOfTokenType, getOccurrenceMarker, getShouldIndentNextLineAfter, isIdentifierChar, isMarkupLanguage
-
Constructor Details
-
MIPSTokenMaker
public MIPSTokenMaker()
-
-
Method Details
-
getWordsToHighlight
public org.fife.ui.rsyntaxtextarea.TokenMap getWordsToHighlight()Returns the words to highlight for MIPS programs.- Specified by:
getWordsToHighlight
in classorg.fife.ui.rsyntaxtextarea.AbstractTokenMaker
- Returns:
- A
TokenMap
containing the words to highlight for MIPS programs. - See Also:
AbstractTokenMaker.getWordsToHighlight()
-
addToken
- Overrides:
addToken
in classorg.fife.ui.rsyntaxtextarea.TokenMakerBase
-
getTokenList
public org.fife.ui.rsyntaxtextarea.Token getTokenList(Segment text, int initialTokenType, int startOffset)Returns a list of tokens representing the given text.- Specified by:
getTokenList
in interfaceorg.fife.ui.rsyntaxtextarea.TokenMaker
- Parameters:
text
- The text to break into tokens.initialTokenType
- The token with which to start tokenizing.startOffset
- The offset at which the line of tokens begins.- Returns:
- A linked list of tokens representing
text
.
-