
cn.featherfly.conversion.parse.Parser Maven / Gradle / Ivy
package cn.featherfly.conversion.parse;
import cn.featherfly.common.lang.GenericType;
/**
*
* Parser
*
*
* @author 钟冀
*/
public interface Parser {
/**
*
* 获取解析器的协议
*
* @return 协议
*/
String getProtocol();
/**
*
* 解析传入的字符串
*
* @param 返回类型
* @param 类型描述
* @param content 需要解析的内容
* @param to 解析的目标类型描述信息
* @return 解析后的对象
*/
, T> T parse(String content, TO to);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy