Class Rule.Phoneme
- java.lang.Object
-
- org.apache.commons.codec.language.bm.Rule.Phoneme
-
- All Implemented Interfaces:
Rule.PhonemeExpr
- Enclosing class:
- Rule
public static final class Rule.Phoneme extends java.lang.Object implements Rule.PhonemeExpr
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.Comparator<Rule.Phoneme>
COMPARATOR
-
Constructor Summary
Constructors Constructor Description Phoneme(java.lang.CharSequence phonemeText, Languages.LanguageSet languages)
Phoneme(Rule.Phoneme phonemeLeft, Rule.Phoneme phonemeRight)
Phoneme(Rule.Phoneme phonemeLeft, Rule.Phoneme phonemeRight, Languages.LanguageSet languages)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Rule.Phoneme
append(java.lang.CharSequence str)
Languages.LanguageSet
getLanguages()
java.lang.Iterable<Rule.Phoneme>
getPhonemes()
java.lang.CharSequence
getPhonemeText()
Rule.Phoneme
join(Rule.Phoneme right)
Deprecated.since 1.9Rule.Phoneme
mergeWithLanguage(Languages.LanguageSet lang)
Returns a new Phoneme with the same text but a union of its current language set and the given one.java.lang.String
toString()
-
-
-
Field Detail
-
COMPARATOR
public static final java.util.Comparator<Rule.Phoneme> COMPARATOR
-
-
Constructor Detail
-
Phoneme
public Phoneme(java.lang.CharSequence phonemeText, Languages.LanguageSet languages)
-
Phoneme
public Phoneme(Rule.Phoneme phonemeLeft, Rule.Phoneme phonemeRight)
-
Phoneme
public Phoneme(Rule.Phoneme phonemeLeft, Rule.Phoneme phonemeRight, Languages.LanguageSet languages)
-
-
Method Detail
-
append
public Rule.Phoneme append(java.lang.CharSequence str)
-
getLanguages
public Languages.LanguageSet getLanguages()
-
getPhonemes
public java.lang.Iterable<Rule.Phoneme> getPhonemes()
- Specified by:
getPhonemes
in interfaceRule.PhonemeExpr
-
getPhonemeText
public java.lang.CharSequence getPhonemeText()
-
join
@Deprecated public Rule.Phoneme join(Rule.Phoneme right)
Deprecated.since 1.9Deprecated since 1.9.- Parameters:
right
- the Phoneme to join- Returns:
- a new Phoneme
-
mergeWithLanguage
public Rule.Phoneme mergeWithLanguage(Languages.LanguageSet lang)
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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-