程序包 | 说明 |
---|---|
com.fr.design.gui.syntax.ui.rsyntaxtextarea |
A syntax-highlighting text editor.
|
com.fr.design.gui.syntax.ui.rsyntaxtextarea.folding |
Code folding functionality.
|
com.fr.design.gui.syntax.ui.rsyntaxtextarea.modes |
Scanners that tokenize source in
RSyntaxTextArea . |
限定符和类型 | 类和说明 |
---|---|
class |
TokenImpl
The default implementation of
Token . |
限定符和类型 | 字段和说明 |
---|---|
Token |
TokenUtils.TokenSubList.tokenList
The "sub" token list.
|
限定符和类型 | 方法和说明 |
---|---|
Token |
TokenImpl.getLastNonCommentNonWhitespaceToken() |
Token |
Token.getLastNonCommentNonWhitespaceToken()
Returns the last token in this list that is not whitespace or a
comment.
|
Token |
TokenImpl.getLastPaintableToken() |
Token |
Token.getLastPaintableToken()
Returns the last paintable token in this token list, or
null
if there is no paintable token. |
static Token |
RSyntaxUtilities.getNextImportantToken(Token t,
RSyntaxTextArea textArea,
int line)
Returns the next non-whitespace, non-comment token in a text area.
|
Token |
TokenImpl.getNextToken() |
Token |
Token.getNextToken()
Returns the token after this one in the linked list.
|
static Token |
RSyntaxUtilities.getPreviousImportantToken(RSyntaxTextArea textArea,
int line)
Returns the last non-whitespace, non-comment token, starting with the
specified line.
|
static Token |
RSyntaxUtilities.getTokenAtOffset(Token tokenList,
int offset)
Returns the token at the specified index, or
null if
the given offset isn't in this token list's range. |
Token |
TokenMaker.getTokenList(javax.swing.text.Segment text,
int initialTokenType,
int startOffset)
Returns the first token in the linked list of tokens generated
from
text . |
Token |
RSyntaxTextArea.getTokenListForLine(int line)
Returns a list of tokens representing the given line.
|
Token |
RSyntaxDocument.getTokenListForLine(int line)
Returns a token list for the specified segment of text representing
the specified line number.
|
Token |
TokenOrientedView.getTokenListForPhysicalLineAbove(int offset)
Returns a token list for the physical line above the physical
line containing the specified offset into the document.
|
Token |
SyntaxView.getTokenListForPhysicalLineAbove(int offset)
Returns a token list for the physical line above the physical
line containing the specified offset into the document.
|
Token |
TokenOrientedView.getTokenListForPhysicalLineBelow(int offset)
Returns a token list for the physical line below the physical
line containing the specified offset into the document.
|
Token |
SyntaxView.getTokenListForPhysicalLineBelow(int offset)
Returns a token list for the physical line below the physical
line containing the specified offset into the document.
|
Token |
RSyntaxTextArea.modelToToken(int offs)
Returns the token at the specified position in the model.
|
Token |
RSyntaxTextArea.viewToToken(java.awt.Point p)
Returns the token at the specified position in the view.
|
限定符和类型 | 方法和说明 |
---|---|
java.util.Iterator<Token> |
RSyntaxDocument.iterator()
Returns an iterator over the tokens in this document.
|
限定符和类型 | 方法和说明 |
---|---|
protected int |
WrappedSyntaxView.calculateBreakPosition(int p0,
Token tokenList,
float x0)
This is called by the nested wrapped line
views to determine the break location.
|
void |
TokenImpl.copyFrom(Token t2)
Makes one token point to the same text segment, and have the same value
as another token.
|
java.awt.Color |
RSyntaxTextArea.getBackgroundForToken(Token token)
Returns the background color for a token.
|
java.awt.Color |
RSyntaxTextArea.getForegroundForToken(Token t)
Returns the foreground color to use when painting a token.
|
static Token |
RSyntaxUtilities.getNextImportantToken(Token t,
RSyntaxTextArea textArea,
int line)
Returns the next non-whitespace, non-comment token in a text area.
|
boolean |
TokenMaker.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.
|
boolean |
AbstractJFlexCTokenMaker.getShouldIndentNextLineAfter(Token t)
The default implementation returns
false always. |
static TokenUtils.TokenSubList |
TokenUtils.getSubTokenList(Token tokenList,
int pos,
javax.swing.text.TabExpander e,
RSyntaxTextArea textArea,
float x0)
Modifies the passed-in token list to start at the specified offset.
|
static TokenUtils.TokenSubList |
TokenUtils.getSubTokenList(Token tokenList,
int pos,
javax.swing.text.TabExpander e,
RSyntaxTextArea textArea,
float x0,
TokenImpl tempToken)
Modifies the passed-in token list to start at the specified offset.
|
static Token |
RSyntaxUtilities.getTokenAtOffset(Token tokenList,
int offset)
Returns the token at the specified index, or
null if
the given offset isn't in this token list's range. |
static float |
RSyntaxUtilities.getTokenListWidth(Token tokenList,
RSyntaxTextArea textArea,
javax.swing.text.TabExpander e)
Determines the width of the given token list taking tabs
into consideration.
|
static float |
RSyntaxUtilities.getTokenListWidth(Token tokenList,
RSyntaxTextArea textArea,
javax.swing.text.TabExpander e,
float x0)
Determines the width of the given token list taking tabs
into consideration.
|
static float |
RSyntaxUtilities.getTokenListWidthUpTo(Token tokenList,
RSyntaxTextArea textArea,
javax.swing.text.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).
|
boolean |
RSyntaxTextArea.getUnderlineForToken(Token t)
Returns whether the specified token should be underlined.
|
void |
XmlOccurrenceMarker.markOccurrences(RSyntaxDocument doc,
Token t,
RSyntaxTextAreaHighlighter h,
SmartHighlightPainter p)
Called when occurrences of a token should be marked.
|
void |
OccurrenceMarker.markOccurrences(RSyntaxDocument doc,
Token t,
RSyntaxTextAreaHighlighter h,
SmartHighlightPainter p)
Called when occurrences of a token should be marked.
|
static boolean |
RSyntaxUtilities.regexCanFollowInJavaScript(Token t)
Returns whether a regular expression token can follow the specified
token in JavaScript.
|
void |
TokenImpl.setNextToken(Token nextToken)
Sets the "next token" pointer of this token to point to the specified
token.
|
构造器和说明 |
---|
TokenImpl(Token t2)
Creates this token as a copy of the passed-in token.
|
TokenUtils.TokenSubList(Token tokenList,
float x) |
限定符和类型 | 方法和说明 |
---|---|
boolean |
LispFoldParser.isLeftCurly(Token t) |
boolean |
CurlyFoldParser.isLeftCurly(Token t)
Returns whether the token is a left curly brace.
|
boolean |
LispFoldParser.isRightCurly(Token t) |
boolean |
CurlyFoldParser.isRightCurly(Token t)
Returns whether the token is a right curly brace.
|
限定符和类型 | 方法和说明 |
---|---|
Token |
XMLTokenMaker.getTokenList(javax.swing.text.Segment text,
int initialTokenType,
int startOffset)
Returns the first token in the linked list of tokens generated
from
text . |
Token |
WindowsBatchTokenMaker.getTokenList(javax.swing.text.Segment text,
int startTokenType,
int startOffset)
Returns a list of tokens representing the given text.
|
Token |
VisualBasicTokenMaker.getTokenList(javax.swing.text.Segment text,
int initialTokenType,
int startOffset)
Returns the first token in the linked list of tokens generated
from
text . |
Token |
UnixShellTokenMaker.getTokenList(javax.swing.text.Segment text,
int startTokenType,
int startOffset)
Returns a list of tokens representing the given text.
|
Token |
TclTokenMaker.getTokenList(javax.swing.text.Segment text,
int initialTokenType,
int startOffset)
Returns the first token in the linked list of tokens generated
from
text . |
Token |
SQLTokenMaker.getTokenList(javax.swing.text.Segment text,
int initialTokenType,
int startOffset)
Returns the first token in the linked list of tokens generated
from
text . |
Token |
ScalaTokenMaker.getTokenList(javax.swing.text.Segment text,
int initialTokenType,
int startOffset)
Returns the first token in the linked list of tokens generated
from
text . |
Token |
SASTokenMaker.getTokenList(javax.swing.text.Segment text,
int initialTokenType,
int startOffset)
Returns the first token in the linked list of tokens generated
from
text . |
Token |
RubyTokenMaker.getTokenList(javax.swing.text.Segment text,
int initialTokenType,
int startOffset)
Returns the first token in the linked list of tokens generated
from
text . |
Token |
PythonTokenMaker.getTokenList(javax.swing.text.Segment text,
int initialTokenType,
int startOffset)
Returns the first token in the linked list of tokens generated
from
text . |
Token |
PropertiesFileTokenMaker.getTokenList(javax.swing.text.Segment text,
int initialTokenType,
int startOffset)
Returns the first token in the linked list of tokens generated
from
text . |
Token |
PlainTextTokenMaker.getTokenList(javax.swing.text.Segment text,
int initialTokenType,
int startOffset)
Returns the first token in the linked list of tokens generated
from
text . |
Token |
PHPTokenMaker.getTokenList(javax.swing.text.Segment text,
int initialTokenType,
int startOffset)
Returns the first token in the linked list of tokens generated
from
text . |
Token |
PerlTokenMaker.getTokenList(javax.swing.text.Segment text,
int initialTokenType,
int startOffset)
Returns the first token in the linked list of tokens generated
from
text . |
Token |
NSISTokenMaker.getTokenList(javax.swing.text.Segment text,
int initialTokenType,
int startOffset)
Returns the first token in the linked list of tokens generated
from
text . |
Token |
MxmlTokenMaker.getTokenList(javax.swing.text.Segment text,
int initialTokenType,
int startOffset)
Returns the first token in the linked list of tokens generated
from
text . |
Token |
MakefileTokenMaker.getTokenList(javax.swing.text.Segment text,
int initialTokenType,
int startOffset)
Returns the first token in the linked list of tokens generated
from
text . |
Token |
LuaTokenMaker.getTokenList(javax.swing.text.Segment text,
int initialTokenType,
int startOffset)
Returns the first token in the linked list of tokens generated
from
text . |
Token |
LispTokenMaker.getTokenList(javax.swing.text.Segment text,
int initialTokenType,
int startOffset)
Returns the first token in the linked list of tokens generated
from
text . |
Token |
LatexTokenMaker.getTokenList(javax.swing.text.Segment text,
int initialTokenType,
int startOffset)
Returns the first token in the linked list of tokens generated
from
text . |
Token |
JSPTokenMaker.getTokenList(javax.swing.text.Segment text,
int initialTokenType,
int startOffset)
Returns the first token in the linked list of tokens generated
from
text . |
Token |
JsonTokenMaker.getTokenList(javax.swing.text.Segment text,
int initialTokenType,
int startOffset)
Returns the first token in the linked list of tokens generated
from
text . |
Token |
JavaTokenMaker.getTokenList(javax.swing.text.Segment text,
int initialTokenType,
int startOffset)
Returns the first token in the linked list of tokens generated
from
text . |
Token |
JavaScriptTokenMaker.getTokenList(javax.swing.text.Segment text,
int initialTokenType,
int startOffset)
Returns the first token in the linked list of tokens generated
from
text . |
Token |
HTMLTokenMaker.getTokenList(javax.swing.text.Segment text,
int initialTokenType,
int startOffset)
Returns the first token in the linked list of tokens generated
from
text . |
Token |
HtaccessTokenMaker.getTokenList(javax.swing.text.Segment text,
int initialTokenType,
int startOffset)
Returns the first token in the linked list of tokens generated
from
text . |
Token |
FortranTokenMaker.getTokenList(javax.swing.text.Segment text,
int initialTokenType,
int startOffset)
Returns the first token in the linked list of tokens generated
from
text . |
Token |
FormulaTokenMaker.getTokenList(javax.swing.text.Segment text,
int initialTokenType,
int startOffset)
Returns the first token in the linked list of tokens generated
from
text . |
Token |
DtdTokenMaker.getTokenList(javax.swing.text.Segment text,
int initialTokenType,
int startOffset)
Returns the first token in the linked list of tokens generated
from
text . |
Token |
DelphiTokenMaker.getTokenList(javax.swing.text.Segment text,
int initialTokenType,
int startOffset)
Returns the first token in the linked list of tokens generated
from
text . |
Token |
CTokenMaker.getTokenList(javax.swing.text.Segment text,
int initialTokenType,
int startOffset)
Returns the first token in the linked list of tokens generated
from
text . |
Token |
CSSTokenMaker.getTokenList(javax.swing.text.Segment text,
int initialTokenType,
int startOffset)
Returns the first token in the linked list of tokens generated
from
text . |
Token |
CSharpTokenMaker.getTokenList(javax.swing.text.Segment text,
int initialTokenType,
int startOffset)
Returns the first token in the linked list of tokens generated
from
text . |
Token |
CPlusPlusTokenMaker.getTokenList(javax.swing.text.Segment text,
int initialTokenType,
int startOffset)
Returns the first token in the linked list of tokens generated
from
text . |
Token |
ClojureTokenMaker.getTokenList(javax.swing.text.Segment text,
int initialTokenType,
int startOffset)
Returns the first token in the linked list of tokens generated
from
text . |
Token |
BBCodeTokenMaker.getTokenList(javax.swing.text.Segment text,
int initialTokenType,
int startOffset)
Returns the first token in the linked list of tokens generated
from
text . |
Token |
AssemblerX86TokenMaker.getTokenList(javax.swing.text.Segment text,
int initialTokenType,
int startOffset)
Returns the first token in the linked list of tokens generated
from
text . |
Token |
ActionScriptTokenMaker.getTokenList(javax.swing.text.Segment text,
int initialTokenType,
int startOffset)
Returns the first token in the linked list of tokens generated
from
text . |
Token |
XMLTokenMaker.yylex()
Resumes scanning until the next regular expression is matched,
the end of input is encountered or an I/O-Error occurs.
|
Token |
VisualBasicTokenMaker.yylex()
Resumes scanning until the next regular expression is matched,
the end of input is encountered or an I/O-Error occurs.
|
Token |
TclTokenMaker.yylex()
Resumes scanning until the next regular expression is matched,
the end of input is encountered or an I/O-Error occurs.
|
Token |
SQLTokenMaker.yylex()
Resumes scanning until the next regular expression is matched,
the end of input is encountered or an I/O-Error occurs.
|
Token |
ScalaTokenMaker.yylex()
Resumes scanning until the next regular expression is matched,
the end of input is encountered or an I/O-Error occurs.
|
Token |
SASTokenMaker.yylex()
Resumes scanning until the next regular expression is matched,
the end of input is encountered or an I/O-Error occurs.
|
Token |
RubyTokenMaker.yylex()
Resumes scanning until the next regular expression is matched,
the end of input is encountered or an I/O-Error occurs.
|
Token |
PythonTokenMaker.yylex()
Resumes scanning until the next regular expression is matched,
the end of input is encountered or an I/O-Error occurs.
|
Token |
PropertiesFileTokenMaker.yylex()
Resumes scanning until the next regular expression is matched,
the end of input is encountered or an I/O-Error occurs.
|
Token |
PlainTextTokenMaker.yylex()
Resumes scanning until the next regular expression is matched,
the end of input is encountered or an I/O-Error occurs.
|
Token |
PHPTokenMaker.yylex()
Resumes scanning until the next regular expression is matched,
the end of input is encountered or an I/O-Error occurs.
|
Token |
PerlTokenMaker.yylex()
Resumes scanning until the next regular expression is matched,
the end of input is encountered or an I/O-Error occurs.
|
Token |
NSISTokenMaker.yylex()
Resumes scanning until the next regular expression is matched,
the end of input is encountered or an I/O-Error occurs.
|
Token |
MxmlTokenMaker.yylex()
Resumes scanning until the next regular expression is matched,
the end of input is encountered or an I/O-Error occurs.
|
Token |
MakefileTokenMaker.yylex()
Resumes scanning until the next regular expression is matched,
the end of input is encountered or an I/O-Error occurs.
|
Token |
LuaTokenMaker.yylex()
Resumes scanning until the next regular expression is matched,
the end of input is encountered or an I/O-Error occurs.
|
Token |
LispTokenMaker.yylex()
Resumes scanning until the next regular expression is matched,
the end of input is encountered or an I/O-Error occurs.
|
Token |
LatexTokenMaker.yylex()
Resumes scanning until the next regular expression is matched,
the end of input is encountered or an I/O-Error occurs.
|
Token |
JSPTokenMaker.yylex()
Resumes scanning until the next regular expression is matched,
the end of input is encountered or an I/O-Error occurs.
|
Token |
JsonTokenMaker.yylex()
Resumes scanning until the next regular expression is matched,
the end of input is encountered or an I/O-Error occurs.
|
Token |
JavaTokenMaker.yylex()
Resumes scanning until the next regular expression is matched,
the end of input is encountered or an I/O-Error occurs.
|
Token |
JavaScriptTokenMaker.yylex()
Resumes scanning until the next regular expression is matched,
the end of input is encountered or an I/O-Error occurs.
|
Token |
HTMLTokenMaker.yylex()
Resumes scanning until the next regular expression is matched,
the end of input is encountered or an I/O-Error occurs.
|
Token |
HtaccessTokenMaker.yylex()
Resumes scanning until the next regular expression is matched,
the end of input is encountered or an I/O-Error occurs.
|
Token |
FortranTokenMaker.yylex()
Resumes scanning until the next regular expression is matched,
the end of input is encountered or an I/O-Error occurs.
|
Token |
FormulaTokenMaker.yylex()
Resumes scanning until the next regular expression is matched,
the end of input is encountered or an I/O-Error occurs.
|
Token |
DtdTokenMaker.yylex()
Resumes scanning until the next regular expression is matched,
the end of input is encountered or an I/O-Error occurs.
|
Token |
DelphiTokenMaker.yylex()
Resumes scanning until the next regular expression is matched,
the end of input is encountered or an I/O-Error occurs.
|
Token |
CTokenMaker.yylex()
Resumes scanning until the next regular expression is matched,
the end of input is encountered or an I/O-Error occurs.
|
Token |
CSSTokenMaker.yylex()
Resumes scanning until the next regular expression is matched,
the end of input is encountered or an I/O-Error occurs.
|
Token |
CSharpTokenMaker.yylex()
Resumes scanning until the next regular expression is matched,
the end of input is encountered or an I/O-Error occurs.
|
Token |
CPlusPlusTokenMaker.yylex()
Resumes scanning until the next regular expression is matched,
the end of input is encountered or an I/O-Error occurs.
|
Token |
ClojureTokenMaker.yylex()
Resumes scanning until the next regular expression is matched,
the end of input is encountered or an I/O-Error occurs.
|
Token |
BBCodeTokenMaker.yylex()
Resumes scanning until the next regular expression is matched,
the end of input is encountered or an I/O-Error occurs.
|
Token |
AssemblerX86TokenMaker.yylex()
Resumes scanning until the next regular expression is matched,
the end of input is encountered or an I/O-Error occurs.
|
Token |
ActionScriptTokenMaker.yylex()
Resumes scanning until the next regular expression is matched,
the end of input is encountered or an I/O-Error occurs.
|
限定符和类型 | 方法和说明 |
---|---|
boolean |
JsonTokenMaker.getShouldIndentNextLineAfter(Token t) |