|
1 "{ Package: 'stx:goodies/xmlsuite/xquery' }" |
|
2 |
|
3 "{ NameSpace: XQuery }" |
|
4 |
|
5 AstNode subclass:#AstMainModule |
|
6 instanceVariableNames:'prolog queryBody source' |
|
7 classVariableNames:'' |
|
8 poolDictionaries:'' |
|
9 category:'XQuery-AST' |
|
10 ! |
|
11 |
|
12 |
|
13 !AstMainModule methodsFor:'accessing'! |
|
14 |
|
15 prolog |
|
16 ^ prolog |
|
17 |
|
18 "Created: / 24-12-2006 / 14:55:53 / janfrog" |
|
19 ! |
|
20 |
|
21 prolog:anAstProlog |
|
22 prolog := anAstProlog. |
|
23 |
|
24 "Created: / 24-12-2006 / 14:55:54 / janfrog" |
|
25 ! |
|
26 |
|
27 queryBody |
|
28 ^ queryBody |
|
29 |
|
30 "Created: / 24-12-2006 / 14:55:54 / janfrog" |
|
31 ! |
|
32 |
|
33 queryBody:anAstExpr |
|
34 queryBody := anAstExpr. |
|
35 |
|
36 "Created: / 24-12-2006 / 14:55:54 / janfrog" |
|
37 ! |
|
38 |
|
39 source |
|
40 ^ source |
|
41 |
|
42 "Created: / 12-04-2007 / 11:17:11 / janfrog" |
|
43 ! |
|
44 |
|
45 source:sourceObject |
|
46 |
|
47 "sourceObject should be anything what undestands |
|
48 asString and returns appropriate string form of |
|
49 module source" |
|
50 |
|
51 source := sourceObject. |
|
52 |
|
53 "Created: / 12-04-2007 / 11:17:11 / janfrog" |
|
54 ! |
|
55 |
|
56 sourceString |
|
57 ^ self source asString |
|
58 |
|
59 "Created: / 12-04-2007 / 11:18:19 / janfrog" |
|
60 ! ! |
|
61 |
|
62 !AstMainModule methodsFor:'visiting'! |
|
63 |
|
64 acceptVisitor:aVisitor |
|
65 "Double dispatch back to the visitor, passing my type encoded in |
|
66 the selector (visitor pattern)" |
|
67 |
|
68 "stub code automatically generated - please change if required" |
|
69 |
|
70 ^ aVisitor visitAstMainModule:self |
|
71 |
|
72 "Created: / 24-12-2006 / 14:56:26 / janfrog" |
|
73 ! ! |
|
74 |
|
75 !AstMainModule class methodsFor:'documentation'! |
|
76 |
|
77 version |
|
78 ^ '$Header: /opt/data/cvs/stx/goodies/xmlsuite/xquery/XQuery__AstMainModule.st,v 1.2 2007-04-12 11:44:03 vranyj1 Exp $' |
|
79 ! ! |