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.
-
dispose()
-
-
duplicate()
- Returns a dupilcate of the current object.
-
get(TclObject)
- Tcl_GetIntFromObj -> TclInteger.get
Returns the integer value of the object.
-
newInstance(int)
- Tcl_NewIntObj -> TclInteger.newInstance
Creates a new instance of a TclObject with a TclInteger internal
representation.
-
set(TclObject, int)
- Changes the integer value of the object.
-
toString()
- Called to query the string representation of the Tcl object.
duplicate
public InternalRep duplicate()
- Returns a dupilcate of the current object.
- Parameters:
- obj - the TclObject that contains this internalRep.
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
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.
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
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
dispose
public void dispose()
All Packages Class Hierarchy This Package Previous Next Index