| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| protected final int | alignment
Minimum alignment of this type in bytes |
| private static final Locale | |
| protected final NativeType | |
| protected final int | size
Size of this type in bytes |
| Access | Constructor and Description |
|---|---|
| protected | Type(Ruby runtime, RubyClass klass, NativeType type, int size, int alignment)
Initializes a new |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public IRubyObject | Returns: The native alignment of this Type.The Ruby thread context. context)Gets the native alignment of this |
| public static RubyClass | |
| private static final void | defineBuiltinType(ThreadContext context, RubyClass builtinClass, NativeType nativeType, String... names)
|
| public final int | Returns: The native alignment of this Type.Gets the native alignment of this |
| pack-priv static final int | |
| public final int | |
| pack-priv static final int | |
| public final NativeType | Returns: The native type of this Type.Gets the native type of this |
| public static final RubyClass | |
| private static final boolean | |
| public IRubyObject | Returns: The native size of this Type.The Ruby thread context. context)Gets the native size of this |
| alignment | back to summary |
|---|---|
| protected final int alignment Minimum alignment of this type in bytes | |
| LOCALE | back to summary |
|---|---|
| private static final Locale LOCALE | |
| nativeType | back to summary |
|---|---|
| protected final NativeType nativeType | |
| size | back to summary |
|---|---|
| protected final int size Size of this type in bytes | |
| Type | back to summary |
|---|---|
| protected Type(Ruby runtime, RubyClass klass, NativeType type, int size, int alignment) Initializes a new | |
| Type | back to summary |
|---|---|
| protected Type(Ruby runtime, RubyClass klass, NativeType type) Initializes a new | |
| alignment | back to summary |
|---|---|
| public IRubyObject alignment(ThreadContext context) Gets the native alignment of this
| |
| createTypeClass | back to summary |
|---|---|
| public static RubyClass createTypeClass(ThreadContext context, RubyModule FFI, RubyClass Object) | |
| defineBuiltinType | back to summary |
|---|---|
| private static final void defineBuiltinType(ThreadContext context, RubyClass builtinClass, NativeType nativeType, String... names) | |
| getNativeAlignment | back to summary |
|---|---|
| public final int getNativeAlignment() Gets the native alignment of this
| |
| getNativeAlignment | back to summary |
|---|---|
| pack-priv static final int getNativeAlignment(NativeType type) | |
| getNativeSize | back to summary |
|---|---|
| public final int getNativeSize() Gets the native size of this
| |
| getNativeSize | back to summary |
|---|---|
| pack-priv static final int getNativeSize(NativeType type) | |
| getNativeType | back to summary |
|---|---|
| public final NativeType getNativeType() Gets the native type of this
| |
| getTypeClass | back to summary |
|---|---|
| public static final RubyClass getTypeClass(Ruby runtime) | |
| isPrimitive | back to summary |
|---|---|
| private static final boolean isPrimitive(NativeType type) | |
| size | back to summary |
|---|---|
| public IRubyObject size(ThreadContext context) Gets the native size of this
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Type | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final IRubyObject | |
| public final Type | |
| public final int | |
| public final IRubyObject | |
| public static final IRubyObject | newInstance(ThreadContext context, IRubyObject klass, IRubyObject componentType, IRubyObject length)
|
| componentType | back to summary |
|---|---|
| private final Type componentType | |
| length | back to summary |
|---|---|
| private final int length | |
| Array | back to summary |
|---|---|
| public Array(Ruby runtime, RubyClass klass, Type componentType, int length) Initializes a new | |
| Array | back to summary |
|---|---|
| public Array(Ruby runtime, Type componentType, int length) Initializes a new | |
| elem_type | back to summary |
|---|---|
public final IRubyObject elem_type(ThreadContext context)
| |
| getComponentType | back to summary |
|---|---|
| public final Type getComponentType() | |
| length | back to summary |
|---|---|
| public final int length() | |
| length | back to summary |
|---|---|
public final IRubyObject length(ThreadContext context)
| |
| newInstance | back to summary |
|---|---|
public static final IRubyObject newInstance(ThreadContext context, IRubyObject klass, IRubyObject componentType, IRubyObject length)
| |
| Modifier and Type | Field and Description |
|---|---|
| private final RubySymbol |
| Access | Constructor and Description |
|---|---|
| private | Builtin(ThreadContext context, RubyClass klass, NativeType nativeType, String symName)
Initializes a new |
| Modifier and Type | Method and Description |
|---|---|
| public IRubyObject | |
| public IRubyObject | equal_p(ThreadContext
the thread context context, IRubyObject to compare with obj)Overrides org. rb_obj_equal Will use Java identity equality. |
| public boolean | equals(Object
object to compare obj)Overrides org. This override does not do a "checked" dispatch. |
| public int | hashCode()
Overrides org. This override does not do "checked" dispatch since Object usually has #hash defined. |
| public final IRubyObject | inspect(ThreadContext context)
Overrides org. Overrides default org. Returns a string containing a human-readable representation of obj. |
| public IRubyObject | op_equal(ThreadContext context, IRubyObject obj)
Overrides org. Implements org. rb_obj_equal Will by default use identity equality to compare objects. |
| public final IRubyObject | |
| public final String | toString()
Overrides org. The default toString method is just a wrapper that calls the Ruby "to_s" method. |
| sym | back to summary |
|---|---|
| private final RubySymbol sym | |
| Builtin | back to summary |
|---|---|
| private Builtin(ThreadContext context, RubyClass klass, NativeType nativeType, String symName) Initializes a new | |
| eql_p | back to summary |
|---|---|
| public IRubyObject eql_p(ThreadContext context, IRubyObject obj) Overrides org.
| |
| equal_p | back to summary |
|---|---|
| public IRubyObject equal_p(ThreadContext context, IRubyObject obj) Overrides org. Doc from org. rb_obj_equal Will use Java identity equality.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides org. Doc from org. This override does not do a "checked" dispatch.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides org. Doc from org. This override does not do "checked" dispatch since Object usually has #hash defined.
| |
| inspect | back to summary |
|---|---|
| public final IRubyObject inspect(ThreadContext context) Overrides org. Overrides default org. Doc from org. Returns a string containing a human-readable representation of
obj. If not overridden, uses the
| |
| op_equal | back to summary |
|---|---|
| public IRubyObject op_equal(ThreadContext context, IRubyObject obj) Overrides org. Implements org. Doc from org. rb_obj_equal Will by default use identity equality to compare objects. This follows the Ruby semantics. The name of this method doesn't follow the convention because hierarchy problems
| |
| to_sym | back to summary |
|---|---|
public final IRubyObject to_sym(ThreadContext context)
| |
| toString | back to summary |
|---|---|
| public final String toString() Overrides org. Doc from org. The default toString method is just a wrapper that calls the Ruby "to_s" method. | |