<init>(boolean truthy)createCacheObject(org.jruby.runtime.ThreadContext context)equals(Object other)isFalse() · also: is_falseisFalseyImmediate() · also: is_falsey_immediatehashCode()toString()isTrue() · also: is_trueisTruthyImmediate() · also: is_truthy_immediate| field | type | note |
|---|---|---|
| EMPTY_ARRAY | Operand[] |
addUsedVariables(List<org.jruby.ir.operands.Variable> l)isCached() · also: is_cachedHas this object already been cached?
cachedObject(org.jruby.runtime.ThreadContext context)Returns the cached object. If not then it asks class to create an object to cache.
canCopyPropagate()hasKnownValue() · also: has_known_valueretrieve(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject self, org.jruby.parser.StaticScope currScope, org.jruby.runtime.DynamicScope currDynScope, Object[] temp)retrieve the live value represented by this immutable literal. An interesting property of knowing something cannot change at compile time is that all information necessary to construct it is also known at compile time. We don't pre-create these since we don't want to assume the cost of constructing literals which may never be used.