JSDOC/Introspect/Interface.js
[gnome.introspection-doc-generator] / JSDOC / Introspect / Interface.js
1 //<script type="text/javascript">
2 //Gtk = imports.gi.Gtk;
3  
4 XObject     = imports.XObject.XObject;
5 console     = imports.console.console;
6 NameSpace   = imports.NameSpace.NameSpace;
7
8 Base        = imports.Base.Base;
9
10
11
12 imports['Object.js'].load(Object);
13
14 console = imports['console.js'].console;
15
16  
17
18 Introspect = imports['JSDOC/Introspect.js'].Introspect;
19 Base = imports['JSDOC/Introspect/Base.js'].Base;
20
21
22
23 /**
24  * Interface
25  */
26
27 Interface = XObject.define(
28     function(ns, name) {
29         Base.call(this, ns, name);
30        
31     },
32
33     Base, 
34     {
35          titleType: 'Interface',
36         _loaded : false,
37         load : function()
38         {
39             if (this._loaded) {
40                 return; // already loaded..
41             }
42             // my props..
43             var props = [];
44             this.genericBuildList('interface', 'property', props, 'properties');
45            
46            
47             var signals = [];
48             this.genericBuildList('interface', 'signal', signals, 'signals');
49           
50             
51             var methods = [];
52             this.genericBuildList('interface', 'method', methods, 'methods');
53             
54             
55             NameSpace.ifaceList[this.alias] = NameSpace.ifaceList[this.alias] || [];
56             this.implementedBy = NameSpace.ifaceList[this.alias];
57             
58               
59            
60             this._loaded  = true;
61         },
62          
63
64 });