Uses of Interface
org.fife.ui.rsyntaxtextarea.Token
Packages that use Token
Package
Description
A syntax-highlighting text editor.
Code folding functionality.
Scanners that tokenize source in
RSyntaxTextArea.-
Uses of Token in org.fife.ui.rsyntaxtextarea
Classes in org.fife.ui.rsyntaxtextarea that implement TokenClasses in org.fife.ui.rsyntaxtextarea that implement interfaces with type arguments of type TokenFields in org.fife.ui.rsyntaxtextarea declared as TokenMethods in org.fife.ui.rsyntaxtextarea that return TokenModifier and TypeMethodDescriptionReturns the last token in this list that is not whitespace or a comment.TokenImpl.getLastNonCommentNonWhitespaceToken()Token.getLastPaintableToken()Returns the last paintable token in this token list, ornullif there is no paintable token.TokenImpl.getLastPaintableToken()static TokenRSyntaxUtilities.getNextImportantToken(Token t, RSyntaxTextArea textArea, int line) Returns the next non-whitespace, non-comment token in a text area.Token.getNextToken()Returns the token after this one in the linked list.TokenImpl.getNextToken()static TokenRSyntaxUtilities.getPreviousImportantToken(RSyntaxDocument doc, int line) Returns the last non-whitespace, non-comment token, starting with the specified line.static TokenRSyntaxUtilities.getPreviousImportantTokenFromOffs(RSyntaxDocument doc, int offs) Returns the last non-whitespace, non-comment token, before the specified offset.static TokenHtmlOccurrenceMarker.getTagNameTokenForCaretOffset(RSyntaxTextArea textArea, OccurrenceMarker occurrenceMarker) If the caret is inside a tag, this method returns the token representing the tag name; otherwise,nullis returned.static TokenRSyntaxUtilities.getTokenAtOffset(RSyntaxDocument doc, int offset) Returns the token at the specified offset.static TokenRSyntaxUtilities.getTokenAtOffset(RSyntaxTextArea textArea, int offset) Returns the token at the specified offset.static TokenRSyntaxUtilities.getTokenAtOffset(Token tokenList, int offset) Returns the token at the specified index, ornullif the given offset isn't in this token list's range.
Note that this method does NOT check to see iftokenListis null; callers should check for themselves.static TokenRSyntaxUtilities.getTokenAtOffsetOrLastTokenIfEndOfLine(RSyntaxDocument doc, int offset) Returns the token at the specified offset.static TokenRSyntaxUtilities.getTokenAtOffsetOrLastTokenIfEndOfLine(RSyntaxTextArea textArea, int offset) Returns the token at the specified offset.static TokenRSyntaxUtilities.getTokenAtOffsetOrLastTokenIfEndOfLine(Token tokenList, int offset) Returns the token at the specified index, ornullif the given offset isn't in this token list's range.TokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.RSyntaxTextArea.getTokenListFor(int startOffs, int endOffs) Returns a token list for the given range in the document.RSyntaxDocument.getTokenListForLine(int line) Returns a token list for the specified segment of text representing the specified line number.RSyntaxTextArea.getTokenListForLine(int line) Returns a list of tokens representing the given line.SyntaxView.getTokenListForPhysicalLineAbove(int offset) Returns a token list for the physical line above the physical line containing the specified offset into the document.TokenOrientedView.getTokenListForPhysicalLineAbove(int offset) Returns a token list for the physical line above the physical line containing the specified offset into the document.SyntaxView.getTokenListForPhysicalLineBelow(int offset) Returns a token list for the physical line below the physical line containing the specified offset into the document.TokenOrientedView.getTokenListForPhysicalLineBelow(int offset) Returns a token list for the physical line below the physical line containing the specified offset into the document.HtmlOccurrenceMarker.getTokenToMark(RSyntaxTextArea textArea) OccurrenceMarker.getTokenToMark(RSyntaxTextArea textArea) Returns the token to mark occurrences, of, provided it matches the criteria put forth byOccurrenceMarker.isValidType(RSyntaxTextArea, Token).XmlOccurrenceMarker.getTokenToMark(RSyntaxTextArea textArea) RSyntaxTextArea.modelToToken(int offs) Returns the token at the specified position in the model.RSyntaxTextArea.viewToToken(Point p) Returns the token at the specified position in the view.Methods in org.fife.ui.rsyntaxtextarea that return types with arguments of type TokenModifier and TypeMethodDescriptionRSyntaxDocument.iterator()Returns an iterator over the paintable tokens in this document.Methods in org.fife.ui.rsyntaxtextarea with parameters of type TokenModifier and TypeMethodDescriptionprotected intWrappedSyntaxView.calculateBreakPosition(int p0, Token tokenList, float x0) This is called by the nested wrapped line views to determine the break location.voidMakes one token point to the same text segment, and have the same value as another token.RSyntaxTextArea.getBackgroundForToken(Token token) Returns the background color for a token.RSyntaxTextArea.getForegroundForToken(Token t) Returns the foreground color to use when painting a token.static TokenRSyntaxUtilities.getNextImportantToken(Token t, RSyntaxTextArea textArea, int line) Returns the next non-whitespace, non-comment token in a text area.booleanAbstractJFlexCTokenMaker.getShouldIndentNextLineAfter(Token t) booleanTokenMaker.getShouldIndentNextLineAfter(Token token) If a line ends in the specified token, this method returns whether a new line inserted after that line should be indented.booleanTokenMakerBase.getShouldIndentNextLineAfter(Token token) The default implementation returnsfalsealways.static TokenUtils.TokenSubListTokenUtils.getSubTokenList(Token tokenList, int pos, TabExpander e, RSyntaxTextArea textArea, float x0) Modifies the passed-in token list to start at the specified offset.static TokenUtils.TokenSubListTokenUtils.getSubTokenList(Token tokenList, int pos, TabExpander e, RSyntaxTextArea textArea, float x0, TokenImpl tempToken) Modifies the passed-in token list to start at the specified offset.static TokenRSyntaxUtilities.getTokenAtOffset(Token tokenList, int offset) Returns the token at the specified index, ornullif the given offset isn't in this token list's range.
Note that this method does NOT check to see iftokenListis null; callers should check for themselves.static TokenRSyntaxUtilities.getTokenAtOffsetOrLastTokenIfEndOfLine(Token tokenList, int offset) Returns the token at the specified index, ornullif the given offset isn't in this token list's range.static floatRSyntaxUtilities.getTokenListWidth(Token tokenList, RSyntaxTextArea textArea, TabExpander e) Determines the width of the given token list taking tabs into consideration.static floatRSyntaxUtilities.getTokenListWidth(Token tokenList, RSyntaxTextArea textArea, TabExpander e, float x0) Determines the width of the given token list taking tabs into consideration.static floatRSyntaxUtilities.getTokenListWidthUpTo(Token tokenList, RSyntaxTextArea textArea, TabExpander e, float x0, int upTo) Determines the width of the given token list taking tabs into consideration and only up to the given index in the document (exclusive).booleanRSyntaxTextArea.getUnderlineForToken(Token t) Returns whether the specified token should be underlined.static intTokenUtils.getWhiteSpaceTokenLength(Token t, int tabSize, int curOffs) Returns the length, in characters, of a whitespace token, taking tabs into account.static booleanTokenUtils.isBlankOrAllWhiteSpace(Token t) Returns whether a token list isnull, empty, all whitespace, just comment token(s), or any combination of those.static booleanTokenUtils.isBlankOrAllWhiteSpaceWithoutComments(Token t) Returns whether a token list isnull, empty, or all whitespace token(s).static booleanRSyntaxUtilities.isNonWordChar(Token t) Returns whether the specified token is a single non-word char (e.g. not in[A-Za-z]).booleanHtmlOccurrenceMarker.isValidType(RSyntaxTextArea textArea, Token t) booleanOccurrenceMarker.isValidType(RSyntaxTextArea textArea, Token t) Returns whether the specified token is a type that we can do a "mark occurrences" of.booleanXmlOccurrenceMarker.isValidType(RSyntaxTextArea textArea, Token t) voidHtmlOccurrenceMarker.markOccurrences(RSyntaxDocument doc, Token t, RSyntaxTextAreaHighlighter h, SmartHighlightPainter p) voidOccurrenceMarker.markOccurrences(RSyntaxDocument doc, Token t, RSyntaxTextAreaHighlighter h, SmartHighlightPainter p) Called when occurrences of a token should be marked.voidXmlOccurrenceMarker.markOccurrences(RSyntaxDocument doc, Token t, RSyntaxTextAreaHighlighter h, SmartHighlightPainter p) static booleanRSyntaxUtilities.regexCanFollowInJavaScript(Token t) Returns whether a regular expression token can follow the specified token in JavaScript.voidTokenImpl.setNextToken(Token nextToken) Sets the "next token" pointer of this token to point to the specified token.static StringTokenUtils.tokenToHtml(RSyntaxTextArea textArea, Token token) Generates HTML that renders a token with the style used in an RSTA instance.Constructors in org.fife.ui.rsyntaxtextarea with parameters of type TokenModifierConstructorDescriptionCreates this token as a copy of the passed-in token.TokenSubList(Token tokenList, float x) -
Uses of Token in org.fife.ui.rsyntaxtextarea.folding
Methods in org.fife.ui.rsyntaxtextarea.folding with parameters of type TokenModifier and TypeMethodDescriptionbooleanCurlyFoldParser.isLeftCurly(Token t) Returns whether the token is a left curly brace.booleanLispFoldParser.isLeftCurly(Token t) booleanCurlyFoldParser.isRightCurly(Token t) Returns whether the token is a right curly brace.booleanLispFoldParser.isRightCurly(Token t) -
Uses of Token in org.fife.ui.rsyntaxtextarea.modes
Methods in org.fife.ui.rsyntaxtextarea.modes that return TokenModifier and TypeMethodDescriptionActionScriptTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.Assembler6502TokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.AssemblerX86TokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.BBCodeTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.ClojureTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.CPlusPlusTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.CSharpTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.CSSTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.CsvTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.CTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.DartTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.DelphiTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.DockerTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.DtdTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.DTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.FortranTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.GoTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.GroovyTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.HandlebarsTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.HostsTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.HtaccessTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.HTMLTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.IniTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.JavaScriptTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.JavaTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.JsonTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.JSPTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.KotlinTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.LatexTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.LispTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.LuaTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.MakefileTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.MarkdownTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.MxmlTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.NSISTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.PerlTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.PHPTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.PlainTextTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.PropertiesFileTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.ProtoTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.PythonTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.RubyTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.RustTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.SASTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.ScalaTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.SQLTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) TclTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.TypeScriptTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.UnixShellTokenMaker.getTokenList(Segment text, int startTokenType, int startOffset) Returns a list of tokens representing the given text.VisualBasicTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.WindowsBatchTokenMaker.getTokenList(Segment text, int startTokenType, int startOffset) Returns a list of tokens representing the given text.XMLTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.YamlTokenMaker.getTokenList(Segment text, int initialTokenType, int startOffset) Returns the first token in the linked list of tokens generated fromtext.ActionScriptTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.Assembler6502TokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.AssemblerX86TokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.BBCodeTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.ClojureTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.CPlusPlusTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.CSharpTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.CSSTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.CsvTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.CTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.DartTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.DelphiTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.DockerTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.DtdTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.DTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.FortranTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.GoTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.GroovyTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.HandlebarsTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.HostsTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.HtaccessTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.HTMLTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.IniTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.JavaScriptTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.JavaTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.JsonTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.JSPTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.KotlinTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.LatexTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.LispTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.LuaTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.MakefileTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.MarkdownTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.MxmlTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.NSISTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.PerlTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.PHPTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.PlainTextTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.PropertiesFileTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.ProtoTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.PythonTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.RubyTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.RustTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.SASTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.ScalaTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.SQLTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.TclTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.TypeScriptTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.VisualBasicTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.XMLTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.YamlTokenMaker.yylex()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.Methods in org.fife.ui.rsyntaxtextarea.modes with parameters of type TokenModifier and TypeMethodDescriptionbooleanCSSTokenMaker.getShouldIndentNextLineAfter(Token t) booleanHandlebarsTokenMaker.getShouldIndentNextLineAfter(Token token) Overridden to handle newlines in JS and CSS differently than those in markup.booleanHTMLTokenMaker.getShouldIndentNextLineAfter(Token token) Overridden to handle newlines in JS and CSS differently than those in markup.booleanJsonTokenMaker.getShouldIndentNextLineAfter(Token t) booleanJSPTokenMaker.getShouldIndentNextLineAfter(Token token) Overridden to handle newlines in JS and CSS differently than those in markup.booleanPHPTokenMaker.getShouldIndentNextLineAfter(Token token) Overridden to handle newlines in JS and CSS differently than those in markup.booleanPythonTokenMaker.getShouldIndentNextLineAfter(Token t)