Top Description Methods
org.jruby.runtime.opto

public Interface Invalidator

Known Direct Implementers
org.jruby.runtime.opto.ObjectIdentityInvalidator, org.jruby.runtime.opto.SwitchPointInvalidator, org.jruby.runtime.opto.FailoverSwitchPointInvalidator, org.jruby.runtime.opto.GenerationAndSwitchPointInvalidator, org.jruby.runtime.opto.GenerationInvalidator
Imports
org.jruby.RubyModule, java.util.List

Abstract invalidator of "something". An example would be a global invalidator for cached constants. How invalidation is performed is considered to be opaque. To invalidate, call #invalidate. To get data associated with the invalidation, use getData; the meaning of this data is Invalidator-implementation-specific. In the case of JSR-292's SwitchPoint, this would return a SwitchPoint to be used for guarding e.g. a cached constant value.

Method Summary

Modifier and TypeMethod and Description
public default void
public Object
public void
public void

Method Detail

addIfUsedback to summary
public default void addIfUsed(RubyModule.InvalidatorList<T> invalidators)
getDataback to summary
public Object getData()
invalidateback to summary
public void invalidate()
invalidateAllback to summary
public void invalidateAll(List<Invalidator> invalidators)