All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class nsjava.internal.TclInteger

java.lang.Object
   |
   +----nsjava.internal.TclInteger

public class TclInteger
extends Object
implements InternalRep
This class implements the integer object type in Tcl.


Method Index

 o dispose()
 o duplicate()
Returns a dupilcate of the current object.
 o get(TclObject)
Tcl_GetIntFromObj -> TclInteger.get Returns the integer value of the object.
 o newInstance(int)
Tcl_NewIntObj -> TclInteger.newInstance Creates a new instance of a TclObject with a TclInteger internal representation.
 o set(TclObject, int)
Changes the integer value of the object.
 o toString()
Called to query the string representation of the Tcl object.

Methods

 o duplicate
 public InternalRep duplicate()
Returns a dupilcate of the current object.

Parameters:
obj - the TclObject that contains this internalRep.
 o toString
 public String toString()
Called to query the string representation of the Tcl object. This method is called only by TclObject.toString() when TclObject.stringRep is null.

Returns:
the string representation of the Tcl object.
Overrides:
toString in class Object
 o newInstance
 public static TclObject newInstance(int i)
Tcl_NewIntObj -> TclInteger.newInstance Creates a new instance of a TclObject with a TclInteger internal representation.

Parameters:
b - initial value of the integer object.
Returns:
the TclObject with the given integer value.
 o get
 public static int get(TclObject tobj) throws TclException
Tcl_GetIntFromObj -> TclInteger.get Returns the integer value of the object.

Parameters:
interp - current interpreter.
tobj - the object to operate on.
Returns:
the integer value of the object.
Throws: TclException
thrown for usage errors
 o set
 public static void set(TclObject tobj,
                        int i) throws TclException
Changes the integer value of the object.

Parameters:
interp - current interpreter.
tobj - the object to operate on.
i - the new integer value.
Throws: TclException
thrown for usage errors
 o dispose
 public void dispose()

All Packages  Class Hierarchy  This Package  Previous  Next  Index