|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gjt.sp.util.CharIndexedSegment
Lets gnu.regexp search within Segment objects.
| Field Summary |
| Fields inherited from interface gnu.regexp.CharIndexed |
OUT_OF_BOUNDS |
| Constructor Summary | |
CharIndexedSegment(javax.swing.text.Segment seg,
boolean reverse)
Creates a new CharIndexedSegment. |
|
CharIndexedSegment(javax.swing.text.Segment seg,
int index)
Creates a new CharIndexedSegment. |
|
| Method Summary | |
char |
charAt(int index)
Returns the character at the given offset past the current cursor position in the input. |
boolean |
isValid()
Returns true if the most recent move() operation placed the cursor position at a valid position in the input. |
boolean |
move(int index)
Shifts the input buffer by a given number of positions. |
void |
reset()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CharIndexedSegment(javax.swing.text.Segment seg,
int index)
CharIndexedSegment.
public CharIndexedSegment(javax.swing.text.Segment seg,
boolean reverse)
CharIndexedSegment.
| Method Detail |
public char charAt(int index)
CharIndexed
charAt in interface CharIndexedindex - the offset position in the character field to examine
public boolean isValid()
CharIndexed
isValid in interface CharIndexedpublic void reset()
public boolean move(int index)
CharIndexed
move in interface CharIndexed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||