add cxx
[roojspacker] / debian / roojspacker / usr / share / vala / vapi / roojspacker-1.2.vapi
1 /* roojspacker-1.2.vapi generated by valac 0.36.6, do not modify. */
2
3 namespace JSDOC {
4         [CCode (cheader_filename = "roojspacker-1.2.h")]
5         public class Collapse : JSDOC.TokenStream {
6                 public Collapse (Gee.ArrayList<JSDOC.Token> tokens, JSDOC.Packer pk, string filename);
7         }
8         [CCode (cheader_filename = "roojspacker-1.2.h")]
9         public class DocBuilder : GLib.Object {
10                 public string VERSION;
11                 public DocBuilder (JSDOC.Packer p);
12                 public JSDOC.Symbol getSymbol (string name);
13         }
14         [CCode (cheader_filename = "roojspacker-1.2.h")]
15         public class DocComment : GLib.Object {
16                 public bool hasTags;
17                 public bool isUserComment;
18                 public static string shared;
19                 public string src;
20                 public Gee.ArrayList<JSDOC.DocTag> tags;
21                 public DocComment (string comment = "");
22                 public Gee.ArrayList<JSDOC.DocTag> getTag (JSDOC.DocTagTitle tagTitle);
23                 public string getTagAsString (JSDOC.DocTagTitle tagTitle);
24                 public Json.Object toJson ();
25                 public static string unwrapComment (string comment);
26         }
27         [CCode (cheader_filename = "roojspacker-1.2.h")]
28         public class DocParser : GLib.Object {
29                 public static string currentSourceFile;
30                 public DocParser ();
31                 public static JSDOC.Symbol addBuiltin (string name);
32                 public static void addSymbol (JSDOC.Symbol symbol);
33                 public static Gee.ArrayList<JSDOC.Symbol> classes ();
34                 public static void fillChildClasses ();
35                 public static void fillTreeChildren ();
36                 public static void finish ();
37                 public static bool isValidChild (JSDOC.Symbol cls, string cn);
38                 public static void parse (JSDOC.TokenStream ts, string srcFile);
39                 public static JSDOC.SymbolSet symbols ();
40                 public static void validateAugments ();
41         }
42         [CCode (cheader_filename = "roojspacker-1.2.h")]
43         public class DocTag : GLib.Object {
44                 public string defaultValue;
45                 public string desc;
46                 public bool isOptional;
47                 public string memberOf;
48                 public string name;
49                 public Gee.ArrayList<string> optvalues;
50                 public JSDOC.DocTagTitle title;
51                 public string type;
52                 public DocTag (string in_src);
53                 public string asString ();
54                 public Json.Array optvalue_as_json_array ();
55                 public Json.Object toJson ();
56                 public Json.Object toPropertyJSON (JSDOC.Symbol parent);
57         }
58         [CCode (cheader_filename = "roojspacker-1.2.h")]
59         public class Identifier : GLib.Object {
60                 public string mungedValue;
61                 public string name;
62                 public int refcount;
63                 public JSDOC.Scope scope;
64                 public bool toMunge;
65                 public Identifier (string name, JSDOC.Scope scope);
66         }
67         [CCode (cheader_filename = "roojspacker-1.2.h")]
68         public class Lang_Class : GLib.Object {
69                 public Lang_Class ();
70                 public bool isBoolean (string str);
71                 public bool isBuiltin (string name);
72                 public bool isHexDec (string str);
73                 public bool isKeyword (string word);
74                 public bool isNewline (string str);
75                 public bool isNewlineC (char str);
76                 public bool isNumber (string str);
77                 public bool isSpace (string str);
78                 public bool isSpaceC (char str);
79                 public bool isWordChar (char c);
80                 public bool isWordString (string str);
81                 public JSDOC.TokenName keyword (string word) throws JSDOC.LangError;
82                 public JSDOC.TokenName? matching (JSDOC.TokenName name) throws JSDOC.LangError;
83                 public string newline (string ch);
84                 public JSDOC.TokenName puncFirstString (char ch);
85                 public JSDOC.TokenName puncString (string ch);
86                 public string whitespace (string ch);
87         }
88         [CCode (cheader_filename = "roojspacker-1.2.h")]
89         public class Packer : GLib.Object {
90                 public enum ResultType {
91                         err,
92                         warn;
93                         public string to_string ();
94                 }
95                 public string activeFile;
96                 public JSDOC.PackerRun config;
97                 public Gee.ArrayList<string> files;
98                 public string outstr;
99                 public Json.Object result;
100                 public Packer (JSDOC.PackerRun config);
101                 public void dumpErrors (JSDOC.Packer.ResultType type);
102                 public bool hasErrors (string fn);
103                 public void loadFile (string f);
104                 public void loadFiles (string[] fs);
105                 public void loadSourceIndex (string in_srcfile);
106                 public void loadSourceIndexes (Gee.ArrayList<string> indexes);
107                 public void logError (JSDOC.Packer.ResultType type, string filename, int line, string message);
108                 public string md5 (string str);
109                 public string pack (string target, string targetDebug = "") throws JSDOC.PackerError;
110                 public string packFile (string str, string fn, string minfile);
111         }
112         [CCode (cheader_filename = "roojspacker-1.2.h")]
113         public class PackerRun : GLib.Application {
114                 public bool opt_clean_cache;
115                 public bool opt_debug;
116                 public string opt_debug_target;
117                 public bool opt_doc_dump_tree;
118                 public string opt_doc_ext;
119                 public bool opt_doc_include_private;
120                 public string opt_doc_target;
121                 public string opt_doc_template_dir;
122                 public bool opt_dump_tokens;
123                 public bool opt_keep_whitespace;
124                 public string opt_real_basedir;
125                 public bool opt_skip_scope;
126                 public string opt_target;
127                 public PackerRun ();
128                 public void parseArgs (string[] args);
129                 public void runPack ();
130                 public static JSDOC.PackerRun singleton ();
131         }
132         [CCode (cheader_filename = "roojspacker-1.2.h")]
133         public class Scope : GLib.Object {
134                 public static Gee.ArrayList<string> builtin;
135                 public string ident;
136                 public static string[] ones;
137                 public JSDOC.Scope parent;
138                 public static Gee.ArrayList<string> skips;
139                 public Gee.ArrayList<JSDOC.Scope> subScopes;
140                 public static string[] twos;
141                 public Scope (int braceN, JSDOC.Scope? parent, int startTokN, string lastIdent, JSDOC.Token? token);
142                 public void addHint (string varName, string varType);
143                 public void addToParentScope (string ident);
144                 public JSDOC.Identifier declareIdentifier (string symbol, JSDOC.Token token);
145                 public void dump (string indent = "");
146                 public JSDOC.Identifier? getIdentifier (string symbol, JSDOC.Token token);
147                 public string[] getUsedSymbols ();
148                 public bool isProtectedVar (string ident);
149                 public void munge ();
150                 public void preventMunging ();
151         }
152         [CCode (cheader_filename = "roojspacker-1.2.h")]
153         public class ScopeParser : GLib.Object {
154                 public ScopeParser (JSDOC.TokenStream ts, JSDOC.Packer packer, string filename);
155                 public void buildSymbolTree ();
156                 public void mungeSymboltree ();
157                 public void printWarnings ();
158         }
159         [CCode (cheader_filename = "roojspacker-1.2.h")]
160         public class Symbol : GLib.Object {
161                 public string alias;
162                 public Gee.ArrayList<string> augments;
163                 public Gee.HashMap<string,JSDOC.DocTag> cfgs;
164                 public Gee.HashMap<string,Gee.ArrayList<string>> childClasses;
165                 public Gee.ArrayList<string> childClassesList;
166                 public JSDOC.DocComment comment;
167                 public string desc;
168                 public Gee.ArrayList<string> inheritsFrom;
169                 public bool isAbstract;
170                 public bool isBuilderTop;
171                 public bool isConstant;
172                 public bool isEvent;
173                 public bool isIgnored;
174                 public bool isInner;
175                 public bool isNamespace;
176                 public bool isPrivate;
177                 public bool isStatic;
178                 public string isa;
179                 public string memberOf;
180                 public Gee.ArrayList<JSDOC.Symbol> methods;
181                 public Gee.ArrayList<JSDOC.Symbol> properties;
182                 public static bool regex_init;
183                 public Gee.ArrayList<JSDOC.DocTag> returns;
184                 public static string srcFile;
185                 public Gee.ArrayList<string> tree_children;
186                 public Gee.ArrayList<string> tree_parent;
187                 public Symbol ();
188                 public void addChildClass (string clsname, string parent);
189                 public void addConfig (JSDOC.DocTag docTag);
190                 public void addDocTag (JSDOC.DocTag docTag);
191                 public void addMember (JSDOC.Symbol symbol);
192                 public string asString ();
193                 public Json.Object assocDocTagToJson (Gee.HashMap<string,JSDOC.DocTag> ar);
194                 public Json.Object assocStringToJson (Gee.HashMap<string,Gee.ArrayList<string>> ar);
195                 public Gee.ArrayList<JSDOC.DocTag> configToArray ();
196                 public Json.Array docTagsArrayToJson (Gee.ArrayList<JSDOC.DocTag> ar);
197                 public void inherit (JSDOC.Symbol symbol);
198                 public void initArrays ();
199                 public bool @is (string what);
200                 public bool isBuiltin ();
201                 public bool isaClass ();
202                 public string makeFuncSkel ();
203                 public string makeMethodSkel ();
204                 public Symbol.new_builtin (string name);
205                 public Symbol.new_populate_with_args (string name, Gee.ArrayList<string> @params, string isa, JSDOC.DocComment comment);
206                 public Json.Array paramsToJson ();
207                 public Json.Array returnsToJson ();
208                 public Json.Array stringArrayToJson (Gee.ArrayList<string> ar);
209                 public Json.Array symbolArrayToJson (Gee.ArrayList<JSDOC.Symbol> ar);
210                 public Json.Object toClassDocJSON ();
211                 public Json.Object toClassJSON ();
212                 public Json.Object toEventJSON (JSDOC.Symbol parent);
213                 public Json.Object toJson ();
214                 public Json.Object toMethodJSON (JSDOC.Symbol parent);
215                 public string name { get; }
216                 public Gee.ArrayList<JSDOC.DocTag> @params { get; }
217                 public string private_name { set; }
218         }
219         [CCode (cheader_filename = "roojspacker-1.2.h")]
220         public class SymbolSet : GLib.Object {
221                 public SymbolSet ();
222                 public void addSymbol (JSDOC.Symbol symbol);
223                 public void deleteSymbol (string alias);
224                 public JSDOC.Symbol? getSymbol (string alias);
225                 public bool hasSymbol (string alias);
226                 public static bool isBuiltin (string name);
227                 public Gee.ArrayList<string> keys ();
228                 public void relate ();
229                 public string renameSymbol (string oldName, string newName);
230                 public Json.Object toJson ();
231                 public Gee.ArrayList<JSDOC.Symbol> values ();
232                 public Gee.HashMap<string,JSDOC.Symbol> _index { get; }
233         }
234         [CCode (cheader_filename = "roojspacker-1.2.h")]
235         public class TextStream : GLib.Object {
236                 public TextStream (string text = "");
237                 public char lookC (int n = 0);
238                 public bool lookEOF (int n = 0);
239                 public string lookS (int n = 0);
240                 public char nextC ();
241                 public string nextS (int n = 1);
242         }
243         [CCode (cheader_filename = "roojspacker-1.2.h")]
244         public class TextStreamChar : GLib.Object {
245                 public char c;
246                 public bool eof;
247                 public TextStreamChar (char val, bool eof = false);
248         }
249         [CCode (cheader_filename = "roojspacker-1.2.h")]
250         public class Token : GLib.Object {
251                 public string data;
252                 public int id;
253                 public JSDOC.Identifier identifier;
254                 public Gee.ArrayList<Gee.ArrayList<JSDOC.Token>> items;
255                 public Gee.ArrayList<string> keyseq;
256                 public int line;
257                 public JSDOC.TokenName name;
258                 public string outData;
259                 public string prefix;
260                 public Gee.HashMap<string,JSDOC.TokenKeyMap> props;
261                 public JSDOC.TokenType type;
262                 public Token (string data, JSDOC.TokenType type, JSDOC.TokenName name, int line = -1);
263                 public string asString ();
264                 public void dump (string indent);
265                 public bool isName (JSDOC.TokenName what);
266                 public bool isType (JSDOC.TokenType what);
267                 public string toRaw (int lvl = 0);
268         }
269         [CCode (cheader_filename = "roojspacker-1.2.h")]
270         public class TokenArray : GLib.Object {
271                 public Gee.ArrayList<JSDOC.Token> tokens;
272                 public TokenArray (JSDOC.Packer? packer, JSDOC.TokenReader reader);
273                 public void dump ();
274                 public new JSDOC.Token @get (int i);
275                 public JSDOC.Token? last ();
276                 public JSDOC.Token? lastSym ();
277                 public JSDOC.Token? pop ();
278                 public void push (JSDOC.Token t);
279                 public int length { get; }
280         }
281         [CCode (cheader_filename = "roojspacker-1.2.h")]
282         public class TokenKeyMap : GLib.Object {
283                 public JSDOC.Token key;
284                 public Gee.ArrayList<JSDOC.Token> vals;
285                 public TokenKeyMap ();
286         }
287         [CCode (cheader_filename = "roojspacker-1.2.h")]
288         public class TokenReader : GLib.Object {
289                 public bool collapseWhite;
290                 public string filename;
291                 public bool ignoreBadGrammer;
292                 public bool keepComments;
293                 public bool keepDocs;
294                 public bool keepWhite;
295                 public bool sepIdents;
296                 public TokenReader (JSDOC.Packer? packer);
297                 public int findPuncToken (JSDOC.TokenArray tokens, string data, int n);
298                 public JSDOC.Token? lastSym (JSDOC.TokenArray tokens, int n);
299                 public bool read_dbquote (JSDOC.TextStream stream, JSDOC.TokenArray tokens);
300                 public bool read_hex (JSDOC.TextStream stream, JSDOC.TokenArray tokens);
301                 public bool read_mlcomment (JSDOC.TextStream stream, JSDOC.TokenArray tokens);
302                 public bool read_newline (JSDOC.TextStream stream, JSDOC.TokenArray tokens);
303                 public bool read_numb (JSDOC.TextStream stream, JSDOC.TokenArray tokens);
304                 public bool read_punc (JSDOC.TextStream stream, JSDOC.TokenArray tokens);
305                 public bool read_regx (JSDOC.TextStream stream, JSDOC.TokenArray tokens);
306                 public bool read_slcomment (JSDOC.TextStream stream, JSDOC.TokenArray tokens);
307                 public bool read_snquote (JSDOC.TextStream stream, JSDOC.TokenArray tokens);
308                 public bool read_space (JSDOC.TextStream stream, JSDOC.TokenArray tokens);
309                 public bool read_word (JSDOC.TextStream stream, JSDOC.TokenArray tokens);
310                 public JSDOC.TokenArray tokenize (JSDOC.TextStream stream);
311         }
312         [CCode (cheader_filename = "roojspacker-1.2.h")]
313         public class TokenStream : GLib.Object {
314                 public int cursor;
315                 protected Gee.ArrayList<JSDOC.Token> tokens;
316                 public TokenStream (Gee.ArrayList<JSDOC.Token> tokens);
317                 public Gee.ArrayList<JSDOC.Token> balance (JSDOC.TokenName in_start) throws JSDOC.TokenStreamError;
318                 public void dump (int start, int end);
319                 public void dumpAll (string indent);
320                 public void dumpAllFlat ();
321                 public JSDOC.Token? getMatchingToken (JSDOC.TokenName start, int depth = 0);
322                 public JSDOC.Token? getMatchingTokenEnd (JSDOC.TokenName end);
323                 public JSDOC.Token? look (int n, bool considerWhitespace);
324                 public JSDOC.Token lookAny (int n);
325                 public int lookFor (string data);
326                 public JSDOC.Token lookTok (int n);
327                 public JSDOC.Token? next ();
328                 public Gee.ArrayList<JSDOC.Token>? nextM (int howMany) throws JSDOC.TokenStreamError;
329                 public JSDOC.Token? nextNonSpace ();
330                 public JSDOC.Token? nextTok ();
331                 public void printRange (int start, int end);
332                 public Gee.ArrayList<JSDOC.Token> remaining ();
333                 public void rewind ();
334                 public Gee.ArrayList<JSDOC.Token> toArray ();
335         }
336         [CCode (cheader_filename = "roojspacker-1.2.h")]
337         public class Walker : GLib.Object {
338                 public Walker (JSDOC.TokenStream ts);
339                 public void buildSymbolTree ();
340         }
341         [CCode (cheader_filename = "roojspacker-1.2.h")]
342         public enum DocTagTitle {
343                 NO_VALUE,
344                 PARAM,
345                 PROPERTY,
346                 CFG,
347                 EXAMPLE,
348                 SINGLETON,
349                 AUTHOR,
350                 METHOD,
351                 DESC,
352                 OVERVIEW,
353                 SINCE,
354                 CONSTANT,
355                 VERSION,
356                 DEPRECATED,
357                 SEE,
358                 CLASS,
359                 NAMESPACE,
360                 CONSTRUCTOR,
361                 STATIC,
362                 INNER,
363                 FIELD,
364                 FUNCTION,
365                 EVENT,
366                 NAME,
367                 RETURN,
368                 THROWS,
369                 REQUIRES,
370                 TYPE,
371                 PRIVATE,
372                 IGNORE,
373                 ARGUMENTS,
374                 EXTENDS,
375                 DEFAULT,
376                 MEMBEROF,
377                 PUBLIC,
378                 SCOPE,
379                 SCOPEALIAS,
380                 CHILDREN,
381                 PARENT,
382                 ABSTRACT,
383                 BUILDER_TOP
384         }
385         [CCode (cheader_filename = "roojspacker-1.2.h")]
386         public enum ScopeParserMode {
387                 BUILDING_SYMBOL_TREE,
388                 PASS2_SYMBOL_TREE
389         }
390         [CCode (cheader_filename = "roojspacker-1.2.h")]
391         public enum TokenName {
392                 UNKNOWN_TOKEN,
393                 BREAK,
394                 CASE,
395                 CATCH,
396                 CONST,
397                 CONTINUE,
398                 DEFAULT,
399                 DELETE,
400                 DO,
401                 ELSE,
402                 FALSE,
403                 FINALLY,
404                 FOR,
405                 FUNCTION,
406                 IF,
407                 IN,
408                 INSTANCEOF,
409                 NEW,
410                 NULL,
411                 RETURN,
412                 SWITCH,
413                 THIS,
414                 THROW,
415                 TRUE,
416                 TRY,
417                 TYPEOF,
418                 VOID,
419                 WHILE,
420                 WITH,
421                 VAR,
422                 EVAL,
423                 NAME,
424                 MULTI_LINE_COMM,
425                 JSDOC,
426                 SINGLE_LINE_COMM,
427                 SEMICOLON,
428                 COMMA,
429                 HOOK,
430                 COLON,
431                 OR,
432                 AND,
433                 BITWISE_OR,
434                 BITWISE_XOR,
435                 BITWISE_AND,
436                 STRICT_EQ,
437                 EQ,
438                 ASSIGN,
439                 STRICT_NE,
440                 NE,
441                 LSH,
442                 LE,
443                 LT,
444                 URSH,
445                 RSH,
446                 GE,
447                 GT,
448                 INCREMENT,
449                 DECREMENT,
450                 PLUS,
451                 MINUS,
452                 MUL,
453                 DIV,
454                 MOD,
455                 NOT,
456                 BITWISE_NOT,
457                 DOT,
458                 LEFT_BRACE,
459                 RIGHT_BRACE,
460                 LEFT_CURLY,
461                 RIGHT_CURLY,
462                 LEFT_PAREN,
463                 RIGHT_PAREN,
464                 SPACE,
465                 NEWLINE,
466                 DOUBLE_QUOTE,
467                 SINGLE_QUOTE,
468                 OCTAL,
469                 DECIMAL,
470                 HEX_DEC,
471                 REGX,
472                 START_OF_STREAM,
473                 END_OF_STREAM,
474                 UNKNOWN
475         }
476         [CCode (cheader_filename = "roojspacker-1.2.h")]
477         public enum TokenType {
478                 TOKN,
479                 KEYW,
480                 NAME,
481                 COMM,
482                 PUNC,
483                 WHIT,
484                 STRN,
485                 NUMB,
486                 REGX,
487                 VOID
488         }
489         [CCode (cheader_filename = "roojspacker-1.2.h")]
490         public errordomain CompressWhiteError {
491                 BRACE
492         }
493         [CCode (cheader_filename = "roojspacker-1.2.h")]
494         public errordomain DocParserError {
495                 InvalidAugments,
496                 InvalidDocChildren
497         }
498         [CCode (cheader_filename = "roojspacker-1.2.h")]
499         public errordomain LangError {
500                 ArgumentError
501         }
502         [CCode (cheader_filename = "roojspacker-1.2.h")]
503         public errordomain PackerError {
504                 ArgumentError
505         }
506         [CCode (cheader_filename = "roojspacker-1.2.h")]
507         public errordomain TokenReader_Error {
508                 ArgumentError,
509                 SyntaxError
510         }
511         [CCode (cheader_filename = "roojspacker-1.2.h")]
512         public errordomain TokenStreamError {
513                 ArgumentError
514         }
515         [CCode (cheader_filename = "roojspacker-1.2.h")]
516         public static JSDOC.Lang_Class Lang;
517         [CCode (cheader_filename = "roojspacker-1.2.h")]
518         public static int Scope_gid;
519         [CCode (cheader_filename = "roojspacker-1.2.h")]
520         public static string CompressWhite (JSDOC.TokenStream ts, JSDOC.Packer packer, bool keepWhite);
521 }