简体   繁体   English

用于预煮的类型参数V是什么

[英]What is the type parameter V in parboiled used for

Some classes in the parboiled framework have a generic type parameter. 煮熟的框架中的某些类具有通用类型参数。 Eg the class BaseParser . 例如,类BaseParser In it's documentation it says: 在文档中说:

Type Parameters:
    V - the type of the parser values

which I really not find a sufficient documentation. 我确实找不到足够的文档。 The documentation in the other classes is similiar or missing. 其他类中的文档相似或缺失。 Even in the wiki I didn't find information on that. 即使在Wiki中,我也没有找到相关信息。 They are just using Object . 他们只是在使用Object

Can anyone explain to me what this parameter is used for and what are valid types to hand over? 谁能向我解释此参数的用途以及要移交的有效类型是什么?

The Type of the parsed values, like Integer for "999". 解析值的类型,例如“ 999”的整数。 See the calc example: CalculatorParser0.java 请参阅计算示例: CalculatorParser0.java

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM