public DynamicMethod dup() { return new AliasMethod(implementationClass, oldMethod, name); }
public DynamicMethod dup() { return new AliasMethod(implementationClass, oldMethod, name); }
public DynamicMethod dup() { return new AliasMethod(implementationClass, oldMethod, oldName); }
public DynamicMethod dup() { return new AliasMethod(implementationClass, oldMethod, oldName); }
/** * @note Internal API - only public as its used by generated code! * @param id * @param method * @param oldName */ // NOTE: used by AnnotationBinder public void putAlias(String id, DynamicMethod method, String oldName) { if (id.equals(oldName)) return; putMethod(getRuntime(), id, new AliasMethod(this, method, oldName)); }
/** * @note Internal API - only public as its used by generated code! * @param id * @param method * @param oldName */ // NOTE: used by AnnotationBinder public void putAlias(String id, DynamicMethod method, String oldName) { if (id.equals(oldName)) return; putMethod(getRuntime(), id, new AliasMethod(this, method, oldName)); }
public synchronized void defineAliases(List<String> aliases, String oldName) { testFrozen("module"); DynamicMethod method = searchForAliasMethod(getRuntime(), oldName); for (String name: aliases) { if (oldName.equals(name)) continue; putMethod(name, new AliasMethod(this, method, oldName)); } invalidateCoreClasses(); invalidateCacheDescendants(); }
/** rb_alias * */ public synchronized void defineAlias(String name, String oldName) { testFrozen("module"); if (oldName.equals(name)) return; DynamicMethod method = searchForAliasMethod(getRuntime(), oldName); putMethod(name, new AliasMethod(this, method, oldName)); invalidateCoreClasses(); invalidateCacheDescendants(); }
/** rb_alias * */ public synchronized void defineAlias(String name, String oldName) { testFrozen("module"); if (oldName.equals(name)) return; DynamicMethod method = searchForAliasMethod(getRuntime(), oldName); putMethod(name, new AliasMethod(this, method, oldName)); invalidateCoreClasses(); invalidateCacheDescendants(); }
public synchronized void defineAliases(List<String> aliases, String oldName) { testFrozen("module"); DynamicMethod method = searchForAliasMethod(getRuntime(), oldName); for (String name: aliases) { if (oldName.equals(name)) continue; putMethod(name, new AliasMethod(this, method, oldName)); } invalidateCoreClasses(); invalidateCacheDescendants(); }