| Modifier and Type | Field and Description |
|---|---|
| public final Object | |
| public final int | |
| public final Invalidator | |
| public final IRubyObject |
| Access | Constructor and Description |
|---|---|
| public | ConstantCache(IRubyObject value, Object generation, Invalidator invalidator, int targetHash)
Construct a new ConstantCache with the given elements. |
| public | ConstantCache(IRubyObject value, Object generation, Invalidator invalidator)
Construct a new ConstantCache with the given elements. |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | |
| public static boolean | isCachedFrom(RubyModule target, ConstantCache cache)
Check if the given ConstantCache is non-null and valid, given the target module. |
| generation | back to summary |
|---|---|
| public final Object generation | |
| id | back to summary |
|---|---|
| public final int id | |
| invalidator | back to summary |
|---|---|
| public final Invalidator invalidator | |
| value | back to summary |
|---|---|
| public final IRubyObject value | |
| ConstantCache | back to summary |
|---|---|
| public ConstantCache(IRubyObject value, Object generation, Invalidator invalidator, int targetHash) Construct a new ConstantCache with the given elements. | |
| ConstantCache | back to summary |
|---|---|
| public ConstantCache(IRubyObject value, Object generation, Invalidator invalidator) Construct a new ConstantCache with the given elements. | |
| isCached | back to summary |
|---|---|
| public static boolean isCached(ConstantCache cache) Check if the given ConstantCache is non-null and valid. This method is static to ensure it is inlinable as trivially as possible. | |
| isCachedFrom | back to summary |
|---|---|
| public static boolean isCachedFrom(RubyModule target, ConstantCache cache) Check if the given ConstantCache is non-null and valid, given the target module. This method is static to ensure it is inlinable as trivially as possible. | |