<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                一些構造可以使用定制的元數據屬性化: > Several constructs can be attributed with custom metadata: * 類和枚舉的聲明 * 類字段 * 枚舉構造函數 * 表達式 > * class and enum declarations > * Class ?elds > * Enum constructors > * Expressions 這些元數據信息可以被在運行時獲得,通過 haxe.rtti.Meta API: > These metadata information can be obtained at runtime through the haxe.rtti.Meta API: ~~~ import haxe.rtti.Meta; @author("Nicolas") @debug class MyClass { @range(1, 8) var value:Int; @broken @:noCompletion static function method() { } } class Main { static public function main() { // { author : ["Nicolas"], debug : null } trace(Meta.getType(MyClass)); // [1,8] trace(Meta.getFields(MyClass).value.range); // { broken: null } trace(Meta.getStatics(MyClass).method); } } ~~~ 我們可以簡單的識別元數據通過開始的 @ 字符,后跟元數據的名稱,和可選的,通過一些逗號分隔的包括在括號中的常量參數。 > We can easily identify metadata by the leading @ character, followed by the metadata name and, optionally, by a number of comma-separated constant arguments enclosed in parentheses. * 類 MyClass 有一個 author 元數據,帶有一個單獨的String參數“Nicolas”,還有一個 debug 元數據,沒有參數。 * 成員變量值有一個 range 元數據,為兩個Int參數,1和8. * 靜態method 方法有一個broken元數據,沒有參數,還有一個 :noCompletion 元數據,沒有參數。 > * Class MyClass has an author metadata with a single String argument "Nicolas", as well as a debug metadata without arguments. > * The member variable value has a range metadata with two Int arguments 1 and 8. > * The static method method has a broken metadata without arguments,as well as a :noCompletion metadata without arguments. main方法訪問這些元數據的值可以使用它們的API。輸出揭示了獲得的數據的結構: > The main method accesses these metadata values using their API. The output reveals the structure of the obtained data: * 每個元數據都有個字段,字段名是元數據的名稱。 * 字段值對應元數據參數。如果沒有參數,字段值為 null 。否則字段值是一個數組,每個參數作為一個元素。 * 冒號 : 開頭的元數據是省略的。這個類型的元數據作為編譯器元數據存在。 > * There is a ?eld for each metadata, with the ?eld name being the metadata name. > * The ?eld values correspond to the metadata arguments. If there are no arguments,the ?eld value is null. Otherwise the ?eld value is an array with one element per argument. > * Metadata starting with : is omitted. This kind of metadata is known as compiler metadata. 元數據參數接受的值為: > Allowed values for metadata arguments are: * 常量(第5.2節) * 數組聲明(第5.5節)(如果所有它們的元素具有資格) * 對象聲明(第5.6節)(如果所有它們的字段值有資格) > * Constants (5.2) > * Arrays declarations (5.5) (if all their elements qualify) > * Object declarations (5.6) (if all their ?eld values qualify) **內建編譯器元數據**:一個所有定義的元數據詳盡的列表可以通過運行 haxe --help-metas 從命令行獲取。 > **Built-in Compiler Metadata** An exhaustive list of all de?ned metadata can be obtained by running haxe --help-metas from command line. 也可以在元數據列表(第8.1節)查看。 > See also the Compiler Metadata list (8.1).
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看