public class ConstantCache extends Object
Modifier and Type | Field and Description |
---|---|
Object |
generation |
int |
id |
Invalidator |
invalidator |
IRubyObject |
value |
Constructor and Description |
---|
ConstantCache(IRubyObject value,
Object generation,
Invalidator invalidator)
Construct a new ConstantCache with the given elements.
|
ConstantCache(IRubyObject value,
Object generation,
Invalidator invalidator,
int targetHash)
Construct a new ConstantCache with the given elements.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
isCached(ConstantCache cache)
Check if the given ConstantCache is non-null and valid.
|
static boolean |
isCachedFrom(RubyModule target,
ConstantCache cache)
Check if the given ConstantCache is non-null and valid, given the target module.
|
public final IRubyObject value
public final Object generation
public final Invalidator invalidator
public final int id
public ConstantCache(IRubyObject value, Object generation, Invalidator invalidator, int targetHash)
value
- generation
- invalidator
- targetHash
- public ConstantCache(IRubyObject value, Object generation, Invalidator invalidator)
value
- generation
- invalidator
- public static boolean isCachedFrom(RubyModule target, ConstantCache cache)
public static boolean isCached(ConstantCache cache)
Copyright © 2001-2015 JRuby. All Rights Reserved.