/** * Just as above, yet with symbolic group name. * * @throws NullPointerException if there is no group with such name */ public Matcher matcher(MatchResult res, String groupName) { Integer id = res.pattern().groupId(groupName); if (id == null) throw new IllegalArgumentException("group not found:" + groupName); int group = id; return matcher(res, group); }
/** * Just as above, yet with symbolic group name. * * @throws NullPointerException if there is no group with such name */ public Matcher matcher(MatchResult res, String groupName) { Integer id = res.pattern().groupId(groupName); if (id == null) throw new IllegalArgumentException("group not found:" + groupName); int group = id; return matcher(res, group); }
void append(MatchResult match, TextBuffer dest) { if (prefix != null) dest.append(prefix); if (index == null) return; //if(id==null) return; //??? int i = match.pattern().groupId(index); if (match.isCaptured(i)) match.getGroup(i, dest, modes); }
void append(MatchResult match, TextBuffer dest, boolean pass) { if (!pass) { if (prefix != null) dest.append(prefix); if (index == null) return; int i = index; if (i >= match.pattern().groupCount()) return; if (match.isCaptured(i)) match.getGroup(i, dest, modes); } }
void append(MatchResult match, TextBuffer dest) { if (prefix != null) dest.append(prefix); if (index == null) return; int i = index; if (i >= match.pattern().groupCount()) return; if (match.isCaptured(i)) match.getGroup(i, dest, modes); }
void append(MatchResult match, TextBuffer dest) { if (prefix != null) dest.append(prefix); if (index == null) return; int i = index; if (i >= match.pattern().groupCount()) return; if (match.isCaptured(i)) match.getGroup(i, dest, modes); }
void append(MatchResult match, TextBuffer dest, boolean pass) { if (!pass) { if (prefix != null) dest.append(prefix); if (index == null) return; int i = match.pattern().groupId(index); if (match.isCaptured(i)) match.getGroup(i, dest, modes); } }
void append(MatchResult match, TextBuffer dest) { if (prefix != null) dest.append(prefix); if (index == null) return; //if(id==null) return; //??? int i = match.pattern().groupId(index); if (match.isCaptured(i)) match.getGroup(i, dest, modes); }