public abstract class SnowballProgram extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
bra |
protected int |
cursor |
protected int |
ket |
protected int |
limit |
protected int |
limit_backward |
Modifier | Constructor and Description |
---|---|
protected |
SnowballProgram() |
Modifier and Type | Method and Description |
---|---|
protected StringBuilder |
assign_to(StringBuilder s) |
protected void |
copy_from(SnowballProgram other) |
protected boolean |
eq_s_b(int s_size,
CharSequence s) |
protected boolean |
eq_s_b(int s_size,
String s)
Deprecated.
for binary back compat. Will be removed in Lucene 4.0
|
protected boolean |
eq_s(int s_size,
CharSequence s) |
protected boolean |
eq_s(int s_size,
String s)
Deprecated.
for binary back compat. Will be removed in Lucene 4.0
|
protected boolean |
eq_v_b(CharSequence s) |
protected boolean |
eq_v_b(StringBuilder s)
Deprecated.
for binary back compat. Will be removed in Lucene 4.0
|
protected boolean |
eq_v(CharSequence s) |
protected boolean |
eq_v(StringBuilder s)
Deprecated.
for binary back compat. Will be removed in Lucene 4.0
|
protected int |
find_among_b(Among[] v,
int v_size) |
protected int |
find_among(Among[] v,
int v_size) |
String |
getCurrent()
Get the current string.
|
char[] |
getCurrentBuffer()
Get the current buffer containing the stem.
|
int |
getCurrentBufferLength()
Get the valid length of the character array in
getCurrentBuffer() . |
protected boolean |
in_grouping_b(char[] s,
int min,
int max) |
protected boolean |
in_grouping(char[] s,
int min,
int max) |
protected boolean |
in_range_b(int min,
int max) |
protected boolean |
in_range(int min,
int max) |
protected void |
insert(int c_bra,
int c_ket,
CharSequence s) |
protected void |
insert(int c_bra,
int c_ket,
String s)
Deprecated.
for binary back compat. Will be removed in Lucene 4.0
|
protected void |
insert(int c_bra,
int c_ket,
StringBuilder s)
Deprecated.
for binary back compat. Will be removed in Lucene 4.0
|
protected boolean |
out_grouping_b(char[] s,
int min,
int max) |
protected boolean |
out_grouping(char[] s,
int min,
int max) |
protected boolean |
out_range_b(int min,
int max) |
protected boolean |
out_range(int min,
int max) |
protected int |
replace_s(int c_bra,
int c_ket,
CharSequence s) |
protected int |
replace_s(int c_bra,
int c_ket,
String s)
Deprecated.
for binary back compat. Will be removed in Lucene 4.0
|
void |
setCurrent(char[] text,
int length)
Set the current string.
|
void |
setCurrent(String value)
Set the current string.
|
protected void |
slice_check() |
protected void |
slice_del() |
protected void |
slice_from(CharSequence s) |
protected void |
slice_from(String s)
Deprecated.
for binary back compat. Will be removed in Lucene 4.0
|
protected void |
slice_from(StringBuilder s)
Deprecated.
for binary back compat. Will be removed in Lucene 4.0
|
protected StringBuilder |
slice_to(StringBuilder s) |
abstract boolean |
stem() |
protected int cursor
protected int limit
protected int limit_backward
protected int bra
protected int ket
public abstract boolean stem()
public void setCurrent(String value)
public String getCurrent()
public void setCurrent(char[] text, int length)
text
- character array containing inputlength
- valid length of text.public char[] getCurrentBuffer()
NOTE: this may be a reference to a different character array than the one originally provided with setCurrent, in the exceptional case that stemming produced a longer intermediate or result string.
It is necessary to use getCurrentBufferLength()
to determine
the valid length of the returned buffer. For example, many words are
stemmed simply by subtracting from the length to remove suffixes.
getCurrentBufferLength()
public int getCurrentBufferLength()
getCurrentBuffer()
.protected void copy_from(SnowballProgram other)
protected boolean in_grouping(char[] s, int min, int max)
protected boolean in_grouping_b(char[] s, int min, int max)
protected boolean out_grouping(char[] s, int min, int max)
protected boolean out_grouping_b(char[] s, int min, int max)
protected boolean in_range(int min, int max)
protected boolean in_range_b(int min, int max)
protected boolean out_range(int min, int max)
protected boolean out_range_b(int min, int max)
protected boolean eq_s(int s_size, CharSequence s)
@Deprecated protected boolean eq_s(int s_size, String s)
protected boolean eq_s_b(int s_size, CharSequence s)
@Deprecated protected boolean eq_s_b(int s_size, String s)
protected boolean eq_v(CharSequence s)
@Deprecated protected boolean eq_v(StringBuilder s)
protected boolean eq_v_b(CharSequence s)
@Deprecated protected boolean eq_v_b(StringBuilder s)
protected int find_among(Among[] v, int v_size)
protected int find_among_b(Among[] v, int v_size)
protected int replace_s(int c_bra, int c_ket, CharSequence s)
@Deprecated protected int replace_s(int c_bra, int c_ket, String s)
protected void slice_check()
protected void slice_from(CharSequence s)
@Deprecated protected void slice_from(String s)
@Deprecated protected void slice_from(StringBuilder s)
protected void slice_del()
protected void insert(int c_bra, int c_ket, CharSequence s)
@Deprecated protected void insert(int c_bra, int c_ket, String s)
@Deprecated protected void insert(int c_bra, int c_ket, StringBuilder s)
protected StringBuilder slice_to(StringBuilder s)
protected StringBuilder assign_to(StringBuilder s)