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 writeExternal(ObjectOutput out) throws IOException { out.writeUTF((this.prefix != null) ? this.prefix : ""); out.writeUTF(this.localName); out.writeUTF(this.getMethod().getDeclaringClass().getName()); out.writeUTF(this.getMethod().getName()); out.writeObject(ReflectionUtil.toTypeNameArray(this.getMethod().getParameterTypes())); }
public void writeExternal(ObjectOutput out) throws IOException { out.writeUTF((this.prefix != null) ? this.prefix : ""); out.writeUTF(this.localName); out.writeUTF(this.getMethod().getDeclaringClass().getName()); out.writeUTF(this.getMethod().getName()); out.writeObject(ReflectionUtil.toTypeNameArray(this.getMethod().getParameterTypes())); }
public Method resolveFunction(String prefix, String localName, int paramCount) { if (this.functions != null) { Function f = (Function) this.functions.get(prefix + ":" + localName + ":" + paramCount); return f != null ? f.getMethod() : null; } return null; }
public Method resolveFunction(String prefix, String localName) { if (this.functions != null) { Function f = (Function) this.functions.get(prefix + ":" + localName); return f != null ? f.getMethod() : null; } return null; }
public Method resolveFunction(String prefix, String localName, int paramCount) { if (this.functions != null) { Function f = (Function) this.functions.get(prefix + ":" + localName + ":" + paramCount); return f != null ? f.getMethod() : null; } return null; }
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 Method resolveFunction(String prefix, String localName, int paramCount) { if (this.functions != null) { Function f = (Function) this.functions.get(prefix + ":" + localName + ":" + paramCount); return f != null ? f.getMethod() : null; } return null; }
public Method resolveFunction(String prefix, String localName) { if (this.functions != null) { Function f = (Function) this.functions.get(prefix + ":" + localName); return f != null ? f.getMethod() : null; } return null; }
public boolean equals(Object obj) { if (obj instanceof Function) { return this.hashCode() == obj.hashCode(); } return false; }
public boolean equals(Object obj) { if (obj instanceof Function) { return this.hashCode() == obj.hashCode(); } return false; }
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 boolean equals(Object obj) { if (obj instanceof Function) { return this.hashCode() == obj.hashCode(); } return false; }
public void writeExternal(ObjectOutput out) throws IOException { out.writeUTF((this.prefix != null) ? this.prefix : ""); out.writeUTF(this.localName); out.writeUTF(this.getMethod().getDeclaringClass().getName()); out.writeUTF(this.getMethod().getName()); out.writeObject(ReflectionUtil.toTypeNameArray(this.getMethod().getParameterTypes())); }
public Method resolveFunction(String prefix, String localName) { if (this.functions != null) { Function f = (Function) this.functions.get(prefix + ":" + localName); return f != null ? f.getMethod() : null; } return null; }