public static class MessagePatternUtil.ComplexArgStyleNode extends MessagePatternUtil.Node
Modifier and Type | Method and Description |
---|---|
MessagePattern.ArgType |
getArgType() |
double |
getOffset() |
List<MessagePatternUtil.VariantNode> |
getVariants() |
MessagePatternUtil.VariantNode |
getVariantsByType(List<MessagePatternUtil.VariantNode> numericVariants,
List<MessagePatternUtil.VariantNode> keywordVariants)
Separates the variants by type.
|
boolean |
hasExplicitOffset() |
String |
toString() |
public MessagePattern.ArgType getArgType()
public boolean hasExplicitOffset()
public double getOffset()
public List<MessagePatternUtil.VariantNode> getVariants()
public MessagePatternUtil.VariantNode getVariantsByType(List<MessagePatternUtil.VariantNode> numericVariants, List<MessagePatternUtil.VariantNode> keywordVariants)
Both parameters are used only for output, and are first cleared.
numericVariants
- Variants with numeric-value selectors (if any) are added here.
Can be null for a select argument style.keywordVariants
- Variants with keyword selectors, except "other", are added here.
For a plural argument, if this list is empty after the call, then
all variants except "other" have explicit values
and PluralRules need not be called.Copyright © 2016 Unicode, Inc. and others.