@Override public boolean isNotImplemented() { return delegate.isNotImplemented(); //To change body of overridden methods use File | Settings | File Templates. }
@Override public boolean isNotImplemented() { return delegate.isNotImplemented(); //To change body of overridden methods use File | Settings | File Templates. }
@Override public boolean isNotImplemented() { return delegate.isNotImplemented(); //To change body of overridden methods use File | Settings | File Templates. }
@Override public boolean isNotImplemented() { return delegate.isNotImplemented(); //To change body of overridden methods use File | Settings | File Templates. }
/** * * We have respondTo logic in RubyModule and we have a special callsite for respond_to?. * This method is just so we can share that logic. */ public static boolean respondsToMethod(DynamicMethod method, boolean checkVisibility) { if (method.isUndefined() || method.isNotImplemented()) return false; return !(checkVisibility && (method.getVisibility() == PRIVATE || method.getVisibility() == PROTECTED)); }
/** * * We have respondTo logic in RubyModule and we have a special callsite for respond_to?. * This method is just so we can share that logic. */ public static boolean respondsToMethod(DynamicMethod method, boolean checkVisibility) { if (method.isUndefined() || method.isNotImplemented()) return false; return !(checkVisibility && (method.getVisibility() == PRIVATE || method.getVisibility() == PROTECTED)); }
private RubyBoolean checkMetaClassBoundMethod(final ThreadContext context, final String name, final boolean includePrivate) { // getMetaClass().isMethodBound(name, !includePrivate, true) DynamicMethod method = getMetaClass().searchMethod(name); if ( ! method.isUndefined() && ! method.isNotImplemented() ) { if ( ! includePrivate && method.getVisibility() == PRIVATE ) { return context.fals; } return context.tru; } return null; }
private RubyBoolean checkMetaClassBoundMethod(final ThreadContext context, final String name, final boolean includePrivate) { // getMetaClass().isMethodBound(name, !includePrivate, true) DynamicMethod method = getMetaClass().searchMethod(name); if ( ! method.isUndefined() && ! method.isNotImplemented() ) { if ( ! includePrivate && method.getVisibility() == PRIVATE ) { return context.fals; } return context.tru; } return null; }
public boolean isMethodBound(String name, boolean checkVisibility, boolean checkRespondTo) { if (!checkRespondTo) return isMethodBound(name, checkVisibility); DynamicMethod method = searchMethod(name); if (!method.isUndefined() && !method.isNotImplemented()) { return !(checkVisibility && method.getVisibility() == PRIVATE); } return false; }
public boolean isMethodBound(String name, boolean checkVisibility, boolean checkRespondTo) { if (!checkRespondTo) return isMethodBound(name, checkVisibility); DynamicMethod method = searchMethod(name); if (!method.isUndefined() && !method.isNotImplemented()) { return !(checkVisibility && method.getVisibility() == PRIVATE); } return false; }
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); }
str.catString(")"); if (method.isNotImplemented()) { str.catString(" (not-implemented)");
str.catString(")"); if (method.isNotImplemented()) { str.catString(" (not-implemented)");