All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jruby.runtime.callsite.NormalCachingCallSite Maven / Gradle / Ivy

There is a newer version: 9.4.9.0
Show newest version
package org.jruby.runtime.callsite;

import org.jruby.internal.runtime.methods.DynamicMethod;
import org.jruby.runtime.CallType;
import org.jruby.runtime.builtin.IRubyObject;

public class NormalCachingCallSite extends CachingCallSite {
    public NormalCachingCallSite(String methodName) {
        super(methodName, CallType.NORMAL);
        totalCallSites++;
    }

    protected boolean methodMissing(DynamicMethod method, IRubyObject caller) {
        return method.isUndefined() || (!methodName.equals("method_missing") && !method.isCallableFrom(caller, callType));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy