|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Token | |
---|---|
edu.cs.ai.kreator.ui.gui.components | |
jsyntaxpane | |
jsyntaxpane.components | |
jsyntaxpane.lexers |
Uses of Token in edu.cs.ai.kreator.ui.gui.components |
---|
Methods in edu.cs.ai.kreator.ui.gui.components that return Token | |
---|---|
Token |
ConsolePane.getTokenToComplete()
|
Uses of Token in jsyntaxpane |
---|
Fields in jsyntaxpane with type parameters of type Token | |
---|---|
static java.util.Comparator<Token> |
TokenComparators.LONGEST_FIRST
|
static java.util.Comparator<Token> |
TokenComparators.SHORTEST_FIRST
|
Methods in jsyntaxpane that return Token | |
---|---|
Token |
SyntaxDocument.getNextToken(Token tok)
Return the token following the current token, or null This is an expensive operation, so do not use it to update the gui |
Token |
SyntaxDocument.getPairFor(Token t)
This is used to return the other part of a paired token in the document. |
Token |
SyntaxDocument.getPrevToken(Token tok)
Return the token prior to the given token, or null This is an expensive operation, so do not use it to update the gui |
Token |
SyntaxDocument.getTokenAt(int pos)
Find the token at a given position. |
Token |
SyntaxDocument.getWordAt(int offs,
java.util.regex.Pattern p)
|
Methods in jsyntaxpane that return types with arguments of type Token | |
---|---|
java.util.Iterator<Token> |
SyntaxDocument.getTokens(int start,
int end)
Return an iterator of tokens between p0 and p1. |
Methods in jsyntaxpane with parameters of type Token | |
---|---|
int |
Token.compareTo(Token t)
|
int |
SyntaxStyles.drawText(javax.swing.text.Segment segment,
int x,
int y,
java.awt.Graphics graphics,
javax.swing.text.TabExpander e,
Token token)
Draw the given Token. |
Token |
SyntaxDocument.getNextToken(Token tok)
Return the token following the current token, or null This is an expensive operation, so do not use it to update the gui |
Token |
SyntaxDocument.getPairFor(Token t)
This is used to return the other part of a paired token in the document. |
Token |
SyntaxDocument.getPrevToken(Token tok)
Return the token prior to the given token, or null This is an expensive operation, so do not use it to update the gui |
static boolean |
TokenType.isComment(Token t)
Tests if the given token is a Comment Token. |
static boolean |
TokenType.isKeyword(Token t)
Tests if the given token is a Keyword Token. |
static boolean |
TokenType.isString(Token t)
Tests if the given token is a String Token. |
void |
SyntaxDocument.replaceToken(Token token,
java.lang.String replacement)
Replace the token with the replacement string |
Method parameters in jsyntaxpane with type arguments of type Token | |
---|---|
void |
Lexer.parse(javax.swing.text.Segment segment,
int ofst,
java.util.List<Token> tokens)
This is the only method a Lexer needs to implement. |
Uses of Token in jsyntaxpane.components |
---|
Methods in jsyntaxpane.components with parameters of type Token | |
---|---|
static void |
Markers.markToken(javax.swing.text.JTextComponent pane,
Token token,
Markers.SimpleMarker marker)
add highlights for the given Token on the given pane |
Uses of Token in jsyntaxpane.lexers |
---|
Methods in jsyntaxpane.lexers that return Token | |
---|---|
protected Token |
DefaultJFlexLexer.token(TokenType type)
Create and return a Token of given type. |
protected Token |
DefaultJFlexLexer.token(TokenType type,
int pairValue)
Create and return a Token of given type and pairValue. |
protected Token |
DefaultJFlexLexer.token(TokenType type,
int start,
int length)
Create and return a Token of given type from start with length offset is added to start |
protected Token |
KReatorJFlexLexer.token(TokenType type,
int tStart,
int tLength,
int newStart,
int newLength)
|
protected Token |
DefaultJFlexLexer.token(TokenType type,
int tStart,
int tLength,
int newStart,
int newLength)
Helper method to create and return a new Token from of TokenType tokenStart and tokenLength will be modified to the newStart and newLength params |
Token |
XmlLexer.yylex()
Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs. |
Token |
VerySimpleLexer.yylex()
Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs. |
Token |
KreatorConsoleLexer.yylex()
Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs. |
Token |
JavaScriptLexer.yylex()
Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs. |
Token |
EvidenceLexer.yylex()
Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs. |
abstract Token |
DefaultJFlexLexer.yylex()
This is called to return the next Token from the Input Reader |
Method parameters in jsyntaxpane.lexers with type arguments of type Token | |
---|---|
void |
SimpleRegexLexer.parse(javax.swing.text.Segment segment,
int ofst,
java.util.List<Token> tokens)
|
void |
KreatorAntlrLexer.parse(javax.swing.text.Segment segment,
int ofst,
java.util.List<Token> tokens)
|
void |
EmptyLexer.parse(javax.swing.text.Segment segment,
int ofst,
java.util.List<Token> tokens)
|
void |
DefaultJFlexLexer.parse(javax.swing.text.Segment segment,
int ofst,
java.util.List<Token> tokens)
The DefaultJFlexLexer simply calls the yylex method of a JFLex compatible Lexer and adds the tokens obtained to an ArrayList. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |