public void addFunction(String prefix, String localName, Method m) { if (this.functions == null) { this.functions = new HashMap<String, Function>(); } Function f = new Function(prefix, localName, m); synchronized (this) { this.functions.put(prefix+":"+localName, f); } }
@Override public void writeExternal(ObjectOutput out) throws IOException { out.writeUTF((this.prefix != null) ? this.prefix : ""); out.writeUTF(this.localName); // make sure m isn't null getMethod(); out.writeUTF((this.owner != null) ? this.owner : this.m.getDeclaringClass().getName()); out.writeUTF((this.name != null) ? this.name : this.m.getName()); out.writeObject((this.types != null) ? this.types : ReflectionUtil.toTypeNameArray(this.m.getParameterTypes())); }
@Override public void writeExternal(ObjectOutput out) throws IOException { out.writeUTF((this.prefix != null) ? this.prefix : ""); out.writeUTF(this.localName); // make sure m isn't null getMethod(); out.writeUTF((this.owner != null) ? this.owner : this.m.getDeclaringClass().getName()); out.writeUTF((this.name != null) ? this.name : this.m.getName()); out.writeObject((this.types != null) ? this.types : ReflectionUtil.toTypeNameArray(this.m.getParameterTypes())); }
@Override public void writeExternal(ObjectOutput out) throws IOException { out.writeUTF((this.prefix != null) ? this.prefix : ""); out.writeUTF(this.localName); // make sure m isn't null getMethod(); out.writeUTF((this.owner != null) ? this.owner : this.m.getDeclaringClass().getName()); out.writeUTF((this.name != null) ? this.name : this.m.getName()); out.writeObject((this.types != null) ? this.types : ReflectionUtil.toTypeNameArray(this.m.getParameterTypes())); }
public void writeExternal(ObjectOutput out) throws IOException { out.writeUTF((this.prefix != null) ? this.prefix : ""); out.writeUTF(this.localName); // make sure m isn't null getMethod(); out.writeUTF((this.owner != null) ? this.owner : this.m.getDeclaringClass().getName()); out.writeUTF((this.name != null) ? this.name : this.m.getName()); out.writeObject((this.types != null) ? this.types : ReflectionUtil.toTypeNameArray(this.m.getParameterTypes())); }
@Override public void writeExternal(ObjectOutput out) throws IOException { out.writeUTF((this.prefix != null) ? this.prefix : ""); out.writeUTF(this.localName); // make sure m isn't null getMethod(); out.writeUTF((this.owner != null) ? this.owner : this.m.getDeclaringClass().getName()); out.writeUTF((this.name != null) ? this.name : this.m.getName()); out.writeObject((this.types != null) ? this.types : ReflectionUtil.toTypeNameArray(this.m.getParameterTypes())); }
@Override public void writeExternal(ObjectOutput out) throws IOException { out.writeUTF((this.prefix != null) ? this.prefix : ""); out.writeUTF(this.localName); // make sure m isn't null getMethod(); out.writeUTF((this.owner != null) ? this.owner : this.m.getDeclaringClass().getName()); out.writeUTF((this.name != null) ? this.name : this.m.getName()); out.writeObject((this.types != null) ? this.types : ReflectionUtil.toTypeNameArray(this.m.getParameterTypes())); }
@Override public Method resolveFunction(String prefix, String localName) { if (this.functions != null) { Function f = this.functions.get(prefix + ":" + localName); return f.getMethod(); } return null; }
@Override public boolean equals(Object obj) { if (obj instanceof Function) { return this.hashCode() == obj.hashCode(); } return false; }
@Override public void mapFunction(String prefix, String localName, Method m) { String key = prefix + ":" + localName; if (m == null) { functions.remove(key); } else { Function f = new Function(prefix, localName, m); functions.put(key, f); } }
@Override public Method resolveFunction(String prefix, String localName) { if (this.functions != null) { Function f = this.functions.get(prefix + ":" + localName); return f.getMethod(); } return null; }
@Override 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<String, Function>(); } Function f = new Function(prefix, localName, m); synchronized (this) { this.functions.put(prefix+":"+localName, f); } }
public void addFunction(String prefix, String localName, Method m) { if (this.functions == null) { this.functions = new HashMap<String, Function>(); } Function f = new Function(prefix, localName, m); synchronized (this) { this.functions.put(prefix+":"+localName, f); } }
@Override public void mapFunction(String prefix, String localName, Method m) { String key = prefix + ":" + localName; if (m == null) { functions.remove(key); } else { Function f = new Function(prefix, localName, m); functions.put(key, f); } }
public Method resolveFunction(String prefix, String localName) { if (this.functions != null) { Function f = (Function) this.functions.get(prefix + ":" + localName); return f.getMethod(); } return null; }
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); } }
@Override public Method resolveFunction(String prefix, String localName) { Function f = this.functions.get(prefix + ":" + localName); if (f == null) { return null; } return f.getMethod(); }
@Override public boolean equals(Object obj) { if (obj instanceof Function) { return this.hashCode() == obj.hashCode(); } return false; }