'\"
|
'\"
|
'\" Copyright (c) 1993-1998 Lucent Technologies, Inc.
|
'\" Copyright (c) 1993-1998 Lucent Technologies, Inc.
|
'\"
|
'\"
|
'\" See the file "license.terms" for information on usage and redistribution
|
'\" See the file "license.terms" for information on usage and redistribution
|
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
'\"
|
'\"
|
'\" RCS: $Id: itcl_info.n,v 1.1.1.1 2002-01-16 10:24:46 markom Exp $
|
'\" RCS: $Id: itcl_info.n,v 1.1.1.1 2002-01-16 10:24:46 markom Exp $
|
'\"
|
'\"
|
.so man.macros
|
.so man.macros
|
.TH itcl_info n 3.0 itcl "[incr\ Tcl]"
|
.TH itcl_info n 3.0 itcl "[incr\ Tcl]"
|
.BS
|
.BS
|
'\" Note: do not modify the .SH NAME line immediately below!
|
'\" Note: do not modify the .SH NAME line immediately below!
|
.SH NAME
|
.SH NAME
|
itcl_info \- query info regarding classes and objects (obsolete)
|
itcl_info \- query info regarding classes and objects (obsolete)
|
.SH SYNOPSIS
|
.SH SYNOPSIS
|
\fBitcl_info classes ?\fIpattern\fR?
|
\fBitcl_info classes ?\fIpattern\fR?
|
.br
|
.br
|
\fBitcl_info objects ?\fIpattern\fR? ?\fB-class \fIclassName\fR? ?\fB-isa \fIclassName\fR?
|
\fBitcl_info objects ?\fIpattern\fR? ?\fB-class \fIclassName\fR? ?\fB-isa \fIclassName\fR?
|
.BE
|
.BE
|
|
|
.SH DESCRIPTION
|
.SH DESCRIPTION
|
.PP
|
.PP
|
This command is considered obsolete, but is retained for
|
This command is considered obsolete, but is retained for
|
backward-compatibility with earlier versions of \fB[incr\ Tcl]\fR.
|
backward-compatibility with earlier versions of \fB[incr\ Tcl]\fR.
|
It has been replaced by the "\fBinfo classes\fR" and "\fBinfo objects\fR"
|
It has been replaced by the "\fBinfo classes\fR" and "\fBinfo objects\fR"
|
commands, which should be used for any new development.
|
commands, which should be used for any new development.
|
|
|
.PP
|
.PP
|
The following commands are available in the global namespace to
|
The following commands are available in the global namespace to
|
query information about classes and objects that have been created.
|
query information about classes and objects that have been created.
|
.TP
|
.TP
|
\fBitcl_info classes ?\fIpattern\fR?
|
\fBitcl_info classes ?\fIpattern\fR?
|
Returns a list of classes available in the current namespace context.
|
Returns a list of classes available in the current namespace context.
|
.VS
|
.VS
|
If a class belongs to the current namespace context, its simple name
|
If a class belongs to the current namespace context, its simple name
|
is reported; otherwise, if a class is imported from another namespace,
|
is reported; otherwise, if a class is imported from another namespace,
|
its fully-qualified name is reported.
|
its fully-qualified name is reported.
|
.VE
|
.VE
|
.sp
|
.sp
|
If the optional \fIpattern\fR is specified, then the reported names
|
If the optional \fIpattern\fR is specified, then the reported names
|
are compared using the rules of the "\fBstring match\fR" command,
|
are compared using the rules of the "\fBstring match\fR" command,
|
and only matching names are reported.
|
and only matching names are reported.
|
.TP
|
.TP
|
\fBitcl_info objects ?\fIpattern\fR? ?\fB-class \fIclassName\fR? ?\fB-isa \fIclassName\fR?
|
\fBitcl_info objects ?\fIpattern\fR? ?\fB-class \fIclassName\fR? ?\fB-isa \fIclassName\fR?
|
Returns a list of objects available in the current namespace context.
|
Returns a list of objects available in the current namespace context.
|
.VS
|
.VS
|
If an object belongs to the current namespace context, its simple name
|
If an object belongs to the current namespace context, its simple name
|
is reported; otherwise, if an object is imported from another namespace,
|
is reported; otherwise, if an object is imported from another namespace,
|
its fully-qualified access command is reported.
|
its fully-qualified access command is reported.
|
.VE
|
.VE
|
.sp
|
.sp
|
If the optional \fIpattern\fR is specified, then the reported names
|
If the optional \fIpattern\fR is specified, then the reported names
|
are compared using the rules of the "\fBstring match\fR" command,
|
are compared using the rules of the "\fBstring match\fR" command,
|
and only matching names are reported.
|
and only matching names are reported.
|
If the optional "\fB-class\fR" parameter is specified, this list is
|
If the optional "\fB-class\fR" parameter is specified, this list is
|
restricted to objects whose most-specific class is \fIclassName\fR.
|
restricted to objects whose most-specific class is \fIclassName\fR.
|
If the optional "\fB-isa\fR" parameter is specified, this list is
|
If the optional "\fB-isa\fR" parameter is specified, this list is
|
further restricted to objects having the given \fIclassName\fR
|
further restricted to objects having the given \fIclassName\fR
|
anywhere in their heritage.
|
anywhere in their heritage.
|
|
|
.SH KEYWORDS
|
.SH KEYWORDS
|
class, object, object-oriented
|
class, object, object-oriented
|
|
|