|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.xslthl.CharIter
public class CharIter
A special character iterator
Constructor Summary | |
---|---|
CharIter(String input)
|
Method Summary | |
---|---|
Matcher |
createMatcher(Pattern pattern)
Create a pattern matcher |
Character |
current()
|
boolean |
finished()
|
int |
getLength()
|
int |
getMark()
|
String |
getMarked()
|
int |
getPosition()
|
boolean |
hasNext()
|
int |
indexOf(String substr)
|
boolean |
isMarked()
|
Iterator<Character> |
iterator()
|
Block |
markedToBlock()
|
Block |
markedToStyledBlock(String styleName)
Create a style block, unless the stylename is equale to |
void |
moveNext()
Increase the pointer |
void |
moveNext(int offset)
Increase the point with the given offset |
void |
moveNextAndMark()
Increase the pointer and mark the position after it |
void |
moveToEnd()
Move to the end of the string |
Character |
next()
|
Character |
next(int offset)
|
Character |
prev()
|
Character |
prev(int offset)
|
int |
remaining()
|
void |
remove()
|
void |
setMark()
Set the current position as the mark |
void |
setMark(int newMark)
Set the mark to the given location |
boolean |
startsWith(String prefix)
|
boolean |
startsWith(String prefix,
boolean ignoreCase)
|
boolean |
startsWith(String prefix,
int diff)
|
boolean |
startsWith(String prefix,
int diff,
boolean ignoreCase)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CharIter(String input)
Method Detail |
---|
public int getMark()
public void setMark()
public void setMark(int newMark)
newMark
- public boolean isMarked()
public String getMarked()
public Block markedToBlock()
public Block markedToStyledBlock(String styleName)
styleName
-
public void moveNext()
public void moveNext(int offset)
offset
- public void moveNextAndMark()
public void moveToEnd()
public boolean finished()
public Character current()
public Character next()
next
in interface Iterator<Character>
public Character next(int offset)
offset
-
public Character prev()
public Character prev(int offset)
offset
-
public boolean startsWith(String prefix)
prefix
-
public boolean startsWith(String prefix, boolean ignoreCase)
prefix
- ignoreCase
-
public boolean startsWith(String prefix, int diff)
prefix
- diff
-
public boolean startsWith(String prefix, int diff, boolean ignoreCase)
prefix
- diff
- ignoreCase
-
public Matcher createMatcher(Pattern pattern)
pattern
- public int getPosition()
public int getLength()
public int remaining()
public int indexOf(String substr)
substr
-
public Iterator<Character> iterator()
iterator
in interface Iterable<Character>
public boolean hasNext()
hasNext
in interface Iterator<Character>
public void remove()
remove
in interface Iterator<Character>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |