| Ŭ·¡½º :: IntrospectionMethods :: Catalog. Ŭ·¡½º :: IntrospectionMethods :: Catalog´Â IntrospectionMethodsÀÇ Ä«Å»·Î±×¸¦ °ü¸® ÇÒ ¼ö ÀÖ½À´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
Ŭ·¡½º :: IntrospectionMethods :: Catalog. ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À̸§:
- Dominique Dumont
Ŭ·¡½º :: IntrospectionMethods :: Catalog. ű×
Ŭ·¡½º :: IntrospectionMethods :: Catalog. ¼³¸í
Ŭ·¡½º :: IntrospectionMethods :: Catalog´Â IntrospectionMethods¿¡¼ Ä«Å»·Î±×¸¦ °ü¸® ÇÒ ¼ö ÀÖ½À´Ï´Ù. Ŭ·¡½º :: IntrospectionMethods :: Catalogs introspectionmethods.exported functionsset_method_info (target_class, method_name, info_ref) Store Targety_class.set_global_catalog (target_class, ...) Store Ä«Å»·Î±× Á¤º¸¸¦ ÀúÀåÇÕ´Ï´Ù. ù ¹ø° ¸Å°³ º¯¼ö´Â ±Û·Î¹ú Ä«Å»·Î±×¿¡¼ ¼±¾ð µÈ ¸Þ¼Òµå¸¦ °®Ãá Ŭ·¡½ºÀÔ´Ï´Ù. ¸Å°³ º¯¼ö´Â ¸í¸í µÈ ¸Å°³ º¯¼ö (¿¹ : key => value)ÀÇ ÁýÇÕÀÔ´Ï´Ù (¿¹ : key => value) : ½½·Ô ¹× Ä«Å»·Î±× ¸ñ·ÏÀÌ Æ÷ÇÔ µÈ ±Û·Î¹ú CatalogListArray RefÀÇ À̸§ÀÔ´Ï´Ù. ¿¹¸¦ µé¸é, list => => foo_catalog, => alpha_catalog, my_object => my_catalog], isaoptional hash ref Ä«Å»·Î±×¿¡ ´ëÇÑ ºÀ¼â¸¦ ¼±¾ðÇÕ´Ï´Ù. ¿¹ : list => [ 'foo'=> 'user', 'admin'=> 'root', isa => {user => 'root'} ±×·± ´ÙÀ½ '·çÆ®'Ä«Å»·Î±×´Â 'foo'¸¦ ¹ÝȯÇÕ´Ï´Ù. '»ç¿ëÀÚ'Ä«Å»·Î±×´Â 'foo'¿Í 'admin'.helpotional hash ref (slot_name => µµ¿ò¸»)À» ¹ÝȯÇÕ´Ï´Ù. ÀúÀå °¢ SLOT.SET_GLOBAL_CATALOG¿¡ ´ëÇÑ ¸î °¡Áö µµ¿ò¸» Á¤º¸°¡ closure.returns (slot_name, sub_ref)¿¡¼ classCatalog °´Ã¼°¡ µé¾îÀÖ´Â Àü¿ª Ä«Å»·Î±× Á¤º¸¸¦ Æ÷ÇÔÇÏ´Â ClassCatalog °´Ã¼ÀÔ´Ï´Ù. sub_ref´Â ´ë»ó Ŭ·¡½º¿¡ ¼³Ä¡µÇ¾î¾ßÇÕ´Ï´Ù. Ŭ·¡½º ¸Þ¼Òµå·Î È£ÃâµÇ´Â °æ¿ì, subref´Â classCatalog °´Ã¼¸¦ ¹ÝȯÇÕ´Ï´Ù. ¸ñÇ¥ Ŭ·¡½º ¸Þ¼Òµå·Î È£Ãâ µÉ ¶§ SubRef´Â Closure¿¡ ÀúÀåµÈ ClassCatalog °´Ã¼¿Í ¿¬°üµÈ ObjectCatalog °´Ã¼¸¦ ¹ÝȯÇÕ´Ï´Ù. 2 °³ °´Ã¼´Â µ¿ÀÏÇÑ API ¸¦°¡Áý´Ï´Ù. ObjectCatalog´Â ·±Å¸ÀÓ¿¡ ¹ß»ýÇÒ ¼öÀÖ´Â Ä«Å»·Î±× º¯°æ »çÇ×À» Æ÷ÇÔÇÏ´Â µ¥ »ç¿ëµË´Ï´Ù. ClassCatalog Á¤º¸´Â º¯°æµÇÁö ¾Ê½À´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ Perl.
Ŭ·¡½º :: IntrospectionMethods :: Catalog. °ü·Ã ¼ÒÇÁÆ®¿þ¾î