Top Description Fields Constructors Methods
org.jruby.runtime.opto

public Class ConstantCache

extends Object
Class Inheritance
Imports
org.jruby.RubyModule, org.jruby.runtime.builtin.IRubyObject

A tuple representing the data needed to verify a cached constant:

Field Summary

Modifier and TypeField and Description
public final Object
public final int
public final Invalidator
public final IRubyObject

Constructor Summary

AccessConstructor 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.

Method Summary

Modifier and TypeMethod and Description
public static boolean
isCached(ConstantCache cache)

Check if the given ConstantCache is non-null and valid.

public static boolean
isCachedFrom(RubyModule target, ConstantCache cache)

Check if the given ConstantCache is non-null and valid, given the target module.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

generationback to summary
public final Object generation
idback to summary
public final int id
invalidatorback to summary
public final Invalidator invalidator
valueback to summary
public final IRubyObject value

Constructor Detail

ConstantCacheback to summary
public ConstantCache(IRubyObject value, Object generation, Invalidator invalidator, int targetHash)

Construct a new ConstantCache with the given elements.

ConstantCacheback to summary
public ConstantCache(IRubyObject value, Object generation, Invalidator invalidator)

Construct a new ConstantCache with the given elements.

Method Detail

isCachedback 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.

isCachedFromback 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.