com.smardec.j2native
Class Pointer.OutOnly

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

public static final class Pointer.OutOnly
extends TypedPointer

Class Pointer.OutOnly represents a pointer to out only object.


Field Summary
 
Fields inherited from class com.smardec.j2native.Argument
JAVA_SIDE, NATIVE_SIDE
 
Constructor Summary
Pointer.OutOnly(Argument refArgument)
          Constructs a new pointer to the given out only object.
 
Method Summary
 java.lang.Object clone()
          Creates and returns a copy of this object.
protected  void update(byte side)
          This method is used to synchronize Java side and native part.
protected  void write(long handle, int offset)
          do nothing
protected  void writeToStack(byte[] stack, int offset)
          do nothing
 
Methods inherited from class com.smardec.j2native.TypedPointer
getAt, getAt, getReferencedArgument, getValue, isNull, read, readFromStack, setReferencedArgument, setValue, toString
 
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.OutOnly

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

Parameters:
refArgument - referenced out object
Method Detail

writeToStack

protected void writeToStack(byte[] stack,
                            int offset)
do nothing

Overrides:
writeToStack in class TypedPointer
Parameters:
stack - it's byte array, where Argument will be written
offset - offset in stack

write

protected void write(long handle,
                     int offset)
do nothing

Overrides:
write in class TypedPointer
Parameters:
handle - identifies location in memory where Argument will be written
offset - memory address offset

update

protected void update(byte side)
Description copied from class: Argument
This method is used to synchronize Java side and native part.

Overrides:
update in class TypedPointer
Parameters:
side - identifies part that should be updated

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.