PageRenderTime 840ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/docs/asdoc/ru/aw/utils/ClassUtils.html

http://jsinterface.googlecode.com/
HTML | 347 lines | 328 code | 10 blank | 9 comment | 0 complexity | 0c327c30a49fa4e25530252ee60c3c16 MD5 | raw file
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <head>
  4. <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <link rel="stylesheet" href="../../style.css" type="text/css" media="screen">
  6. <link rel="stylesheet" href="../../print.css" type="text/css" media="print">
  7. <meta content="ClassUtils,aw.utils.ClassUtils,apply,applyByName,call,callByName,getClassDefinition,getClassName" name="keywords">
  8. <title>aw.utils.ClassUtils</title>
  9. </head>
  10. <body>
  11. <script type="text/javascript" language="javascript" src="../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../cookies.js"></script><script type="text/javascript" language="javascript">
  12. <!--
  13. asdocTitle = 'ClassUtils - API Documentation';
  14. var baseRef = '../../';
  15. window.onload = configPage;
  16. --></script>
  17. <table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
  18. <tr>
  19. <td align="left" class="titleTableTitle">API Documentation</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../all-classes.html')" href="../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../all-classes.html')" href="../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../index-list.html')" href="../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../index.html?aw/utils/ClassUtils.html&amp;aw/utils/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../images/logo.jpg"></td>
  20. </tr>
  21. <tr class="titleTableRow2">
  22. <td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;ClassUtils</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#methodSummary">Methods</a></td>
  23. </tr>
  24. <tr class="titleTableRow3">
  25. <td colspan="2">&nbsp;</td>
  26. </tr>
  27. </table>
  28. <script type="text/javascript" language="javascript">
  29. <!--
  30. if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class ClassUtils"); titleBar_setSubNav(false,false,false,false,false,false,true,false,false,false,false,false,false,false);}
  31. --></script>
  32. <div class="MainContent">
  33. <table cellspacing="0" cellpadding="0" class="classHeaderTable">
  34. <tr>
  35. <td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">aw.utils</a></td>
  36. </tr>
  37. <tr>
  38. <td class="classHeaderTableLabel">Class</td><td class="classSignature">public class ClassUtils</td>
  39. </tr>
  40. </table>
  41. <p></p>
  42. ????? ??? ?????? ? ????????? ???????.
  43. ????????? ??????????????? ?????? ?? ????? ??? ?? ??????? ??????.
  44. <p></p>
  45. <br>
  46. <span class="label">Example</span>
  47. <br>?????? ?????????????:
  48. <div class='listing'><pre>
  49. package {
  50. import aw.utils.ClassUtils;
  51. import flash.display.Sprite;
  52. import flash.filters.DropShadowFilter;
  53. public class Test extends Sprite{
  54. public function Test():void{
  55. super();
  56. var filter1:DropShadowFilter = ClassUtils.apply(DropShadowFilter, [4, 45, 0, 1, 4, 4, 1]);
  57. var filter2:DropShadowFilter = ClassUtils.applyByName("flash.filters.DropShadowFilter", [4, 45, 0, 1, 4, 4, 1]);
  58. var filter3:DropShadowFilter = ClassUtils.call(DropShadowFilter, 4, 45, 0, 1, 4, 4, 1);
  59. var filter4:DropShadowFilter = ClassUtils.callByName("flash.filters.DropShadowFilter", 4, 45, 0, 1, 4, 4, 1);
  60. }
  61. }
  62. }
  63. </pre></div>
  64. ???????? ????? ??? ????????? ??????? ?????? ?? ?????????? ??????.
  65. <p></p>?????? ?????????????:
  66. <div class='listing'><pre>
  67. package {
  68. import aw.utils.ClassUtils;
  69. import flash.display.Sprite;
  70. import flash.filters.DropShadowFilter;
  71. public class Test extends Sprite{
  72. public function Test():void{
  73. super();
  74. trace(ClassUtils.getClassDefinition(this));
  75. var filter:DropShadowFilter = new DropShadowFilter();
  76. trace(ClassUtils.getClassDefinition(filter));
  77. }
  78. }
  79. }
  80. /&#042; trace output
  81. [class Test]
  82. [class DropShadowFilter]
  83. &#042;/
  84. </pre></div>
  85. <p></p>
  86. <br>
  87. <hr>
  88. </div>
  89. <a name="methodSummary"></a>
  90. <div class="summarySection">
  91. <div class="summaryTableTitle">Public Methods</div>
  92. <table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
  93. <tr>
  94. <th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
  95. </tr>
  96. <tr class="">
  97. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
  98. <div class="summarySignature">
  99. <a class="signatureLink" href="#apply()">apply</a>(cls:Object, arr:Array = null):*</div>
  100. <div class="summaryTableDescription">[static]
  101. ????????? ???????? ???????????? ?????? ???????? ???? Function.</div>
  102. </td><td class="summaryTableOwnerCol">ClassUtils</td>
  103. </tr>
  104. <tr class="">
  105. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
  106. <div class="summarySignature">
  107. <a class="signatureLink" href="#applyByName()">applyByName</a>(name:String, arr:Array = null):*</div>
  108. <div class="summaryTableDescription">[static]
  109. ??????? ????????? ?????? ?? ??? ?????, ????????? ? ??????????? ????????? ?? ???????.</div>
  110. </td><td class="summaryTableOwnerCol">ClassUtils</td>
  111. </tr>
  112. <tr class="">
  113. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
  114. <div class="summarySignature">
  115. <a class="signatureLink" href="#call()">call</a>(cls:Object, ... args):*</div>
  116. <div class="summaryTableDescription">[static]
  117. ????????? ???????? ???????????? ?????? ???????? ???? Function.</div>
  118. </td><td class="summaryTableOwnerCol">ClassUtils</td>
  119. </tr>
  120. <tr class="">
  121. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
  122. <div class="summarySignature">
  123. <a class="signatureLink" href="#callByName()">callByName</a>(name:String, ... args):*</div>
  124. <div class="summaryTableDescription">[static]
  125. ??????? ????????? ?????? ?? ??? ?????, ????????? ? ??????????? ??? ??????????? ?????????, ?? ?????? ??????.</div>
  126. </td><td class="summaryTableOwnerCol">ClassUtils</td>
  127. </tr>
  128. <tr class="">
  129. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
  130. <div class="summarySignature">
  131. <a class="signatureLink" href="#getClassDefinition()">getClassDefinition</a>(any:*):Class</div>
  132. <div class="summaryTableDescription">[static]
  133. ?????????? ?????? ?????? ?? ??? ????? ??? ??????????.</div>
  134. </td><td class="summaryTableOwnerCol">ClassUtils</td>
  135. </tr>
  136. <tr class="">
  137. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
  138. <div class="summarySignature">
  139. <a class="signatureLink" href="#getClassName()">getClassName</a>(cls:*):String</div>
  140. <div class="summaryTableDescription">[static]
  141. ?????????? ??? ??????.</div>
  142. </td><td class="summaryTableOwnerCol">ClassUtils</td>
  143. </tr>
  144. </table>
  145. </div>
  146. <script type="text/javascript" language="javascript">
  147. <!--
  148. showHideInherited();
  149. --></script>
  150. <div class="MainContent">
  151. <a name="methodDetail"></a>
  152. <div class="detailSectionHeader">Method detail</div>
  153. <a name="apply()"></a>
  154. <table cellspacing="0" cellpadding="0" class="detailHeader">
  155. <tr>
  156. <td class="detailHeaderName">apply</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
  157. </tr>
  158. </table>
  159. <div class="detailBody">
  160. <code>public static function apply(cls:Object, arr:Array = null):*</code><p>
  161. ????????? ???????? ???????????? ?????? ???????? ???? Function.
  162. </p><span class="label">Parameters</span>
  163. <table border="0" cellspacing="0" cellpadding="0">
  164. <tr>
  165. <td width="20px"></td><td><code><span class="label">cls</span>:Object</code> &mdash; ?????? ??????, ????????? ???????? ????? ????????.
  166. </td>
  167. </tr>
  168. <tr>
  169. <td class="paramSpacer">&nbsp;</td>
  170. </tr>
  171. <tr>
  172. <td width="20px"></td><td><code><span class="label">arr</span>:Array</code> (default = <code>null</code>)<code></code> &mdash; ?????? ?????????? ???????????? ? ????????????.
  173. </td>
  174. </tr>
  175. </table>
  176. <p></p>
  177. <span class="label">Returns</span>
  178. <table border="0" cellspacing="0" cellpadding="0">
  179. <tr>
  180. <td width="20"></td><td><code>*</code></td>
  181. </tr>
  182. </table>
  183. </div>
  184. <a name="applyByName()"></a>
  185. <table cellspacing="0" cellpadding="0" class="detailHeader">
  186. <tr>
  187. <td class="detailHeaderName">applyByName</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
  188. </tr>
  189. </table>
  190. <div class="detailBody">
  191. <code>public static function applyByName(name:String, arr:Array = null):*</code><p>
  192. ??????? ????????? ?????? ?? ??? ?????, ????????? ? ??????????? ????????? ?? ???????.
  193. </p><span class="label">Parameters</span>
  194. <table border="0" cellspacing="0" cellpadding="0">
  195. <tr>
  196. <td width="20px"></td><td><code><span class="label">name</span>:String</code> &mdash; ??? ??????, ????????? ???????? ????? ????????.
  197. </td>
  198. </tr>
  199. <tr>
  200. <td class="paramSpacer">&nbsp;</td>
  201. </tr>
  202. <tr>
  203. <td width="20px"></td><td><code><span class="label">arr</span>:Array</code> (default = <code>null</code>)<code></code> &mdash; ?????? ?????????? ???????????? ? ????????????.
  204. </td>
  205. </tr>
  206. </table>
  207. <p></p>
  208. <span class="label">Returns</span>
  209. <table border="0" cellspacing="0" cellpadding="0">
  210. <tr>
  211. <td width="20"></td><td><code>*</code></td>
  212. </tr>
  213. </table>
  214. </div>
  215. <a name="call()"></a>
  216. <table cellspacing="0" cellpadding="0" class="detailHeader">
  217. <tr>
  218. <td class="detailHeaderName">call</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
  219. </tr>
  220. </table>
  221. <div class="detailBody">
  222. <code>public static function call(cls:Object, ... args):*</code><p>
  223. ????????? ???????? ???????????? ?????? ???????? ???? Function.
  224. </p><span class="label">Parameters</span>
  225. <table border="0" cellspacing="0" cellpadding="0">
  226. <tr>
  227. <td width="20px"></td><td><code><span class="label">cls</span>:Object</code> &mdash; ?????? ??????, ????????? ???????? ????? ????????.
  228. </td>
  229. </tr>
  230. <tr>
  231. <td class="paramSpacer">&nbsp;</td>
  232. </tr>
  233. <tr>
  234. <td width="20px"></td><td><code>... <span class="label">args</span></code> &mdash; ????????? ???????????? ? ????????????.
  235. </td>
  236. </tr>
  237. </table>
  238. <p></p>
  239. <span class="label">Returns</span>
  240. <table border="0" cellspacing="0" cellpadding="0">
  241. <tr>
  242. <td width="20"></td><td><code>*</code></td>
  243. </tr>
  244. </table>
  245. </div>
  246. <a name="callByName()"></a>
  247. <table cellspacing="0" cellpadding="0" class="detailHeader">
  248. <tr>
  249. <td class="detailHeaderName">callByName</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
  250. </tr>
  251. </table>
  252. <div class="detailBody">
  253. <code>public static function callByName(name:String, ... args):*</code><p>
  254. ??????? ????????? ?????? ?? ??? ?????, ????????? ? ??????????? ??? ??????????? ?????????, ?? ?????? ??????.
  255. </p><span class="label">Parameters</span>
  256. <table border="0" cellspacing="0" cellpadding="0">
  257. <tr>
  258. <td width="20px"></td><td><code><span class="label">name</span>:String</code> &mdash; ?????? ??????, ????????? ???????? ????? ????????.
  259. </td>
  260. </tr>
  261. <tr>
  262. <td class="paramSpacer">&nbsp;</td>
  263. </tr>
  264. <tr>
  265. <td width="20px"></td><td><code>... <span class="label">args</span></code> &mdash; ????????? ???????????? ? ????????????.
  266. </td>
  267. </tr>
  268. </table>
  269. <p></p>
  270. <span class="label">Returns</span>
  271. <table border="0" cellspacing="0" cellpadding="0">
  272. <tr>
  273. <td width="20"></td><td><code>*</code></td>
  274. </tr>
  275. </table>
  276. </div>
  277. <a name="getClassDefinition()"></a>
  278. <table cellspacing="0" cellpadding="0" class="detailHeader">
  279. <tr>
  280. <td class="detailHeaderName">getClassDefinition</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
  281. </tr>
  282. </table>
  283. <div class="detailBody">
  284. <code>public static function getClassDefinition(any:*):Class</code><p>
  285. ?????????? ?????? ?????? ?? ??? ????? ??? ??????????.
  286. </p><span class="label">Parameters</span>
  287. <table border="0" cellspacing="0" cellpadding="0">
  288. <tr>
  289. <td width="20px"></td><td><code><span class="label">any</span>:*</code> &mdash; ??? ?????? ??? ??? ?????????.
  290. </td>
  291. </tr>
  292. </table>
  293. <p></p>
  294. <span class="label">Returns</span>
  295. <table border="0" cellspacing="0" cellpadding="0">
  296. <tr>
  297. <td width="20"></td><td><code>Class</code> &mdash; Class
  298. </td>
  299. </tr>
  300. </table>
  301. </div>
  302. <a name="getClassName()"></a>
  303. <table cellspacing="0" cellpadding="0" class="detailHeader">
  304. <tr>
  305. <td class="detailHeaderName">getClassName</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
  306. </tr>
  307. </table>
  308. <div class="detailBody">
  309. <code>public static function getClassName(cls:*):String</code><p>
  310. ?????????? ??? ??????.
  311. </p><span class="label">Parameters</span>
  312. <table border="0" cellspacing="0" cellpadding="0">
  313. <tr>
  314. <td width="20px"></td><td><code><span class="label">cls</span>:*</code> &mdash; ?????? ??????, ??? ????????? ??? ???(???? ???????? ??? ??????????????? ??????, ?? ?????? ??? ?????? "String").
  315. </td>
  316. </tr>
  317. </table>
  318. <p></p>
  319. <span class="label">Returns</span>
  320. <table border="0" cellspacing="0" cellpadding="0">
  321. <tr>
  322. <td width="20"></td><td><code>String</code> &mdash; String
  323. </td>
  324. </tr>
  325. </table>
  326. </div>
  327. <br>
  328. <br>
  329. <hr>
  330. <br>
  331. <p></p>
  332. <center class="copyright">
  333. </center>
  334. </div>
  335. </body>
  336. </html>
  337. <!-- -->