public class TclInteger extends java.lang.Object implements InternalRep
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Implement this no-op for the InternalRep interface.
|
InternalRep |
duplicate()
Should never be invoked.
|
static int |
get(Interp interp,
TclObject tobj)
Tcl_GetIntFromObj -> TclInteger.get
Returns the integer value of the object.
|
static TclObject |
newInstance(int i)
Tcl_NewIntObj -> TclInteger.newInstance
Creates a new instance of a TclObject with a TclInteger internal
representation.
|
static void |
set(TclObject tobj,
int i)
Changes the integer value of the object.
|
java.lang.String |
toString()
Should never be invoked.
|
public InternalRep duplicate()
duplicate in interface InternalReppublic void dispose()
dispose in interface InternalReppublic java.lang.String toString()
toString in class java.lang.Objectpublic static TclObject newInstance(int i)
b - initial value of the integer object.public static int get(Interp interp, TclObject tobj) throws TclException
interp - current interpreter.tobj - the object to operate on.TclExceptionpublic static void set(TclObject tobj, int i)
interp - current interpreter.tobj - the object to operate on.i - the new integer value.