841842843844845846847848849850851
np("}").pn(); } private static String toNonGeneric(String type) { Regex regex = new Regex("(?@<>)", ""); return regex.replaceAll(type); } private static boolean isGeneric(String type) { Regex regex = new Regex(".*(?@<>)"); return regex.search(type);
101102103104105106107108109110111
} public static String processPositionPlaceHolder(String s) { String rs = s.startsWith("@(") ? "@\\(([0-9]+)\\)" : "@([0-9]+)"; Regex r = new Regex(rs, "__v_${1}"); return r.replaceAll(s); } public static String reversePositionPlaceHolder(String s) { Regex r = new Regex("__v_([0-9]+)", "@${1}"); return r.replaceAll(s);
106107108109110111112113114115116
return r.replaceAll(s); } public static String reversePositionPlaceHolder(String s) { Regex r = new Regex("__v_([0-9]+)", "@${1}"); return r.replaceAll(s); } @Override public IParser create(IContext ctx) {