com.smardec.j2native
Class Const

java.lang.Object
  |
  +--com.smardec.j2native.Argument
        |
        +--com.smardec.j2native.DelegatedArgument
              |
              +--com.smardec.j2native.Const
All Implemented Interfaces:
java.lang.Cloneable

public class Const
extends DelegatedArgument

Const class represents a read-only argument. It is a wrapper for an instance of a real Argument object.


Field Summary
 
Fields inherited from class com.smardec.j2native.Argument
JAVA_SIDE, NATIVE_SIDE
 
Constructor Summary
Const(Argument refArgument)
          Constructs the Const object by wrapping a specified Argument object.
 
Method Summary
 java.lang.Object clone()
          Creates and returns a copy of this object.
protected  void read(long handle, int offset)
          do nothing
protected  void readFromStack(byte[] stack, int offset)
          do nothing
 
Methods inherited from class com.smardec.j2native.DelegatedArgument
finalize, free, fromBytesValue, getAlignedLength, getInternalValue, getLength, isFixedLength, readFromRAM, restoreFromRAM, setInternalValue, storeToRAM, toBytesValue, toBytesValue, toString, write, writeToRAM, writeToStack
 
Methods inherited from class com.smardec.j2native.Argument
update
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Const

public Const(Argument refArgument)
Constructs the Const object by wrapping a specified Argument object.

Parameters:
refArgument - argument to wrap
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.

read

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

Overrides:
read in class DelegatedArgument
Parameters:
handle - identifies location in memory from which Argument will be read
offset - memory address offset

readFromStack

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

Overrides:
readFromStack in class DelegatedArgument
Parameters:
stack - it's byte array, from which Argument will be restored
offset - offset in stack


Copyright © 2004-2005 Smardec. All Rights Reserved.