|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttcl.lang.TclInteger
public class TclInteger
This class implements the integer object type in Tcl.
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public InternalRep duplicate()
duplicate
in interface InternalRep
public void dispose()
dispose
in interface InternalRep
public java.lang.String toString()
toString
in class java.lang.Object
public 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.
TclException
public static void set(TclObject tobj, int i)
interp
- current interpreter.tobj
- the object to operate on.i
- the new integer value.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |