@Override public CharacterClassExpr replace(char src, char dst) { CharacterClassExpr repl = remove(src); if (repl != this) { Or or = new Or(null, new Char(dst)); repl.replaceBy(or); or.setLeft(repl); repl = or; } return repl; }
@Override public CharacterClassExpr replace(char src, char dst) { CharacterClassExpr repl = remove(src); if (repl != this) { Or or = new Or(null, new Char(dst)); repl.replaceBy(or); or.setLeft(repl); repl = or; } return repl; }