author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Mon, 02 Jul 2018 08:46:01 +0200 | |
changeset 305 | bad21c4f64bf |
parent 296 | ea3dbc023c80 |
permissions | -rw-r--r-- |
0 | 1 |
"{ Package: 'stx:goodies/xmlsuite/xquery' }" |
2 |
||
3 |
"{ NameSpace: XQuery }" |
|
4 |
||
5 |
AstNode subclass:#AstExpr |
|
6 |
instanceVariableNames:'exprSingle expr' |
|
7 |
classVariableNames:'' |
|
8 |
poolDictionaries:'' |
|
9 |
category:'XQuery-AST' |
|
10 |
! |
|
11 |
||
12 |
||
13 |
!AstExpr methodsFor:'accessing'! |
|
14 |
||
15 |
expr |
|
16 |
^ expr |
|
17 |
||
18 |
"Created: / 10-03-2006 / 19:05:00 / ked" |
|
19 |
! |
|
20 |
||
21 |
expr:something |
|
22 |
expr := something. |
|
23 |
||
24 |
"Created: / 10-03-2006 / 19:05:00 / ked" |
|
25 |
! |
|
26 |
||
27 |
exprSingle |
|
28 |
^ exprSingle |
|
29 |
||
30 |
"Created: / 10-03-2006 / 19:05:00 / ked" |
|
31 |
! |
|
32 |
||
33 |
exprSingle:something |
|
34 |
exprSingle := something. |
|
35 |
||
36 |
"Created: / 10-03-2006 / 19:05:00 / ked" |
|
37 |
! ! |
|
38 |
||
39 |
!AstExpr methodsFor:'testing'! |
|
40 |
||
41 |
isAstExpr |
|
42 |
^ true |
|
43 |
||
44 |
"Modified: / 12-10-2006 / 21:57:46 / ked" |
|
45 |
! |
|
46 |
||
47 |
isUpdatingExpression |
|
48 |
self children do: |
|
49 |
[:childNode|childNode isUpdatingExpression ifTrue:[^true]]. |
|
50 |
^ false. |
|
51 |
||
52 |
"Modified: / 21-11-2007 / 14:55:11 / janfrog" |
|
53 |
! ! |
|
54 |
||
55 |
!AstExpr methodsFor:'visiting'! |
|
56 |
||
57 |
acceptVisitor:aVisitor |
|
58 |
"Double dispatch back to the visitor, passing my type encoded in |
|
59 |
the selector (visitor pattern)" |
|
60 |
||
61 |
"stub code automatically generated - please change if required" |
|
62 |
||
63 |
^ aVisitor visitAstExpr:self |
|
64 |
||
65 |
"Created: / 06-07-2006 / 19:12:10 / ked" |
|
66 |
! ! |
|
67 |
||
68 |
!AstExpr class methodsFor:'documentation'! |
|
69 |
||
232
9d8fd28b99b0
branch datatypes reintegrated
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
0
diff
changeset
|
70 |
version_SVN |
9d8fd28b99b0
branch datatypes reintegrated
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
0
diff
changeset
|
71 |
^ '$Id$' |
0 | 72 |
! ! |