public static final class DataConverters.IntOrEnumConverter extends NativeDataConverter
| Modifier and Type | Field and Description |
|---|---|
private IRubyObject |
enums |
private NativeType |
nativeType |
private java.util.IdentityHashMap<RubySymbol,RubyInteger> |
symbolToValue |
| Constructor and Description |
|---|
IntOrEnumConverter(NativeType nativeType,
IRubyObject enums) |
| Modifier and Type | Method and Description |
|---|---|
IRubyObject |
fromNative(ThreadContext context,
IRubyObject obj) |
private IRubyObject |
lookupAndCacheValue(ThreadContext context,
IRubyObject obj) |
(package private) IRubyObject |
lookupOrConvert(ThreadContext context,
IRubyObject obj) |
NativeType |
nativeType() |
IRubyObject |
toNative(ThreadContext context,
IRubyObject obj) |
isPostInvokeRequired, isReferenceRequiredprivate final NativeType nativeType
private final IRubyObject enums
private volatile java.util.IdentityHashMap<RubySymbol,RubyInteger> symbolToValue
public IntOrEnumConverter(NativeType nativeType, IRubyObject enums)
public NativeType nativeType()
nativeType in class NativeDataConverterpublic IRubyObject fromNative(ThreadContext context, IRubyObject obj)
fromNative in class NativeDataConverterpublic IRubyObject toNative(ThreadContext context, IRubyObject obj)
toNative in class NativeDataConverterIRubyObject lookupOrConvert(ThreadContext context, IRubyObject obj)
private IRubyObject lookupAndCacheValue(ThreadContext context, IRubyObject obj)