public static final class Rule.Phoneme extends Object implements Rule.PhonemeExpr
Modifier and Type | Field and Description |
---|---|
static Comparator<Rule.Phoneme> |
COMPARATOR |
Constructor and Description |
---|
Rule.Phoneme(CharSequence phonemeText,
Languages.LanguageSet languages) |
Rule.Phoneme(Rule.Phoneme phonemeLeft,
Rule.Phoneme phonemeRight) |
Rule.Phoneme(Rule.Phoneme phonemeLeft,
Rule.Phoneme phonemeRight,
Languages.LanguageSet languages) |
Modifier and Type | Method and Description |
---|---|
Rule.Phoneme |
append(CharSequence str) |
Languages.LanguageSet |
getLanguages() |
Iterable<Rule.Phoneme> |
getPhonemes() |
CharSequence |
getPhonemeText() |
Rule.Phoneme |
join(Rule.Phoneme right)
Deprecated.
since 1.9
|
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.
|
String |
toString() |
public static final Comparator<Rule.Phoneme> COMPARATOR
public Rule.Phoneme(CharSequence phonemeText, Languages.LanguageSet languages)
public Rule.Phoneme(Rule.Phoneme phonemeLeft, Rule.Phoneme phonemeRight)
public Rule.Phoneme(Rule.Phoneme phonemeLeft, Rule.Phoneme phonemeRight, Languages.LanguageSet languages)
public Rule.Phoneme append(CharSequence str)
public Languages.LanguageSet getLanguages()
public Iterable<Rule.Phoneme> getPhonemes()
getPhonemes
in interface Rule.PhonemeExpr
public CharSequence getPhonemeText()
@Deprecated public Rule.Phoneme join(Rule.Phoneme right)
right
- the Phoneme to joinpublic Rule.Phoneme mergeWithLanguage(Languages.LanguageSet lang)
lang
- the language set to mergeCopyright © 2002–2014 The Apache Software Foundation. All rights reserved.