xotcl::method_handle_to_xotcl (private)

 xotcl::method_handle_to_xotcl methodHandle

Defined in packages/acs-tcl/tcl/tcllib-doc-procs.tcl

Convert an NSF method handle to an XOTcl method reference.

Parameters:
methodHandle (required)
NSF method handle to translate.

Partial Call Graph (max 5 caller/called nodes):
acs::tcllib::register_documentation acs::tcllib::register_documentation (private) xotcl::method_handle_to_xotcl xotcl::method_handle_to_xotcl acs::tcllib::register_documentation->xotcl::method_handle_to_xotcl xotcl::self xotcl::self (public) xotcl::self->xotcl::method_handle_to_xotcl nsf::is nsf::is xotcl::method_handle_to_xotcl->nsf::is

Testcases:
No testcase defined.
Source code:
    set definition [::nx::Object info method definition $methodHandle]
    #puts "method_handle_to_xotcl raw definition '$methodHandle' // $definition"
    if {$definition ne ""} {
      set obj [lindex $definition 0]
      set modifier [lindex $definition 2]
      if {$modifier eq "object"} {
        set prefix ""
        set kind [lindex $definition 3]
        set name [lindex $definition 4]
      } else {
    set prefix [expr {[::nsf::is class $obj] ? "inst" : ""}]
        set kind $modifier
        set name [lindex $definition 3]
      }
      if {$kind eq "method"} {
        set kind proc
      } elseif {$kind eq "setter"} {
        set kind parametercmd
      } elseif {$kind eq "alias"} {
    set kind "cmd"
    set name [lindex $definition 3]
      }
      set definition [list [lindex $definition 0] ${prefix}$kind $name]
    }
    #puts "method_handle_to_xotcl gets handle '$methodHandle' // $definition"
    return $definition
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: