|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jruby.RubyBasicObject
org.jruby.RubyObject
org.jruby.ext.ffi.Type
public abstract class Type
Nested Class Summary | |
---|---|
static class |
Type.Array
|
static class |
Type.Builtin
|
Nested classes/interfaces inherited from class org.jruby.RubyObject |
---|
RubyObject.Data, RubyObject.ObjectMethods |
Nested classes/interfaces inherited from class org.jruby.RubyBasicObject |
---|
RubyBasicObject.BasicObjectMethods, RubyBasicObject.Finalizer |
Field Summary | |
---|---|
protected int |
alignment
Minimum alignment of this type in bytes |
protected NativeType |
nativeType
|
protected int |
size
Size of this type in bytes |
Fields inherited from class org.jruby.RubyObject |
---|
OBJECT_ALLOCATOR |
Fields inherited from class org.jruby.RubyBasicObject |
---|
ALL_F, COMPARE_BY_IDENTITY_F, ERR_INSECURE_SET_INST_VAR, FALSE_F, FL_USHIFT, flags, FROZEN_F, metaClass, NEVER, NIL_F, TAINTED_F, UNDEF, UNTRUSTED_F, USER0_F, USER1_F, USER2_F, USER3_F, USER4_F, USER5_F, USER6_F, USER7_F |
Fields inherited from interface org.jruby.runtime.builtin.IRubyObject |
---|
NULL_ARRAY |
Constructor Summary | |
---|---|
protected |
Type(Ruby runtime,
RubyClass klass,
NativeType type)
Initializes a new Type instance. |
protected |
Type(Ruby runtime,
RubyClass klass,
NativeType type,
int size,
int alignment)
Initializes a new Type instance. |
Method Summary | |
---|---|
IRubyObject |
alignment(ThreadContext context)
Gets the native alignment of this Type in bytes |
static RubyClass |
createTypeClass(Ruby runtime,
RubyModule ffiModule)
|
int |
getNativeAlignment()
Gets the native alignment of this Type in bytes |
int |
getNativeSize()
Gets the native size of this Type in bytes |
NativeType |
getNativeType()
Gets the native type of this Type when passed as a parameter |
static RubyClass |
getTypeClass(Ruby runtime)
|
IRubyObject |
size(ThreadContext context)
Gets the native size of this Type in bytes |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final NativeType nativeType
protected final int size
protected final int alignment
Constructor Detail |
---|
protected Type(Ruby runtime, RubyClass klass, NativeType type, int size, int alignment)
protected Type(Ruby runtime, RubyClass klass, NativeType type)
Method Detail |
---|
public static RubyClass createTypeClass(Ruby runtime, RubyModule ffiModule)
public static final RubyClass getTypeClass(Ruby runtime)
public final NativeType getNativeType()
public final int getNativeSize()
public final int getNativeAlignment()
public IRubyObject size(ThreadContext context)
context
- The Ruby thread context.
public IRubyObject alignment(ThreadContext context)
context
- The Ruby thread context.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |