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-- |
235 | 1 |
"{ Package: 'stx:goodies/xmlsuite/xquery' }" |
2 |
||
3 |
"{ NameSpace: XQuery }" |
|
4 |
||
5 |
Perseus::VariableProxy subclass:#VariableProxy |
|
6 |
instanceVariableNames:'nativeContext' |
|
7 |
classVariableNames:'' |
|
8 |
poolDictionaries:'' |
|
9 |
category:'XQuery-Debugging-Model' |
|
10 |
! |
|
11 |
||
12 |
||
13 |
!VariableProxy methodsFor:'accessing'! |
|
14 |
||
15 |
name |
|
16 |
^ name |
|
17 |
||
18 |
"Created: / 18-09-2008 / 18:13:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
19 |
! |
|
20 |
||
21 |
name:something |
|
22 |
name := something. |
|
23 |
||
24 |
"Created: / 18-09-2008 / 18:13:56 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
25 |
! |
|
26 |
||
27 |
nativeContext |
|
28 |
^ nativeContext |
|
29 |
||
30 |
"Created: / 18-09-2008 / 18:13:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
31 |
! |
|
32 |
||
33 |
nativeContext:something |
|
34 |
nativeContext := something. |
|
35 |
||
36 |
"Created: / 18-09-2008 / 18:13:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
37 |
! |
|
38 |
||
39 |
typeName |
|
40 |
"Superclass Perseus::VariableProxy says that I am responsible to implement this method" |
|
41 |
||
249 | 42 |
^self value typeName |
235 | 43 |
|
44 |
"Created: / 18-09-2008 / 18:14:05 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
249 | 45 |
"Modified: / 20-04-2010 / 20:40:38 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
235 | 46 |
! |
47 |
||
48 |
value |
|
49 |
"Superclass Perseus::VariableProxy says that I am responsible to implement this method" |
|
50 |
||
51 |
^nativeContext variableAt: name |
|
52 |
||
53 |
"Created: / 18-09-2008 / 18:14:04 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
54 |
! |
|
55 |
||
56 |
value: anObject |
|
57 |
"Superclass Perseus::VariableProxy says that I am responsible to implement this method" |
|
58 |
||
59 |
^nativeContext variableAt: name put: anObject |
|
60 |
||
61 |
"Created: / 18-09-2008 / 18:14:04 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
249 | 62 |
! |
63 |
||
64 |
valueString |
|
65 |
||
66 |
| value | |
|
67 |
value := self value. |
|
68 |
^value isAtomicValue |
|
69 |
ifTrue:[value value printString] |
|
70 |
ifFalse:[value dmStringValue] |
|
71 |
||
72 |
"Created: / 20-04-2010 / 20:58:16 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
235 | 73 |
! ! |
74 |
||
251 | 75 |
!VariableProxy methodsFor:'converting'! |
76 |
||
77 |
asDocumentFragment |
|
78 |
||
79 |
^self value asDocumentFragment |
|
80 |
||
81 |
"Created: / 23-04-2010 / 11:46:21 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
82 |
! ! |
|
83 |
||
235 | 84 |
!VariableProxy class methodsFor:'documentation'! |
85 |
||
241
e28ef0f20186
Branch datatypes reintegrated
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
235
diff
changeset
|
86 |
version_SVN |
e28ef0f20186
Branch datatypes reintegrated
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
235
diff
changeset
|
87 |
^ '$Id$' |
235 | 88 |
! ! |