|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kefirsf.bb.proc.Source
public class Source
Класс источник для парсинга BB-кодов
| Constructor Summary | |
|---|---|
Source(CharSequence text)
Create source class. |
|
| Method Summary | |
|---|---|
int |
find(PatternConstant constant)
Find constant in source text. |
int |
getLength()
Return length of source text |
int |
getOffset()
Return current offset. |
boolean |
hasNext()
Есть ли еще что-то в строке? |
void |
incOffset()
Increment offset. |
void |
incOffset(int increment)
Increment offset. |
char |
next()
Return next character and increment offset. |
boolean |
nextIs(PatternConstant constant)
Test id next sequence the constant? |
boolean |
nextMayBeConstant()
Check if the current sub sequence can be constant. |
void |
setConstantSet(Set<PatternConstant> constantSet)
Set constant set from configuration. |
void |
setOffset(int offset)
Set offset. |
CharSequence |
sub(int end)
Получает строку от текущего смещения до значения end |
CharSequence |
subToEnd()
Get String from offset to end. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Source(CharSequence text)
text - source text.| Method Detail |
|---|
public boolean nextMayBeConstant()
public void setConstantSet(Set<PatternConstant> constantSet)
public boolean nextIs(PatternConstant constant)
constant - constant pattern element
public int find(PatternConstant constant)
constant - constant pattern element
public char next()
public int getOffset()
public void incOffset()
public void incOffset(int increment)
increment - increment size.public void setOffset(int offset)
offset - new offset value.public boolean hasNext()
public int getLength()
public CharSequence sub(int end)
end
end - последний индекс
public CharSequence subToEnd()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||