Class MessagePatternUtil.VariantNode
java.lang.Object
com.ibm.icu.text.MessagePatternUtil.Node
com.ibm.icu.text.MessagePatternUtil.VariantNode
- Enclosing class:
MessagePatternUtil
A Node representing a nested message (nested inside an argument) with its selection
criterion.
- Author:
- Markus Scherer
- Status:
- Stable ICU 49.
-
Method Summary
-
Method Details
-
getSelector
Returns the selector string. For example: A plural/select keyword ("few"), a plural explicit value ("=1"), a choice comparison operator ("#").- Returns:
- the selector string
- Status:
- Stable ICU 49.
-
isSelectorNumeric
public boolean isSelectorNumeric()- Returns:
- true for choice variants and for plural explicit values
- Status:
- Stable ICU 49.
-
getSelectorValue
public double getSelectorValue()- Returns:
- the selector's numeric value, or NO_NUMERIC_VALUE if !isSelectorNumeric()
- Status:
- Stable ICU 49.
-
getMessage
- Returns:
- the nested message
- Status:
- Stable ICU 49.
-
toString
-