public class Word extends Object implements IWord
| Modifier and Type | Field and Description |
|---|---|
String |
label
单词的标签,比如“n”
|
String |
value
单词的真实值,比如“程序”
|
| Modifier and Type | Method and Description |
|---|---|
static Word |
create(String param)
通过参数构造一个单词
|
String |
getLabel()
获取标签
|
String |
getValue()
获取单词
|
int |
length()
单词长度
|
void |
setLabel(String label)
设置标签
|
void |
setValue(String value)
设置单词
|
String |
toString() |
public static Word create(String param)
param - 比如 人民网/nzCopyright © 2014–2021 码农场. All rights reserved.