Class Rule.Phoneme
java.lang.Object
org.apache.commons.codec.language.bm.Rule.Phoneme
- All Implemented Interfaces:
- Rule.PhonemeExpr
- Enclosing class:
- Rule
A phoneme.
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionPhoneme(CharSequence phonemeText, Languages.LanguageSet languages) Constructs a new instance.Phoneme(Rule.Phoneme phonemeLeft, Rule.Phoneme phonemeRight) Constructs a new instance.Phoneme(Rule.Phoneme phonemeLeft, Rule.Phoneme phonemeRight, Languages.LanguageSet languages) Constructs a new instance.
- 
Method SummaryModifier and TypeMethodDescriptionappend(CharSequence sequence) Appends the sequence to the phone text.Gets the language set.Gets an iteration of phonemes.Gets the phoneme text sequence.join(Rule.Phoneme right) Deprecated.since 1.9Returns a new Phoneme with the same text but a union of its current language set and the given one.intsize()Gets the expression size in phonemes.toString()
- 
Field Details- 
COMPARATORThe Phoneme Comparator.
 
- 
- 
Constructor Details- 
PhonemeConstructs a new instance.- Parameters:
- phonemeText- The phoneme text.
- languages- A language set.
 
- 
PhonemeConstructs a new instance.- Parameters:
- phonemeLeft- The left phoneme text.
- phonemeRight- The right phoneme text.
 
- 
Phonemepublic Phoneme(Rule.Phoneme phonemeLeft, Rule.Phoneme phonemeRight, Languages.LanguageSet languages) Constructs a new instance.- Parameters:
- phonemeLeft- The left phoneme text.
- phonemeRight- The right phoneme text.
- languages- A language set.
 
 
- 
- 
Method Details- 
appendAppends the sequence to the phone text.- Parameters:
- sequence- The sequence to append.
- Returns:
- this instance.
 
- 
getLanguagesGets the language set.- Returns:
- the language set.
 
- 
getPhonemesDescription copied from interface:Rule.PhonemeExprGets an iteration of phonemes.- Specified by:
- getPhonemesin interface- Rule.PhonemeExpr
- Returns:
- an iteration of phonemes.
 
- 
getPhonemeTextGets the phoneme text sequence.- Returns:
- the phoneme text sequence.
 
- 
joinDeprecated.since 1.9Deprecated since 1.9.- Parameters:
- right- the Phoneme to join
- Returns:
- a new Phoneme
 
- 
mergeWithLanguageReturns a new Phoneme with the same text but a union of its current language set and the given one.- Parameters:
- lang- the language set to merge
- Returns:
- a new Phoneme
 
- 
sizeDescription copied from interface:Rule.PhonemeExprGets the expression size in phonemes.- Specified by:
- sizein interface- Rule.PhonemeExpr
- Returns:
- the expression size in phonemes.
 
- 
toString
 
-