/docs/asdoc/ru/aw/utils/ClassUtils.html
HTML | 347 lines | 328 code | 10 blank | 9 comment | 0 complexity | 0c327c30a49fa4e25530252ee60c3c16 MD5 | raw file
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <link rel="stylesheet" href="../../style.css" type="text/css" media="screen">
- <link rel="stylesheet" href="../../print.css" type="text/css" media="print">
- <meta content="ClassUtils,aw.utils.ClassUtils,apply,applyByName,call,callByName,getClassDefinition,getClassName" name="keywords">
- <title>aw.utils.ClassUtils</title>
- </head>
- <body>
- <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">
- <!--
- asdocTitle = 'ClassUtils - API Documentation';
- var baseRef = '../../';
- window.onload = configPage;
- --></script>
- <table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
- <tr>
- <td align="left" class="titleTableTitle">API Documentation</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../all-classes.html')" href="../../package-summary.html">All Packages</a> | <a onclick="loadClassListFrame('../../all-classes.html')" href="../../class-summary.html">All Classes</a> | <a onclick="loadClassListFrame('../../index-list.html')" href="../../all-index-A.html">Index</a> | <a href="../../index.html?aw/utils/ClassUtils.html&aw/utils/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../images/logo.jpg"></td>
- </tr>
- <tr class="titleTableRow2">
- <td align="left" id="subTitle" class="titleTableSubTitle">Class ClassUtils</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#methodSummary">Methods</a></td>
- </tr>
- <tr class="titleTableRow3">
- <td colspan="2"> </td>
- </tr>
- </table>
- <script type="text/javascript" language="javascript">
- <!--
- 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);}
- --></script>
- <div class="MainContent">
- <table cellspacing="0" cellpadding="0" class="classHeaderTable">
- <tr>
- <td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">aw.utils</a></td>
- </tr>
- <tr>
- <td class="classHeaderTableLabel">Class</td><td class="classSignature">public class ClassUtils</td>
- </tr>
- </table>
- <p></p>
- ????? ??? ?????? ? ????????? ???????.
- ????????? ??????????????? ?????? ?? ????? ??? ?? ??????? ??????.
- <p></p>
- <br>
- <span class="label">Example</span>
- <br>?????? ?????????????:
- <div class='listing'><pre>
- package {
- import aw.utils.ClassUtils;
-
- import flash.display.Sprite;
- import flash.filters.DropShadowFilter;
-
- public class Test extends Sprite{
- public function Test():void{
- super();
- var filter1:DropShadowFilter = ClassUtils.apply(DropShadowFilter, [4, 45, 0, 1, 4, 4, 1]);
- var filter2:DropShadowFilter = ClassUtils.applyByName("flash.filters.DropShadowFilter", [4, 45, 0, 1, 4, 4, 1]);
- var filter3:DropShadowFilter = ClassUtils.call(DropShadowFilter, 4, 45, 0, 1, 4, 4, 1);
- var filter4:DropShadowFilter = ClassUtils.callByName("flash.filters.DropShadowFilter", 4, 45, 0, 1, 4, 4, 1);
- }
- }
- }
- </pre></div>
- ???????? ????? ??? ????????? ??????? ?????? ?? ?????????? ??????.
- <p></p>?????? ?????????????:
- <div class='listing'><pre>
- package {
- import aw.utils.ClassUtils;
-
- import flash.display.Sprite;
- import flash.filters.DropShadowFilter;
-
- public class Test extends Sprite{
- public function Test():void{
- super();
- trace(ClassUtils.getClassDefinition(this));
- var filter:DropShadowFilter = new DropShadowFilter();
- trace(ClassUtils.getClassDefinition(filter));
- }
- }
- }
- /* trace output
- [class Test]
- [class DropShadowFilter]
- */
- </pre></div>
- <p></p>
- <br>
- <hr>
- </div>
- <a name="methodSummary"></a>
- <div class="summarySection">
- <div class="summaryTableTitle">Public Methods</div>
- <table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
- <tr>
- <th> </th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined by</th>
- </tr>
- <tr class="">
- <td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
- <div class="summarySignature">
- <a class="signatureLink" href="#apply()">apply</a>(cls:Object, arr:Array = null):*</div>
- <div class="summaryTableDescription">[static]
- ????????? ???????? ???????????? ?????? ???????? ???? Function.</div>
- </td><td class="summaryTableOwnerCol">ClassUtils</td>
- </tr>
- <tr class="">
- <td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
- <div class="summarySignature">
- <a class="signatureLink" href="#applyByName()">applyByName</a>(name:String, arr:Array = null):*</div>
- <div class="summaryTableDescription">[static]
- ??????? ????????? ?????? ?? ??? ?????, ????????? ? ??????????? ????????? ?? ???????.</div>
- </td><td class="summaryTableOwnerCol">ClassUtils</td>
- </tr>
- <tr class="">
- <td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
- <div class="summarySignature">
- <a class="signatureLink" href="#call()">call</a>(cls:Object, ... args):*</div>
- <div class="summaryTableDescription">[static]
- ????????? ???????? ???????????? ?????? ???????? ???? Function.</div>
- </td><td class="summaryTableOwnerCol">ClassUtils</td>
- </tr>
- <tr class="">
- <td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
- <div class="summarySignature">
- <a class="signatureLink" href="#callByName()">callByName</a>(name:String, ... args):*</div>
- <div class="summaryTableDescription">[static]
- ??????? ????????? ?????? ?? ??? ?????, ????????? ? ??????????? ??? ??????????? ?????????, ?? ?????? ??????.</div>
- </td><td class="summaryTableOwnerCol">ClassUtils</td>
- </tr>
- <tr class="">
- <td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
- <div class="summarySignature">
- <a class="signatureLink" href="#getClassDefinition()">getClassDefinition</a>(any:*):Class</div>
- <div class="summaryTableDescription">[static]
- ?????????? ?????? ?????? ?? ??? ????? ??? ??????????.</div>
- </td><td class="summaryTableOwnerCol">ClassUtils</td>
- </tr>
- <tr class="">
- <td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
- <div class="summarySignature">
- <a class="signatureLink" href="#getClassName()">getClassName</a>(cls:*):String</div>
- <div class="summaryTableDescription">[static]
- ?????????? ??? ??????.</div>
- </td><td class="summaryTableOwnerCol">ClassUtils</td>
- </tr>
- </table>
- </div>
- <script type="text/javascript" language="javascript">
- <!--
- showHideInherited();
- --></script>
- <div class="MainContent">
- <a name="methodDetail"></a>
- <div class="detailSectionHeader">Method detail</div>
- <a name="apply()"></a>
- <table cellspacing="0" cellpadding="0" class="detailHeader">
- <tr>
- <td class="detailHeaderName">apply</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
- </tr>
- </table>
- <div class="detailBody">
- <code>public static function apply(cls:Object, arr:Array = null):*</code><p>
- ????????? ???????? ???????????? ?????? ???????? ???? Function.
-
- </p><span class="label">Parameters</span>
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="20px"></td><td><code><span class="label">cls</span>:Object</code> — ?????? ??????, ????????? ???????? ????? ????????.
- </td>
- </tr>
- <tr>
- <td class="paramSpacer"> </td>
- </tr>
- <tr>
- <td width="20px"></td><td><code><span class="label">arr</span>:Array</code> (default = <code>null</code>)<code></code> — ?????? ?????????? ???????????? ? ????????????.
- </td>
- </tr>
- </table>
- <p></p>
- <span class="label">Returns</span>
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="20"></td><td><code>*</code></td>
- </tr>
- </table>
- </div>
- <a name="applyByName()"></a>
- <table cellspacing="0" cellpadding="0" class="detailHeader">
- <tr>
- <td class="detailHeaderName">applyByName</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
- </tr>
- </table>
- <div class="detailBody">
- <code>public static function applyByName(name:String, arr:Array = null):*</code><p>
- ??????? ????????? ?????? ?? ??? ?????, ????????? ? ??????????? ????????? ?? ???????.
-
- </p><span class="label">Parameters</span>
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="20px"></td><td><code><span class="label">name</span>:String</code> — ??? ??????, ????????? ???????? ????? ????????.
- </td>
- </tr>
- <tr>
- <td class="paramSpacer"> </td>
- </tr>
- <tr>
- <td width="20px"></td><td><code><span class="label">arr</span>:Array</code> (default = <code>null</code>)<code></code> — ?????? ?????????? ???????????? ? ????????????.
- </td>
- </tr>
- </table>
- <p></p>
- <span class="label">Returns</span>
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="20"></td><td><code>*</code></td>
- </tr>
- </table>
- </div>
- <a name="call()"></a>
- <table cellspacing="0" cellpadding="0" class="detailHeader">
- <tr>
- <td class="detailHeaderName">call</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
- </tr>
- </table>
- <div class="detailBody">
- <code>public static function call(cls:Object, ... args):*</code><p>
- ????????? ???????? ???????????? ?????? ???????? ???? Function.
-
- </p><span class="label">Parameters</span>
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="20px"></td><td><code><span class="label">cls</span>:Object</code> — ?????? ??????, ????????? ???????? ????? ????????.
- </td>
- </tr>
- <tr>
- <td class="paramSpacer"> </td>
- </tr>
- <tr>
- <td width="20px"></td><td><code>... <span class="label">args</span></code> — ????????? ???????????? ? ????????????.
- </td>
- </tr>
- </table>
- <p></p>
- <span class="label">Returns</span>
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="20"></td><td><code>*</code></td>
- </tr>
- </table>
- </div>
- <a name="callByName()"></a>
- <table cellspacing="0" cellpadding="0" class="detailHeader">
- <tr>
- <td class="detailHeaderName">callByName</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
- </tr>
- </table>
- <div class="detailBody">
- <code>public static function callByName(name:String, ... args):*</code><p>
- ??????? ????????? ?????? ?? ??? ?????, ????????? ? ??????????? ??? ??????????? ?????????, ?? ?????? ??????.
-
- </p><span class="label">Parameters</span>
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="20px"></td><td><code><span class="label">name</span>:String</code> — ?????? ??????, ????????? ???????? ????? ????????.
- </td>
- </tr>
- <tr>
- <td class="paramSpacer"> </td>
- </tr>
- <tr>
- <td width="20px"></td><td><code>... <span class="label">args</span></code> — ????????? ???????????? ? ????????????.
- </td>
- </tr>
- </table>
- <p></p>
- <span class="label">Returns</span>
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="20"></td><td><code>*</code></td>
- </tr>
- </table>
- </div>
- <a name="getClassDefinition()"></a>
- <table cellspacing="0" cellpadding="0" class="detailHeader">
- <tr>
- <td class="detailHeaderName">getClassDefinition</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
- </tr>
- </table>
- <div class="detailBody">
- <code>public static function getClassDefinition(any:*):Class</code><p>
- ?????????? ?????? ?????? ?? ??? ????? ??? ??????????.
-
- </p><span class="label">Parameters</span>
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="20px"></td><td><code><span class="label">any</span>:*</code> — ??? ?????? ??? ??? ?????????.
- </td>
- </tr>
- </table>
- <p></p>
- <span class="label">Returns</span>
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="20"></td><td><code>Class</code> — Class
- </td>
- </tr>
- </table>
- </div>
- <a name="getClassName()"></a>
- <table cellspacing="0" cellpadding="0" class="detailHeader">
- <tr>
- <td class="detailHeaderName">getClassName</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
- </tr>
- </table>
- <div class="detailBody">
- <code>public static function getClassName(cls:*):String</code><p>
- ?????????? ??? ??????.
-
- </p><span class="label">Parameters</span>
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="20px"></td><td><code><span class="label">cls</span>:*</code> — ?????? ??????, ??? ????????? ??? ???(???? ???????? ??? ??????????????? ??????, ?? ?????? ??? ?????? "String").
- </td>
- </tr>
- </table>
- <p></p>
- <span class="label">Returns</span>
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="20"></td><td><code>String</code> — String
- </td>
- </tr>
- </table>
- </div>
- <br>
- <br>
- <hr>
- <br>
- <p></p>
- <center class="copyright">
- </center>
- </div>
- </body>
- </html>
- <!-- -->