Class SnowballProgram

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    SnowballStemmer

    public class SnowballProgram
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int bra  
      protected java.lang.StringBuilder current  
      protected int cursor  
      protected int ket  
      protected int limit  
      protected int limit_backward  
      (package private) static long serialVersionUID  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void assign_to​(java.lang.StringBuilder s)  
      protected void copy_from​(SnowballProgram other)  
      protected boolean eq_s​(java.lang.CharSequence s)  
      protected boolean eq_s_b​(java.lang.CharSequence s)  
      protected int find_among​(Among[] v)  
      protected int find_among_b​(Among[] v)  
      java.lang.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)  
      private void init()  
      protected void insert​(int c_bra, int c_ket, java.lang.CharSequence s)  
      protected void insert​(int c_bra, int c_ket, java.lang.String s)  
      protected boolean out_grouping​(char[] s, int min, int max)  
      protected boolean out_grouping_b​(char[] s, int min, int max)  
      protected int replace_s​(int c_bra, int c_ket, java.lang.String s)  
      void setCurrent​(java.lang.String value)
      Set the current string.
      protected void slice_check()  
      protected void slice_del()  
      protected void slice_from​(java.lang.CharSequence s)  
      protected void slice_from​(java.lang.String s)  
      protected void slice_to​(java.lang.StringBuilder s)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • current

        protected java.lang.StringBuilder current
      • cursor

        protected int cursor
      • limit

        protected int limit
      • limit_backward

        protected int limit_backward
      • bra

        protected int bra
      • ket

        protected int ket
    • Constructor Detail

      • SnowballProgram

        protected SnowballProgram()
    • Method Detail

      • init

        private void init()
      • setCurrent

        public void setCurrent​(java.lang.String value)
        Set the current string.
      • getCurrent

        public java.lang.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)
      • 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)
      • eq_s

        protected boolean eq_s​(java.lang.CharSequence s)
      • eq_s_b

        protected boolean eq_s_b​(java.lang.CharSequence s)
      • find_among

        protected int find_among​(Among[] v)
      • find_among_b

        protected int find_among_b​(Among[] v)
      • replace_s

        protected int replace_s​(int c_bra,
                                int c_ket,
                                java.lang.String s)
      • slice_check

        protected void slice_check()
      • slice_from

        protected void slice_from​(java.lang.String s)
      • slice_from

        protected void slice_from​(java.lang.CharSequence s)
      • slice_del

        protected void slice_del()
      • insert

        protected void insert​(int c_bra,
                              int c_ket,
                              java.lang.String s)
      • insert

        protected void insert​(int c_bra,
                              int c_ket,
                              java.lang.CharSequence s)
      • slice_to

        protected void slice_to​(java.lang.StringBuilder s)
      • assign_to

        protected void assign_to​(java.lang.StringBuilder s)