Class Rule.Phoneme
java.lang.Object
org.apache.commons.codec.language.bm.Rule.Phoneme
- All Implemented Interfaces:
Rule.PhonemeExpr
- Enclosing class:
- Rule
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPhoneme
(CharSequence phonemeText, Languages.LanguageSet languages) Phoneme
(Rule.Phoneme phonemeLeft, Rule.Phoneme phonemeRight) Phoneme
(Rule.Phoneme phonemeLeft, Rule.Phoneme phonemeRight, Languages.LanguageSet languages) -
Method Summary
Modifier and TypeMethodDescriptionappend
(CharSequence str) 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.int
size()
Gets the expression size in phonemes.toString()
-
Field Details
-
COMPARATOR
-
-
Constructor Details
-
Phoneme
-
Phoneme
-
Phoneme
public Phoneme(Rule.Phoneme phonemeLeft, Rule.Phoneme phonemeRight, Languages.LanguageSet languages)
-
-
Method Details
-
append
-
getLanguages
-
getPhonemes
- Specified by:
getPhonemes
in interfaceRule.PhonemeExpr
-
getPhonemeText
-
join
Deprecated.since 1.9Deprecated since 1.9.- Parameters:
right
- the Phoneme to join- Returns:
- a new Phoneme
-
mergeWithLanguage
Returns 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
-
size
Description copied from interface:Rule.PhonemeExpr
Gets the expression size in phonemes.- Specified by:
size
in interfaceRule.PhonemeExpr
- Returns:
- the expression size in phonemes.
-
toString
-