在 Java(或 JavaScript)代码块中插入 YASnippet 时,如何访问方法的名称(及其参数)?
目标是能够扩展
logm
进入(例如):
log("notify() called with: " + "context = [" + context + "]");
如果插入函数体:
public void notify(final EventHandlerContext context) {
....
}
(这样的实时模板存在于 IntelliJ IDEA 中。)