public static class MessageFormat.Field
extends Format.Field
java.lang.Object | |||
java.text.AttributedCharacterIterator.Attribute | |||
java.text.Format.Field | |||
android.icu.text.MessageFormat.Field |
定义从 MessageFormat.formatToCharacterIterator
返回的 AttributedCharacterIterator
中用作属性键的 MessageFormat.formatToCharacterIterator
。
Fields |
|
---|---|
public static final MessageFormat.Field |
ARGUMENT 常量标识从传递到 |
Inherited fields |
---|
![]() java.text.AttributedCharacterIterator.Attribute
|
Protected constructors |
|
---|---|
MessageFormat.Field(String name) 用指定的名称创建一个 |
Protected methods |
|
---|---|
Object |
readResolve() 将正在反序列化的实例解析为预定义的常量。 |
继承方法(Inherited methods) |
|
---|---|
![]() java.text.AttributedCharacterIterator.Attribute
|
|
![]() java.lang.Object
|
MessageFormat.Field ARGUMENT
常量标识从传入formatToCharacterIterator
的参数生成的消息的一部分。 与该键关联的值将是Integer
指示生成文本的参数arguments
数组中的索引。
MessageFormat.Field (String name)
用指定的名称创建一个 Field
。
参数(Parameters) | |
---|---|
name |
String : The name of the attribute |
Object readResolve ()
将正在反序列化的实例解析为预定义的常量。
返回(Returns) | |
---|---|
Object |
resolved MessageFormat.Field constant |
抛出异常(Throws) | |
---|---|
InvalidObjectException |
if the constant could not be resolved. |