/// ----------------------------------------------------------------------------------- /// <summary> /// Set the starting or ending class. /// </summary> /// <param name="fIsStartPoint">True if the class is the starting class, /// otherwise false.</param> /// <param name="cls">The class to set.</param> /// ----------------------------------------------------------------------------------- public void SetAffixClass(bool fIsStartPoint, Class cls) { if (fIsStartPoint) { if (m_start == null) m_start = cls; else Debug.Assert(false); } else { if (m_end == null) m_end = cls; else Debug.Assert(false); } }
/// ----------------------------------------------------------------------------------- /// <summary> /// Cosntructor. /// </summary> /// <param name="m">The real morpheme that is wrapped.</param> /// ----------------------------------------------------------------------------------- public MorphemeWrapper(Morpheme m) { m_morpheme = m; m_predecessors = new StringCollection(); m_successors = new StringCollection(); m_start = null; m_end = null; }