Package com.ibm.icu.text
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
public static class MessagePatternUtil.ArgNode extends MessagePatternUtil.MessageContentsNode
A piece of MessageNode contents representing a message argument and its details.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.ibm.icu.text.MessagePatternUtil.MessageContentsNode
MessagePatternUtil.MessageContentsNode.Type
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessagePattern.ArgTypegetArgType()MessagePatternUtil.ComplexArgStyleNodegetComplexStyle()StringgetName()intgetNumber()StringgetSimpleStyle()StringgetTypeName()StringtoString()Returns a string containing a concise, human-readable description of this object.-
Methods inherited from class com.ibm.icu.text.MessagePatternUtil.MessageContentsNode
getType
-
-
-
-
Method Detail
-
getArgType
public MessagePattern.ArgType getArgType()
- Returns:
- the argument type
-
getName
public String getName()
- Returns:
- the argument name string (the decimal-digit string if the argument has a number)
-
getNumber
public int getNumber()
- Returns:
- the argument number, or -1 if none (for a named argument)
-
getTypeName
public String getTypeName()
- Returns:
- the argument type string, or null if none was specified
-
getSimpleStyle
public String getSimpleStyle()
- Returns:
- the simple-argument style string, or null if no style is specified and for other argument types
-
getComplexStyle
public MessagePatternUtil.ComplexArgStyleNode getComplexStyle()
- Returns:
- the complex-argument-style object, or null if the argument type is NONE_ARG or SIMPLE_ARG
-
toString
public String toString()
Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toStringmethod if you intend implementing your owntoStringmethod.- Overrides:
toStringin classMessagePatternUtil.MessageContentsNode- Returns:
- a printable representation of this object.
-
-