method_info. Getting information about method

^reflection:method_info[class name;method name]

Returns the hash with information about the specified method of a class with the specified name.

For the system classes returns:

$hash[
    
$.inherited[class name, where the method was defined]
    $.min_params(minimum required number of method's parameters)
    $.max_params(maximum allowed 
number of method's parameters)
    $.call_type[
method's allowed call type: static, dynamic or any]
]

For the user-defined classes returns:
$hash[
    
$.inherited[ancestor's class name, where the method was defined]
    
$.overridden[ancestor's class name, where the inherited method was defined]
   [3.4.1]
    
$.file[path to file, where the method was defined]
   [3.4.1]
    
$.0[the name of the first method's parameter]
    $.1[the name of the second method's parameter]
    …
]




Copyright © 1997–2011 Art. Lebedev Studio | http://www.artlebedev.com Last updated: 02.03.2011