public void addFunction(String prefix, String localName, Method m) { if (this.functions == null) { this.functions = new HashMap(); } Function f = new Function(prefix, localName, m); synchronized (this) { this.functions.put(prefix+":"+localName, f); this.functions.put(prefix+":"+localName+":"+m.getParameterTypes().length, f); } }
public void addFunction(String prefix, String localName, Method m) { if (this.functions == null) { this.functions = new HashMap(); } Function f = new Function(prefix, localName, m); synchronized (this) { this.functions.put(prefix+":"+localName, f); this.functions.put(prefix+":"+localName+":"+m.getParameterTypes().length, f); } }
public void addFunction(String prefix, String localName, Method m) { if (this.functions == null) { this.functions = new HashMap(); } Function f = new Function(prefix, localName, m); synchronized (this) { this.functions.put(prefix+":"+localName, f); this.functions.put(prefix+":"+localName+":"+m.getParameterTypes().length, f); } }