CLASS
tcl.lang.TclInteger -- This class is used to create, read, and modify integer objects from Java code.
IMPLEMENTS
tcl.lang.InternalRep
METHODS
static TclObject newInstance(int intValue)
static int get(Interp interp, TclObject tobj) throws TclException
static void set(TclObject tobj, int intValue)
ARGUMENTS
DESCRIPTION
newInstance
get
set
EQUIVALENT C FUNCTIONS
SEE ALSO
KEYWORDS

CLASS

tcl.lang.TclInteger -- This class is used to create, read, and modify integer objects from Java code.

IMPLEMENTS

tcl.lang.InternalRep

METHODS

static TclObject newInstance(int intValue)

static int get(Interp interp, TclObject tobj) throws TclException

static void set(TclObject tobj, int intValue)

ARGUMENTS

int intValue
New value for internal integer representation.

Interp interp
If an error occurs while converting an object to be an integer object, an error message is left in the interpreter's result object unless interp is null.

TclObject tobj
TclObject to manipulate. If the internal representation of tobj is not TclInteger, the method converts it to TclInteger.

DESCRIPTION

newInstance
The newInstance method creates and returns a new TclObject whose internal representation is the integer intValue.

get
The get method returns an integer value from the tobj. If an error occurs while converting tobj to be an integer object, an error message is left in the interp's result object unless interp is null.

set
The set method sets tobj to have the integer value of intValue. When this method returns, the internal representation of tobj is TclInteger.

EQUIVALENT C FUNCTIONS

Tcl_NewIntObj, Tcl_GetIntFromObj, Tcl_SetIntObj

SEE ALSO

InternalRep, TclObject, TclList, TclIndex, TclString, TclDouble, TclBoolean, ReflectObject

KEYWORDS

internal representation, object, object type, integer
Copyright © 1996-1998 Sun Microsystems, Inc.
Copyright © 1995-1997 Roger E. Critchlow Jr.