RegExp { static String revString(String s) { return new StringBuilder(s).reverse().toString(); } RegExp(int type); String print(String tab); @Override String toString(); String typeName(); boolean isCharClass(); int size(Macros macros); final RegExp resolveTilde(); static RegExp anyChar(); static RegExp1 checkPrimClass(RegExp r); static IntCharSet performClassOp(int op, IntCharSet l, IntCharSet r, RegExp ctxt); @SuppressWarnings("unchecked") final RegExp normalise(Macros m); final void makeCCLs(CharClasses c, boolean caseless); final RegExp rev();  }
@Test public void revString() { assertThat(RegExp.revString("blah")).isEqualTo("halb"); }