private RubySymbol getSymbolicName(ThreadContext context) { RubySymbol symbolicName = this.symbolicName; if (symbolicName != null) return symbolicName; return this.symbolicName = context.runtime.fastNewSymbol(name); }
public RubySymbol getSymbol(Ruby runtime) { RubySymbol sym; if ((sym = symbol) != null) return sym; return symbol = runtime.fastNewSymbol(name); }
public RubySymbol getSymbol(Ruby runtime) { RubySymbol sym; if ((sym = symbol) != null) return sym; return symbol = runtime.fastNewSymbol(name); }
private RubySymbol getSymbolicName(ThreadContext context) { RubySymbol symbolicName = this.symbolicName; if (symbolicName != null) return symbolicName; return this.symbolicName = context.runtime.fastNewSymbol(name); }
@Deprecated public static RubySymbol addInstanceMethod(RubyModule containingClass, String name, DynamicMethod method, Visibility visibility, ThreadContext context, Ruby runtime) { return addInstanceMethod(containingClass, runtime.fastNewSymbol(name), method, visibility, context, runtime); }
@Deprecated public static RubySymbol addInstanceMethod(RubyModule containingClass, String name, DynamicMethod method, Visibility visibility, ThreadContext context, Ruby runtime) { return addInstanceMethod(containingClass, runtime.fastNewSymbol(name), method, visibility, context, runtime); }
/** * Transform object into an Enumerator with the given size */ public static IRubyObject enumeratorizeWithSize(ThreadContext context, final IRubyObject object, String method, IRubyObject[] args, SizeFn sizeFn) { Ruby runtime = context.runtime; return new RubyEnumerator(runtime, runtime.getEnumerator(), object, runtime.fastNewSymbol(method), args, sizeFn); }
@Override public Object interpret(ThreadContext context, DynamicScope currDynScope, IRubyObject self, Object[] temp, Block block) { RubyModule module = (RubyModule) receiver.retrieve(context, self, currDynScope, temp); return module.callMethod(context, "const_missing", context.runtime.fastNewSymbol(missingConst)); }
@Override public Object interpret(ThreadContext context, DynamicScope currDynScope, IRubyObject self, Object[] temp, Block block) { RubyModule module = (RubyModule) receiver.retrieve(context, self, currDynScope, temp); return module.callMethod(context, "const_missing", context.runtime.fastNewSymbol(missingConst)); }
public static IRubyObject enumeratorizeWithSize(ThreadContext context, IRubyObject object, String method,IRubyObject arg, IRubyObject size) { Ruby runtime = context.runtime; return new RubyEnumerator(runtime, runtime.getEnumerator(), object, runtime.fastNewSymbol(method), new IRubyObject[] { arg }, size); }
/** * Transform object into an Enumerator with the given size */ public static IRubyObject enumeratorizeWithSize(ThreadContext context, final IRubyObject object, String method, IRubyObject[] args, SizeFn sizeFn) { Ruby runtime = context.runtime; return new RubyEnumerator(runtime, runtime.getEnumerator(), object, runtime.fastNewSymbol(method), args, sizeFn); }
@JRubyMethod(name = "initialize", visibility = PRIVATE, compat = RUBY1_9) public IRubyObject initialize19(ThreadContext context, IRubyObject object, Block block) { return initialize(object, context.runtime.fastNewSymbol("each"), NULL_ARRAY); }
public final IRubyObject getConstant(ThreadContext context, StaticScope scope, String name, int index) { IRubyObject value = getValue(context, scope, name, index); // We can callsite cache const_missing if we want return value != null ? value : scope.getModule().callMethod(context, "const_missing", context.runtime.fastNewSymbol(name)); }
public static void addInstanceMethod(RubyModule containingClass, String name, DynamicMethod method, Visibility visibility, ThreadContext context, Ruby runtime) { containingClass.addMethod(name, method); RubySymbol sym = runtime.fastNewSymbol(name); if (visibility == Visibility.MODULE_FUNCTION) { addModuleMethod(containingClass, name, method, context, sym); } callNormalMethodHook(containingClass, context, sym); }
public final IRubyObject getConstant(ThreadContext context, StaticScope scope, String name, int index) { IRubyObject value = getValue(context, scope, name, index); // We can callsite cache const_missing if we want return value != null ? value : scope.getModule().callMethod(context, "const_missing", context.runtime.fastNewSymbol(name)); }
public final IRubyObject getConstant(ThreadContext context, StaticScope scope, String name, int index) { IRubyObject value = getValue(context, scope, name, index); // We can callsite cache const_missing if we want return value != null ? value : scope.getModule().callMethod(context, "const_missing", context.runtime.fastNewSymbol(name)); }
public IRubyObject getConstantFromConstMissing(String name) { return callMethod(getRuntime().getCurrentContext(), "const_missing", getRuntime().fastNewSymbol(name)); }
public IRubyObject getConstantFromConstMissing(String name) { return callMethod(getRuntime().getCurrentContext(), "const_missing", getRuntime().fastNewSymbol(name)); }
public IRubyObject getConstantFromConstMissing(String name) { return callMethod(getRuntime().getCurrentContext(), "const_missing", getRuntime().fastNewSymbol(name)); }
@Override public IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock) { IRubyObject value = getValue(context); // We can callsite cache const_missing if we want return value != null ? value : context.getCurrentScope().getStaticScope().getModule().callMethod(context, "const_missing", runtime.fastNewSymbol(name)); }