Skip to content

Instantly share code, notes, and snippets.

@g-pechorin
Created January 10, 2014 15:17
Show Gist options
  • Save g-pechorin/8356188 to your computer and use it in GitHub Desktop.
Save g-pechorin/8356188 to your computer and use it in GitHub Desktop.
A pair of regular expressions / replacement strings that (I think) wrap one java class with another
find -> public (\w+) (\w+)\((.*?)\) \{\n\t\t\treturn .*?;
with -> public \1 \2\(\3\) \{\n\t\t\treturn inner.\2\(\3\);
find -> return inner.(\w+)\((\w+, )*.*? (\w+[,\)])
with -> return inner.\1\(\2\3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment