Top Fields Constructors Methods
org.jruby.runtime.invokedynamic

public Class VariableSite

extends MutableCallSite
Class Inheritance
Imports
org.jruby.RubyBasicObject, .RubyClass, org.jruby.ir.operands.UndefinedValue, org.jruby.runtime.builtin.IRubyObject, java.lang.invoke.CallSite, .MethodHandle, .MethodHandles, .MethodType, .MutableCallSite, org.jruby.runtime.ivars.FieldVariableAccessor, .VariableAccessor, org.jruby.util.cli.Options, org.jruby.util.log.Logger, .LoggerFactory, org.objectweb.asm.Handle, .Opcodes

Field Summary

Modifier and TypeField and Description
private VariableAccessor
private int
private final String
public static final Handle
private final int
private static final Logger
private final String
private boolean

Constructor Summary

AccessConstructor and Description
public
VariableSite(MethodType type, String name, boolean rawValue, String file, int line)

Method Summary

Modifier and TypeMethod and Description
public synchronized int
public synchronized void
private String
public String
file()

private static MethodHandle
findStatic(Class<T> target, String name, MethodType type)

private static MethodHandle
findStatic(MethodHandles.Lookup lookup, Class<T> target, String name, MethodType type)

private static MethodHandle
findVirtual(Class<T> target, String name, MethodType type)

private static MethodHandle
findVirtual(MethodHandles.Lookup lookup, Class<T> target, String name, MethodType type)

public synchronized void
public static CallSite
public IRubyObject
public IRubyObject
public void
public void
public int
line()

public String
name()

public static boolean
testRealClass(int id, IRubyObject self)

Inherited from java.lang.invoke.MutableCallSite:
dynamicInvokergetTargetsetTargetsyncAll

Field Detail

accessorback to summary
private VariableAccessor accessor
chainCountback to summary
private int chainCount
fileback to summary
private final String file
IVAR_ASM_HANDLEback to summary
public static final Handle IVAR_ASM_HANDLE
lineback to summary
private final int line
LOGback to summary
private static final Logger LOG
nameback to summary
private final String name
rawValueback to summary
private boolean rawValue

Constructor Detail

VariableSiteback to summary
public VariableSite(MethodType type, String name, boolean rawValue, String file, int line)

Method Detail

chainCountback to summary
public synchronized int chainCount()
clearChainCountback to summary
public synchronized void clearChainCount()
extractSourceInfoback to summary
private String extractSourceInfo()
fileback to summary
public String file()
findStaticback to summary
private static MethodHandle findStatic(Class<T> target, String name, MethodType type)
findStaticback to summary
private static MethodHandle findStatic(MethodHandles.Lookup lookup, Class<T> target, String name, MethodType type)
findVirtualback to summary
private static MethodHandle findVirtual(Class<T> target, String name, MethodType type)
findVirtualback to summary
private static MethodHandle findVirtual(MethodHandles.Lookup lookup, Class<T> target, String name, MethodType type)
incrementChainCountback to summary
public synchronized void incrementChainCount()
ivarback to summary
public static CallSite ivar(MethodHandles.Lookup lookup, String name, MethodType type) throws Throwable
ivarGetback to summary
public IRubyObject ivarGet(IRubyObject self) throws Throwable
ivarGetFailback to summary
public IRubyObject ivarGetFail(IRubyObject self)
ivarSetback to summary
public void ivarSet(IRubyObject self, IRubyObject value) throws Throwable
ivarSetFailback to summary
public void ivarSetFail(IRubyObject self, IRubyObject value)
lineback to summary
public int line()
nameback to summary
public String name()
testRealClassback to summary
public static boolean testRealClass(int id, IRubyObject self)