It is very natural to use the class literal as a factory object, which can then be used by reflection.
非常自然的使用类字面量作为工厂对象,这些能够被反射使用。
After the refactoring, all USES of that number or string literal in the class refer to that field, instead of the number or string literal itself.
在重构后,所有对这个类中的数字或字符串文字的使用都将指向该字段,而不是指向数字或字符串文字本身。
In the scenario, special processing for the classname element might generate a literal "class" label in the output to save some typing and produce consistent labels.
在该方案中,classname元素的特殊处理可能会在输出中生成一个文字“class”标签以节省一点输入并生成一致的标签。
应用推荐