net.sf.snowball

Class SnowballProgram

Known Direct Subclasses:
DanishStemmer, DutchStemmer, EnglishStemmer, FinnishStemmer, FrenchStemmer, German2Stemmer, GermanStemmer, ItalianStemmer, KpStemmer, LovinsStemmer, NorwegianStemmer, PorterStemmer, PortugueseStemmer, RussianStemmer, SpanishStemmer, SwedishStemmer

public class SnowballProgram
extends Object

Field Summary

protected int
bra
protected StringBuffer
current
protected int
cursor
protected int
ket
protected int
limit
protected int
limit_backward

Constructor Summary

SnowballProgram()

Method Summary

protected StringBuffer
assign_to(StringBuffer s)
protected void
copy_from(SnowballProgram other)
protected boolean
eq_s(int s_size, String s)
protected boolean
eq_s_b(int s_size, String s)
protected boolean
eq_v(StringBuffer s)
protected boolean
eq_v_b(StringBuffer s)
protected int
find_among(v[] , int v_size)
protected int
find_among_b(v[] , int v_size)
String
getCurrent()
Get the current string.
protected boolean
in_grouping(char[] s, int min, int max)
protected boolean
in_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 void
insert(int c_bra, int c_ket, String s)
protected void
insert(int c_bra, int c_ket, StringBuffer s)
protected boolean
out_grouping(char[] s, int min, int max)
protected boolean
out_grouping_b(char[] s, int min, int max)
protected boolean
out_range(int min, int max)
protected boolean
out_range_b(int min, int max)
protected int
replace_s(int c_bra, int c_ket, String s)
void
setCurrent(String value)
Set the current string.
protected void
slice_check()
protected void
slice_del()
protected void
slice_from(String s)
protected void
slice_from(StringBuffer s)
protected StringBuffer
slice_to(StringBuffer s)

Field Details

bra

protected int bra

current

protected StringBuffer current

cursor

protected int cursor

ket

protected int ket

limit

protected int limit

limit_backward

protected int limit_backward

Constructor Details

SnowballProgram

protected SnowballProgram()

Method Details

assign_to

protected StringBuffer assign_to(StringBuffer s)

copy_from

protected void copy_from(SnowballProgram other)

eq_s

protected boolean eq_s(int s_size,
                       String s)

eq_s_b

protected boolean eq_s_b(int s_size,
                         String s)

eq_v

protected boolean eq_v(StringBuffer s)

eq_v_b

protected boolean eq_v_b(StringBuffer s)

find_among

protected int find_among(v[] ,
                         int v_size)

find_among_b

protected int find_among_b(v[] ,
                           int v_size)

getCurrent

public String getCurrent()
Get the current string.

in_grouping

protected boolean in_grouping(char[] s,
                              int min,
                              int max)

in_grouping_b

protected boolean in_grouping_b(char[] s,
                                int min,
                                int max)

in_range

protected boolean in_range(int min,
                           int max)

in_range_b

protected boolean in_range_b(int min,
                             int max)

insert

protected void insert(int c_bra,
                      int c_ket,
                      String s)

insert

protected void insert(int c_bra,
                      int c_ket,
                      StringBuffer s)

out_grouping

protected boolean out_grouping(char[] s,
                               int min,
                               int max)

out_grouping_b

protected boolean out_grouping_b(char[] s,
                                 int min,
                                 int max)

out_range

protected boolean out_range(int min,
                            int max)

out_range_b

protected boolean out_range_b(int min,
                              int max)

replace_s

protected int replace_s(int c_bra,
                        int c_ket,
                        String s)

setCurrent

public void setCurrent(String value)
Set the current string.

slice_check

protected void slice_check()

slice_del

protected void slice_del()

slice_from

protected void slice_from(String s)

slice_from

protected void slice_from(StringBuffer s)

slice_to

protected StringBuffer slice_to(StringBuffer s)

Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.