Package com.ibm.icu.text
Class MessagePatternUtil.VariantNode
- java.lang.Object
-
- com.ibm.icu.text.MessagePatternUtil.Node
-
- com.ibm.icu.text.MessagePatternUtil.VariantNode
-
- Enclosing class:
- MessagePatternUtil
public static class MessagePatternUtil.VariantNode extends MessagePatternUtil.Node
A Node representing a nested message (nested inside an argument) with its selection criterion.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessagePatternUtil.MessageNodegetMessage()java.lang.StringgetSelector()Returns the selector string.doublegetSelectorValue()booleanisSelectorNumeric()java.lang.StringtoString()
-
-
-
Method Detail
-
getSelector
public java.lang.String 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
-
isSelectorNumeric
public boolean isSelectorNumeric()
- Returns:
- true for choice variants and for plural explicit values
-
getSelectorValue
public double getSelectorValue()
- Returns:
- the selector's numeric value, or NO_NUMERIC_VALUE if !isSelectorNumeric()
-
getMessage
public MessagePatternUtil.MessageNode getMessage()
- Returns:
- the nested message
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-