package com.qxueyou.scc.exercise.service.impl; import java.util.regex.Matcher; public abstract class Parser { public abstract ParseResult parse(Node node,String str); protected boolean matchBegin(Matcher match){ boolean result = match.find()&&match.start()==0; match.reset(); return result; } }