NativeMapped#fromNative method,
which should instantiate a new object (or look up an existing one)
of the appropriate type.
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | PointerType(Pointer p)
This constructor is typically used by |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. PointerType with identical pointers compare
equal by default.
|
| public Object | fromNative(Object nativeValue, FromNativeContext context)
Implements com. |
| public Pointer | |
| public int | hashCode()
Overrides java. PointerType is the same as that for
its pointer.
|
| public Class | nativeType()
Implements com. PointerType classes represent a native Pointer.
|
| public void | |
| public Object | toNative()
Implements com. Pointer).
|
| pointer | back to summary |
|---|---|
| private Pointer pointer | |
| PointerType | back to summary |
|---|---|
| protected PointerType() The default constructor wraps a NULL pointer. | |
| PointerType | back to summary |
|---|---|
| protected PointerType(Pointer p) This constructor is typically used by | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Instances of
| |
| fromNative | back to summary |
|---|---|
| public Object fromNative(Object nativeValue, FromNativeContext context) Implements com. The default implementation simply creates a new instance of the class
and assigns its pointer field. Override if you need different behavior,
such as ensuring a single | |
| getPointer | back to summary |
|---|---|
| public Pointer getPointer() Returns the associated native | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. The hash code for a
| |
| nativeType | back to summary |
|---|---|
| public Class Implements com. All | |
| setPointer | back to summary |
|---|---|
| public void setPointer(Pointer p) | |
| toNative | back to summary |
|---|---|
| public Object toNative() Implements com. Convert this object to its native type (a | |