@Override public Object invokeCustom(Object proxy, Method method, Object[] args) throws Throwable { Map m = (Map) getDelegate(); Closure cl = (Closure) m.get(method.getName()); if(cl == null && "toString".equals(method.getName())) { return m.toString(); } if (cl == null) { throw new UnsupportedOperationException(); } return cl.call(args); }
@Override public String toString() { return DefaultGroovyMethods.toString(getDelegate()); }
public Object invokeCustom(Object proxy, Method method, Object[] args) throws Throwable { Map m = (Map) getDelegate(); Closure cl = (Closure) m.get(method.getName()); if(cl == null) { throw new UnsupportedOperationException(); } return cl.call(args); }
public Object invokeCustom(Object proxy, Method method, Object[] args) throws Throwable { Map m = (Map) getDelegate(); Closure cl = (Closure) m.get(method.getName()); if(cl == null) { throw new UnsupportedOperationException(); } return cl.call(args); }
public Object invokeCustom(Object proxy, Method method, Object[] args) throws Throwable { Map m = (Map) getDelegate(); Closure cl = (Closure) m.get(method.getName()); if(cl == null) { throw new UnsupportedOperationException(); } return cl.call(args); }
public Object invokeCustom(Object proxy, Method method, Object[] args) throws Throwable { Map m = (Map) getDelegate(); Closure cl = (Closure) m.get(method.getName()); if(cl == null && "toString".equals(method.getName())) { return m.toString(); } if (cl == null) { throw new UnsupportedOperationException(); } return cl.call(args); }
public String toString() { return DefaultGroovyMethods.toString((Map) getDelegate()); } }
public String toString() { return DefaultGroovyMethods.toString((Map) getDelegate()); } }
public String toString() { return DefaultGroovyMethods.toString(getDelegate()); }
public String toString() { return DefaultGroovyMethods.toString((Map) getDelegate()); }