2014-01-17 66 views
1

我不小心訪問了Mozilla manual site,我發現這個語言並不熟悉。 AFAIK,這不是Javascript。它看起來像Java,C#,Go或者它們,但我無法弄清楚這個語言實際上是什麼。Mozilla手冊中使用的語言是什麼?

API概述節中的頁面:

interface TCPSocket{ 
    readonly attribute DOMString host; 
    readonly attribute unsigned short port; 
    readonly attribute boolean ssl; 
    readonly attribute unsigned long bufferedAmount; 
    readonly attribute DOMString binaryType; 
    readonly attribute DOMString readyState; 

    TCPSocket open(DOMString host, unsigned short port, [object options]); 
    TCPServerSocket listen(unsigned short port, [object options, [unsigned short backlog]]) 
    void upgradeToSecure(); 
    void suspend(); 
    void resume(); 
    void close(); 
    boolean send(in jsval data); 

    attribute onopen; 
    attribute ondrain; 
    attribute ondata; 
    attribute onerror; 
    attribute onclose; 
}; 

回答

2

看起來像由對象管理組接口定義語言。該語言介紹可在http://www.omg.org/gettingstarted/omg_idl.htm,full specs of the upcoming version找到。

+0

儘管這個鏈接可能回答這個問題,但最好在這裏包含答案的基本部分,並提供參考鏈接。如果鏈接頁面更改,則僅鏈接答案可能會失效。 –

+0

那麼,我同意你的評論,但我不確定規範的哪一部分是足夠的。無論如何,我會將URL更改爲對象管理組的主站點...感謝您的建議。 – user3159253