com.smardec.j2native
Class Char

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

public class Char
extends DelegatedArgument

Char class represents the char value and type.


Field Summary
 
Fields inherited from class com.smardec.j2native.Argument
JAVA_SIDE, NATIVE_SIDE
 
Constructor Summary
Char()
          Constructs a Char object with a '\n' value.
Char(char value)
          Constructs a Bool object with a specified value.
 
Method Summary
 java.lang.Object clone()
          Creates and returns a copy of this object.
 char getValue()
          Returns the char value.
protected  boolean isFixedLength()
          Identify if Argument is a fixed length variable.
 void setValue(char value)
          Sets a char value.
 
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
getResultFlags, update
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Char

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


Char

public Char(char value)
Constructs a Bool object with a specified value.

Parameters:
value - value to set
Method Detail

getValue

public char getValue()
Returns the char value.

Returns:
char value

setValue

public void setValue(char value)
              throws java.lang.IllegalArgumentException
Sets a char value.

Parameters:
value - char value
Throws:
java.lang.IllegalArgumentException - if char value to set exceeds 255.

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.

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-2005 Smardec. All Rights Reserved.