public class TokenMarkerContext
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
char[] |
array |
TokenMarker.LineInfo |
currLineInfo |
int |
lastKeyword |
int |
lastOffset |
int |
length |
javax.swing.text.Segment |
line |
int |
lineIndex |
int |
offset |
int |
pos |
TokenMarker.LineInfo |
prevLineInfo |
Constructor and Description |
---|
TokenMarkerContext(javax.swing.text.Segment line,
int lineIndex,
TokenMarkerWithAddToken marker) |
TokenMarkerContext(javax.swing.text.Segment line,
int lineIndex,
TokenMarkerWithAddToken marker,
TokenMarker.LineInfo[] lineInfo) |
Modifier and Type | Method and Description |
---|---|
void |
addToken(int length,
byte id) |
void |
addTokenToEnd(byte id) |
void |
addTokenToPos(byte id)
Adds a token to the position specified (position exclusive)
The character at pos index is excluded
|
void |
addTokenToPos(int pos,
byte id) |
boolean |
atFirst() |
byte |
doKeywordToEnd(KeywordMap keywords) |
byte |
doKeywordToPos(int pos,
KeywordMap keywords) |
byte |
doKeywordToPos(KeywordMap keywords) |
char |
getChar() |
char |
getChar(int inc) |
boolean |
hasMoreChars() |
char |
lastChar() |
boolean |
regionMatches(boolean ignoreCase,
java.lang.String match) |
int |
remainingChars() |
gnu.regexp.REMatch |
RERegionMatches(gnu.regexp.RE match) |
java.lang.String |
toString() |
public javax.swing.text.Segment line
public int lineIndex
public char[] array
public int offset
public int lastOffset
public int lastKeyword
public int length
public int pos
public TokenMarker.LineInfo prevLineInfo
public TokenMarker.LineInfo currLineInfo
public TokenMarkerContext(javax.swing.text.Segment line, int lineIndex, TokenMarkerWithAddToken marker, TokenMarker.LineInfo[] lineInfo)
public TokenMarkerContext(javax.swing.text.Segment line, int lineIndex, TokenMarkerWithAddToken marker)
public boolean atFirst()
public boolean hasMoreChars()
public int remainingChars()
public char getChar()
public char getChar(int inc)
public char lastChar()
public void addToken(int length, byte id)
public void addTokenToPos(byte id)
public void addTokenToPos(int pos, byte id)
public void addTokenToEnd(byte id)
public byte doKeywordToPos(int pos, KeywordMap keywords)
public byte doKeywordToPos(KeywordMap keywords)
public byte doKeywordToEnd(KeywordMap keywords)
public boolean regionMatches(boolean ignoreCase, java.lang.String match)
public gnu.regexp.REMatch RERegionMatches(gnu.regexp.RE match)
public java.lang.String toString()
toString
in class java.lang.Object
Copyright ? 2002 Romain Guy.