Top Fields Constructors Methods
org.jruby.ext.ffi

public final Class TypeResolver

extends Object
Class Inheritance
Imports
org.jruby.Ruby, .RubySymbol, .RubyHash, org.jruby.runtime.builtin.IRubyObject, java.util.Collections, .IdentityHashMap, .Map

Field Summary

Modifier and TypeField and Description
private final FFI
private volatile Map<RubySymbol, Type>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public final Type
findType(Ruby runtime, IRubyObject name)

public final Type
findType(Ruby runtime, IRubyObject name, IRubyObject typeMap)

private synchronized Type
private Type
lookupType(Ruby runtime, IRubyObject name, IRubyObject typeMap)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ffiback to summary
private final FFI ffi
symbolTypeCacheback to summary
private volatile Map<RubySymbol, Type> symbolTypeCache

Constructor Detail

TypeResolverback to summary
pack-priv TypeResolver(FFI ffi)

Method Detail

findTypeback to summary
public final Type findType(Ruby runtime, IRubyObject name)
findTypeback to summary
public final Type findType(Ruby runtime, IRubyObject name, IRubyObject typeMap)
lookupAndCacheTypeback to summary
private synchronized Type lookupAndCacheType(Ruby runtime, RubySymbol name, IRubyObject typeMap)
lookupTypeback to summary
private Type lookupType(Ruby runtime, IRubyObject name, IRubyObject typeMap)