Package com.ibm.icu.text
Class MessagePatternUtil.TextNode
- java.lang.Object
-
- com.ibm.icu.text.MessagePatternUtil.Node
-
- com.ibm.icu.text.MessagePatternUtil.MessageContentsNode
-
- com.ibm.icu.text.MessagePatternUtil.TextNode
-
- Enclosing class:
- MessagePatternUtil
public static class MessagePatternUtil.TextNode extends MessagePatternUtil.MessageContentsNode
Literal text, a piece of MessageNode contents.
-
-
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 StringgetText()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
-
getText
public String getText()
- Returns:
- the literal text at this point in the message
-
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.
-
-