private static RespondToTuple recacheRespondsTo(CacheEntry respondToMethod, String newString, RubyClass klass, boolean checkVisibility, ThreadContext context) { Ruby runtime = context.runtime; CacheEntry respondToLookupResult = klass.searchWithCache(newString); IRubyObject respondsTo; if (!respondToLookupResult.method.isUndefined() && !respondToLookupResult.method.isNotImplemented()) { respondsTo = checkVisibilityAndCache(respondToLookupResult, checkVisibility, runtime); } else { respondsTo = runtime.getFalse(); } return new RespondToTuple(newString, checkVisibility, respondToMethod, respondToLookupResult, respondsTo); }
private static RespondToTuple recacheRespondsTo(CacheEntry respondToMethod, String newString, RubyClass klass, boolean checkVisibility, ThreadContext context) { Ruby runtime = context.runtime; CacheEntry respondToLookupResult = klass.searchWithCache(newString); IRubyObject respondsTo; if (!respondToLookupResult.method.isUndefined() && !respondToLookupResult.method.isNotImplemented()) { respondsTo = checkVisibilityAndCache(respondToLookupResult, checkVisibility, runtime); } else { respondsTo = runtime.getFalse(); } return new RespondToTuple(newString, checkVisibility, respondToMethod, respondToLookupResult, respondsTo); }