Class MessagePatternUtil.ArgNode
java.lang.Object
com.ibm.icu.text.MessagePatternUtil.Node
com.ibm.icu.text.MessagePatternUtil.MessageContentsNode
com.ibm.icu.text.MessagePatternUtil.ArgNode
- Enclosing class:
MessagePatternUtil
A piece of MessageNode contents representing a message argument and its details.
- Author:
- Markus Scherer
- Status:
- Stable ICU 49.
-
Nested Class Summary
Nested classes/interfaces inherited from class MessagePatternUtil.MessageContentsNode
MessagePatternUtil.MessageContentsNode.TypeModifier and TypeClassDescriptionstatic enumThe type of a piece of MessageNode contents. -
Method Summary
Methods inherited from class MessagePatternUtil.MessageContentsNode
getTypeModifier and TypeMethodDescriptiongetType()Returns the type of this piece of MessageNode contents.
-
Method Details
-
getArgType
- Returns:
- the argument type
- Status:
- Stable ICU 49.
-
getName
- Returns:
- the argument name string (the decimal-digit string if the argument has a number)
- Status:
- Stable ICU 49.
-
getNumber
public int getNumber()- Returns:
- the argument number, or -1 if none (for a named argument)
- Status:
- Stable ICU 49.
-
getTypeName
- Returns:
- the argument type string, or null if none was specified
- Status:
- Stable ICU 49.
-
getSimpleStyle
- Returns:
- the simple-argument style string, or null if no style is specified and for other argument types
- Status:
- Stable ICU 49.
-
getComplexStyle
- Returns:
- the complex-argument-style object, or null if the argument type is NONE_ARG or SIMPLE_ARG
- Status:
- Stable ICU 49.
-
toString
- Overrides:
toStringin classMessagePatternUtil.MessageContentsNode- Status:
- Stable ICU 49.
-