com.smardec.j2native
Class WideChar

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

public class WideChar
extends DelegatedArgument

WideChar class represents an Unicode character (wchar_t).


Field Summary
 
Fields inherited from class com.smardec.j2native.Argument
JAVA_SIDE, NATIVE_SIDE
 
Constructor Summary
WideChar()
          Constructs a WideChar object with a '\n' value.
WideChar(char value)
          Constructs a WideChar object with a specified value.
WideChar(char value, int charLength)
          Constructs a WideChar object with a specified value and length.
 
Method Summary
 char getValue()
          Returns the char value.
protected  boolean isFixedLength()
          Identify if Argument is a fixed length variable.
 void setLength(int charLength)
          Sets char length
 
Methods inherited from class com.smardec.j2native.DelegatedArgument
finalize, free, fromBytesValue, getAlignedLength, getInternalValue, getLength, read, readFromRAM, readFromStack, restoreFromRAM, setInternalValue, storeToRAM, toBytesValue, toBytesValue, write, writeToRAM, writeToStack
 
Methods inherited from class com.smardec.j2native.Argument
clone, getResultFlags, update
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WideChar

public WideChar()
Constructs a WideChar object with a '\n' value.


WideChar

public WideChar(char value)
Constructs a WideChar object with a specified value.

Parameters:
value - value to set

WideChar

public WideChar(char value,
                int charLength)
Constructs a WideChar object with a specified value and length.

Parameters:
value - value to set
charLength - char length
Method Detail

setLength

public void setLength(int charLength)
Sets char length

Parameters:
charLength - char length

getValue

public char getValue()
Returns the char value.

Returns:
char value

isFixedLength

protected boolean isFixedLength()
Description copied from class: Argument
Identify if Argument is a fixed length variable.

Overrides:
isFixedLength in class DelegatedArgument
Returns:
true if it is so, and false otherwise


Copyright © 2004-2006 Smardec. All Rights Reserved.