Package de.intarsys.nativec.type
Class NativeType
java.lang.Object
de.intarsys.nativec.type.NativeType
- All Implemented Interfaces:
INativeType
- Direct Known Subclasses:
NativeAbstractStringType
,NativeArrayType
,NativeBufferType
,NativeReferenceType
,NativeSimpleType
,NativeStructType
A common superclass for
INativeType
implementations-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionArray
(int size) Create a Declaration that represents an array of this.createNative
(INativeHandle handle) Create a newINativeObject
from aINativeHandle
.createNative
(Object value) Create anINativeObject
for this type from the Java object.int
The size of the type in c memory.static INativeType
Ref()
Create a Declaration that represents a reference to this.static void
register
(Class<?> clazz, INativeType type) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.intarsys.nativec.type.INativeType
getPreferredBoundary
-
Constructor Details
-
NativeType
protected NativeType() -
NativeType
-
-
Method Details
-
lookup
-
register
-
Array
Create a Declaration that represents an array of this.- Specified by:
Array
in interfaceINativeType
- Parameters:
size
- The predefined size for the array.- Returns:
- Create a Declaration that represents an array of this.
-
createNative
Description copied from interface:INativeType
Create a newINativeObject
from aINativeHandle
.- Specified by:
createNative
in interfaceINativeType
- Parameters:
handle
- The handle to memory.- Returns:
- The new
INativeObject
-
createNative
Description copied from interface:INativeType
Create anINativeObject
for this type from the Java object.- Specified by:
createNative
in interfaceINativeType
- Parameters:
value
-- Returns:
- The new
INativeObject
-
getByteCount
public int getByteCount()Description copied from interface:INativeType
The size of the type in c memory.- Specified by:
getByteCount
in interfaceINativeType
- Returns:
- The size of the type in c memory.
-
Ref
Create a Declaration that represents a reference to this.- Specified by:
Ref
in interfaceINativeType
- Returns:
- Create a Declaration that represents a reference to this.
-