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 TypeMethodDescriptionvoidorg.fife.ui.rsyntaxtextarea.TokengetTokenList(Segment text, int initialTokenType, int startOffset)Returns a list of tokens representing the given text.org.fife.ui.rsyntaxtextarea.TokenMapReturns the words to highlight for MIPS programs.Methods inherited from class org.fife.ui.rsyntaxtextarea.AbstractTokenMaker
removeLastTokenMethods inherited from class org.fife.ui.rsyntaxtextarea.TokenMakerBase
addNullToken, addToken, addToken, getClosestStandardTokenTypeForInternalType, getCurlyBracesDenoteCodeBlocks, getInsertBreakAction, getLastTokenTypeOnLine, getLineCommentStartAndEnd, getMarkOccurrencesOfTokenType, getOccurrenceMarker, getShouldIndentNextLineAfter, isIdentifierChar, isMarkupLanguageMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getWordsToHighlightin classorg.fife.ui.rsyntaxtextarea.AbstractTokenMaker- Returns:
- A
TokenMapcontaining the words to highlight for MIPS programs. - See Also:
AbstractTokenMaker.getWordsToHighlight()
-
addToken
- Overrides:
addTokenin 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:
getTokenListin 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.
-