Joy Online Manual


NAME
Static methods of ObjC returning information about the Objective-C runtime environment

SYNOPSIS

ObjC.classes()
ObjC.classes(regExp)

DESCRIPTION
Returns an array of all classes known to the Objective-C run-time environment. An optional regular expression may be specified to return only classes which match regExp.


SYNOPSIS

ObjC.classMethodsOf(class)
ObjC.classMethodsOf(class, regExp)
ObjC.allClassMethodsOf(class)
ObjC.allClassMethodsOf(class, regExp)

DESCRIPTION
The classMethodsOf() method returns an array containing the names of class methods implemented by the Objective-C class class. The  allClassMethodsOf() variant includes methods inherited from superclasses. An optional regular expression may be specified to return only those methods which match regExp.


SYNOPSIS

ObjC.classObjects()
ObjC.classObjects(regExp)
ObjC.classObjectsOf(class)
ObjC.classObjectsOf(class, regExp)
ObjC.allClassObjectsOf(class)
ObjC.allClassObjectsOf(class, regExp)

DESCRIPTION
The classObjects() method returns an array of all class and metaclass objects in the Objective-C runtime system. The classObjectsOf() method returns only the class and metaclass objects of the Objective-C class  class. The  allClassObjectsOf() variant includes class objects of subclasses. An optional regular expression may be specified to return only objects which match regExp.


SYNOPSIS

ObjC.functions()
ObjC.functions(regExp)

DESCRIPTION
Returns an array of the names of all C function prototypes in currently imported precompiled header files. An optional regular expression may be specified to return only functions which match regExp.

EXAMPLE

js> ObjC.functions(/sin/)
["asinh", "sinh", "asin", "sin", "PSsin", "isinf"]


SYNOPSIS

ObjC.imported()
ObjC.imported(regExp)

DESCRIPTION
Returns an array of the paths of all precompiled Objective-C header files that are currently imported. An optional regular expression may be specified to return only paths which match regExp.

EXAMPLE

js> ObjC.imported(/NSWindow/)
["/System/Library/Frameworks/AppKitScripting.framework/Headers/NSWindow_Scripting.h", "/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h", "/System/Library/Frameworks/AppKit.framework/Headers/NSWindowController.h"]

SEE ALSO
Header Files


SYNOPSIS

ObjC.instanceMethodsOf(object)
ObjC.instanceMethodsOf(object, regExp)
ObjC.allInstanceMethodsOf(object)
ObjC.allInstanceMethodsOf(object, regExp)

DESCRIPTION
The instanceMethodsOf() method returns an array containing the names of instance methods implemented by the Objective-C object or class object. The  allInstanceMethodsOf() variant includes methods inherited from superclasses. An optional regular expression may be specified to return only those methods which match regExp.


SYNOPSIS

ObjC.instances()
ObjC.instances(regExp)
ObjC.instancesOf(class)
ObjC.instancesOf(class, regExp)
ObjC.allInstancesOf(class)
ObjC.allInstancesOf(class, regExp)

DESCRIPTION
The instances() method returns an array containing all Objective-C instances known to Joy. The instancesOf() method returns only instances of the Objective-C class class. The  allInstancesOf() variant includes instances of subclasses. An optional regular expression may be specified to return only objects which match regExp.


SYNOPSIS

ObjC.ivarsOf(object)
ObjC.ivarsOf(object, regExp)
ObjC.allIvarsOf(object)
ObjC.allIvarsOf(object, regExp)

DESCRIPTION
The ivarsOf() method returns an array containing the names of instance variables of the Objective-C object or class object. The  allIvarsOf() variant includes instance variables inherited from superclasses. An optional regular expression may be specified to return only instance variables which match regExp.


SYNOPSIS

ObjC.macros()
ObjC.macros(regExp)

DESCRIPTION
Returns an array of the names of all macro constants defined by currently imported precompiled header files. An optional regular expression may be specified to return only macros  which match regExp.

SEE ALSO
Macros


SYNOPSIS

ObjC.protocols()
ObjC.protocols(regExp)
ObjC.protocolsOf(object)
ObjC.protocolsOf(object, regExp)
ObjC.allProtocolsOf(object)
ObjC.allProtocolsOf(object, regExp)

DESCRIPTION
The protocols() method returns an array of the names of all protocols known to Joy. The protocolsOf() method returns only protocols adopted by the Objective-C object or class object. The allProtocolsOf() variant includes protocols adopted by other protocols or by superclasses. An optional regular expression may be specified to return only protocols which match regExp.


SYNOPSIS

ObjC.subclassesOf(class)
ObjC.subclassesOf(class, regExp)
ObjC.allSubclassesOf(class)
ObjC.allSubclassesOf(class, regExp)

DESCRIPTION
The subclassesOf() method returns an array containing all direct subclasses of the Objective-C class class. The  allSubclassesOf() variant includes indirect subclasses. An optional regular expression may be specified to return only subclasses which match regExp.


SYNOPSIS

ObjC.typedefs()
ObjC.typedefs(regExp)

DESCRIPTION
Returns an array of the names of all typedef types defined by currently imported precompiled header files. An optional regular expression may be specified to return only types  which match regExp.

EXAMPLE

js> ObjC.typedefs(/^NSWindow/)
["NSWindowAuxiliaryOpaque", "NSWindowOrderingMode", "NSWindowDepth"]


SYNOPSIS

ObjC.variables()
ObjC.variables(regExp)

DESCRIPTION
Returns an array of the names of all C variables declared by currently imported precompiled header files. An optional regular expression may be specified to return only variables which match regExp.

EXAMPLE

js> ObjC.variables(/icon/i)
["NSIconSize"]


Index