com.smardec.j2native
Class Pointer

java.lang.Object
  |
  +--com.smardec.j2native.Argument
        |
        +--com.smardec.j2native.PointerArgument
              |
              +--com.smardec.j2native.TypedPointer
                    |
                    +--com.smardec.j2native.Pointer
All Implemented Interfaces:
java.lang.Cloneable, PointerType

public final class Pointer
extends TypedPointer

Pointer class represents a pointer to object in terms of C language. Pointer type is defined by its referenced object.
For example, an int pointer (int *) is a Pointer to Int.

 Int value = new Int();
 Pointer pValue = new Pointer(value); // this is int*
 


Nested Class Summary
static class Pointer.Const
          Class Pointer.Const represents a pointer to constant object
static class Pointer.OutOnly
          Class Pointer.OutOnly represents a pointer to out only object.
static class Pointer.Void
          Class Pointer.Void represents a void *.
 
Field Summary
 
Fields inherited from class com.smardec.j2native.Argument
JAVA_SIDE, NATIVE_SIDE
 
Constructor Summary
Pointer(Argument refArgument)
          Constructs a new pointer to a given object.
 
Method Summary
 java.lang.Object clone()
          Creates and returns a copy of this object.
 
Methods inherited from class com.smardec.j2native.TypedPointer
getAt, getAt, getReferencedArgument, getValue, isNull, read, readFromStack, setReferencedArgument, setValue, toString, update, write, writeToStack
 
Methods inherited from class com.smardec.j2native.PointerArgument
equals, fromBytesValue, getLength, hashCode, isFixedLength, toBytesValue, toBytesValue
 
Methods inherited from class com.smardec.j2native.Argument
finalize, free, getAlignedLength, readFromRAM, restoreFromRAM, storeToRAM, writeToRAM
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Pointer

public Pointer(Argument refArgument)
Constructs a new pointer to a given object. The constructed pointer is a non-null pointer parameter that points to the given object

Parameters:
refArgument - referenced object
Method Detail

clone

public java.lang.Object clone()
Description copied from class: Argument
Creates and returns a copy of this object.

Specified by:
clone in class Argument
Returns:
a clone of this instance.


Copyright © 2004-2005 Smardec. All Rights Reserved.