How is it possible to access the name of the method (and its arguments) when inserting a YASnippet in a Java (or JavaScript) code block?
The goal is to be able to expand
logm
into (for example):
log("notify() called with: " + "context = [" + context + "]");
if inserted in the body of function:
public void notify(final EventHandlerContext context) {
....
}
(Such a live template exists in IntelliJ IDEA.)