itcl User Commands - itcl_info
NAME
itcl_info - query info regarding classes and objects
(obsolete)
SYNOPSIS
itcl_info classes ?pattern?
itcl_info objects ?pattern? ?-class className? ?-isa
className?
DESCRIPTION
This command is considered obsolete, but is retained for
backward-compatibility with earlier versions of [incr Tcl].
It has been replaced by the "info classes" and "info
objects" commands, which should be used for any new develop-
ment.
The following commands are available in the global namespace
to query information about classes and objects that have
been created.
itcl_info classes ?pattern?
Returns a list of classes available in the current
namespace context. If a class belongs to the current |
namespace context, its simple name is reported; other- |
wise, if a class is imported from another namespace, |
its fully-qualified name is reported.
If the optional pattern is specified, then the reported
names are compared using the rules of the "string
match" command, and only matching names are reported.
itcl_info objects ?pattern? ?-class className? ?-
isa className?
Returns a list of objects available in the current
namespace context. If an object belongs to the current |
namespace context, its simple name is reported; other- |
wise, if an object is imported from another namespace, |
its fully-qualified access command is reported.
If the optional pattern is specified, then the reported
names are compared using the rules of the "string
match" command, and only matching names are reported.
If the optional "-class" parameter is specified, this
list is restricted to objects whose most-specific class
is className. If the optional "-isa" parameter is
specified, this list is further restricted to objects
having the given className anywhere in their heritage.
KEYWORDS
class, object, object-oriented