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
Java representation of the native type to be converted. nativeValue, FromNativeContext Context in which the conversion is taking place. context)Implements com. |
| public Pointer | Returns: Native pointer representation for this object.Returns the associated native |
| public int | hashCode()
Overrides java. PointerType is the same as that for
its pointer.
|
| public Class | nativeType()
Implements com. |
| public void | |
| public Object | toNative()
Implements com. Pointer).
|
| public String |
| 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. Doc from com. Indicate the native type used by this converter. | |
| 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
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |