Objective-Everything Release 5. Copyright ©1994-1998 by TipTop Software, Inc. All Rights Reserved.
Objective-WebScript introspection facility allows you to obtain various information about the runtime system.
Unparse extracts the class and protocol information from the runtime and returns it in the familiar ObjC-style syntax form.
If the object is a class, that class is unparsed.
If the object is an instance, its class is unparsed.
If the object is a protocol, the protocol is unparsed
Example:
wos% interp.printString([TTInterp unparse:[NSObject class]]); @interface NSObject : Nil <NSObject> // Subclasses: NMSScriptedObject NSLayoutHole NSCustomResource ... { Class isa; } // Class methods // ------------------------------- 13 ------------------------------- + (char)reallyConformsTo:(id)a0; ... + (Class)class; + (id)autorelease; // Instance methods // ------------------------------- 42 ------------------------------- - (void)logWithFormat:(id)a0; ... - (Class)class; - (id)autorelease; @end nil
Note that the result of unparse can be used as a header file for compiled ObjC.
All the introspection functionality is available via the TTInfo class.
Returns an array of all class names which match the glob pattern.
Returns an array of all object names registered with the Objective-Everything runtime system which match the pattern.
Returns an array of all protocol names known to the Objective-Everything runtime system which match the glob pattern.
Returns an array of all type names known to the system which match the glob pattern.
Returns an array of all function names known to the system which match the glob pattern.
Returns an array of all global variable names known to the system which match the glob pattern.
Returns an array of all constant names known to the system which match the pattern.
Returns architecture name.
Returns TipTop contact information.
Returns TipTop copyright information.
Returns the ObjWebScript version number.
Returns OS name.
Returns OS version.