Examples of AliasMethod


Examples of org.cx4a.rsense.typing.runtime.AliasMethod

                                String oldName = Vertex.getStringOrSymbol(args[1]);
                                if (newName != null && oldName != null) {
                                    RubyModule module = (RubyModule) receiver;
                                    DynamicMethod method = module.getMethod(oldName);
                                    if (method instanceof Method)
                                        module.addMethod(newName, new AliasMethod(newName, (Method) method));
                                }
                            }
                        }
                    }
                    result.setCallNextMethod(callNextMethod);
View Full Code Here

Examples of org.cx4a.rsense.typing.runtime.AliasMethod

    public Object visitAliasNode(AliasNode node) {
        RubyModule module = context.getFrameModule();
        DynamicMethod method = module.getMethod(node.getOldName());
        if (method instanceof Method)
            module.addMethod(node.getNewName(), new AliasMethod(node.getNewName(), (Method) method));
        return Vertex.EMPTY;
    }
View Full Code Here

Examples of org.jruby.internal.runtime.methods.AliasMethod

                        (isModule() ? "module" : "class") + " `" + getName() + "'", oldName);
            }
        }

        invalidateCacheDescendants();
        putMethod(name, new AliasMethod(this, method, oldName));
    }
View Full Code Here

Examples of org.jruby.internal.runtime.methods.AliasMethod

        }

        for (String name: aliases) {
            if (oldName.equals(name)) continue;

            putMethod(name, new AliasMethod(this, method, oldName));
        }
        invalidateCacheDescendants();
    }
View Full Code Here

Examples of org.jruby.internal.runtime.methods.AliasMethod

            }
        }

        invalidateCoreClasses();
        invalidateCacheDescendants();
        putMethod(name, new AliasMethod(this, method, oldName));
    }
View Full Code Here

Examples of org.jruby.internal.runtime.methods.AliasMethod

        }

        for (String name: aliases) {
            if (oldName.equals(name)) continue;

            putMethod(name, new AliasMethod(this, method, oldName));
        }
        invalidateCoreClasses();
        invalidateCacheDescendants();
    }
View Full Code Here

Examples of org.jruby.internal.runtime.methods.AliasMethod

        testFrozen("module");
        if (oldName.equals(name)) return;

        DynamicMethod method = searchForAliasMethod(getRuntime(), oldName);

        putMethod(name, new AliasMethod(this, method, oldName));

        invalidateCoreClasses();
        invalidateCacheDescendants();
    }
View Full Code Here

Examples of org.jruby.internal.runtime.methods.AliasMethod

        DynamicMethod method = searchForAliasMethod(getRuntime(), oldName);

        for (String name: aliases) {
            if (oldName.equals(name)) continue;

            putMethod(name, new AliasMethod(this, method, oldName));
        }
       
        invalidateCoreClasses();
        invalidateCacheDescendants();
    }
View Full Code Here

Examples of org.jruby.internal.runtime.methods.AliasMethod

        testFrozen("module");
        if (oldName.equals(name)) return;

        DynamicMethod method = searchForAliasMethod(getRuntime(), oldName);

        putMethod(name, new AliasMethod(this, method, oldName));

        methodLocation.invalidateCoreClasses();
        methodLocation.invalidateCacheDescendants();
    }
View Full Code Here

Examples of org.jruby.internal.runtime.methods.AliasMethod

        DynamicMethod method = searchForAliasMethod(getRuntime(), oldName);

        for (String name: aliases) {
            if (oldName.equals(name)) continue;

            putMethod(name, new AliasMethod(this, method, oldName));
        }
       
        methodLocation.invalidateCoreClasses();
        methodLocation.invalidateCacheDescendants();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.