kwartz 3.0.0 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (179) hide show
  1. data/ChangeLog +36 -1
  2. data/LGPL +504 -0
  3. data/README.txt +16 -2
  4. data/bin/kwartz +1 -1
  5. data/doc-api/classes/Kwartz.html +47 -1
  6. data/doc-api/classes/Kwartz/Assertion.html +6 -6
  7. data/doc-api/classes/Kwartz/AssertionError.html +6 -6
  8. data/doc-api/classes/Kwartz/AttrInfo.html +42 -42
  9. data/doc-api/classes/Kwartz/BaseError.html +12 -12
  10. data/doc-api/classes/Kwartz/BaseTranslator.html +210 -43
  11. data/doc-api/classes/Kwartz/CharacterType.html +24 -24
  12. data/doc-api/classes/Kwartz/CommandOptionError.html +7 -7
  13. data/doc-api/classes/Kwartz/CommandOptions.html +49 -49
  14. data/doc-api/classes/Kwartz/Config.html +6 -1
  15. data/doc-api/classes/Kwartz/ConvertError.html +14 -14
  16. data/doc-api/classes/Kwartz/Converter.html +31 -30
  17. data/doc-api/classes/Kwartz/CssStyleParser.html +79 -57
  18. data/doc-api/classes/Kwartz/Defun.html +313 -0
  19. data/doc-api/classes/Kwartz/DocumentRuleset.html +58 -58
  20. data/doc-api/classes/Kwartz/ElementExpander.html +32 -32
  21. data/doc-api/classes/Kwartz/ElementInfo.html +29 -29
  22. data/doc-api/classes/Kwartz/ElementRuleset.html +126 -96
  23. data/doc-api/classes/Kwartz/EperlHandler.html +108 -84
  24. data/doc-api/classes/Kwartz/EperlTranslator.html +7 -7
  25. data/doc-api/classes/Kwartz/ErubisHandler.html +2 -2
  26. data/doc-api/classes/Kwartz/ErubisTranslator.html +8 -8
  27. data/doc-api/classes/Kwartz/ErubyHandler.html +2 -220
  28. data/doc-api/classes/Kwartz/ErubyTranslator.html +7 -7
  29. data/doc-api/classes/Kwartz/ExpandStatement.html +20 -20
  30. data/doc-api/classes/Kwartz/Handler.html +122 -117
  31. data/doc-api/classes/Kwartz/HandlerArgument.html +215 -0
  32. data/doc-api/classes/Kwartz/Helper.html +112 -0
  33. data/doc-api/classes/Kwartz/Helper/ActionViewHelper.html +221 -0
  34. data/doc-api/classes/Kwartz/Helper/RailsTemplate.html +630 -0
  35. data/doc-api/classes/Kwartz/JstlHandler.html +208 -193
  36. data/doc-api/classes/Kwartz/JstlTranslator.html +15 -15
  37. data/doc-api/classes/Kwartz/KwartzError.html +6 -6
  38. data/doc-api/classes/Kwartz/Main.html +39 -23
  39. data/doc-api/classes/Kwartz/NativeExpression.html +18 -18
  40. data/doc-api/classes/Kwartz/NativeStatement.html +25 -25
  41. data/doc-api/classes/Kwartz/Node.html +6 -6
  42. data/doc-api/classes/Kwartz/PIErubisHandler.html +113 -0
  43. data/doc-api/classes/Kwartz/PIErubisTranslator.html +200 -0
  44. data/doc-api/classes/Kwartz/ParseError.html +6 -6
  45. data/doc-api/classes/Kwartz/PhpHandler.html +102 -83
  46. data/doc-api/classes/Kwartz/PhpTranslator.html +14 -14
  47. data/doc-api/classes/Kwartz/PresentationLogicParser.html +136 -128
  48. data/doc-api/classes/Kwartz/PrintStatement.html +19 -19
  49. data/doc-api/classes/Kwartz/RailsHandler.html +121 -118
  50. data/doc-api/classes/Kwartz/RailsTranslator.html +7 -7
  51. data/doc-api/classes/Kwartz/RubyHandler.html +349 -0
  52. data/doc-api/classes/Kwartz/RubyStyleParser.html +85 -85
  53. data/doc-api/classes/Kwartz/RubyTranslator.html +218 -0
  54. data/doc-api/classes/Kwartz/StatementHelper.html +479 -0
  55. data/doc-api/classes/Kwartz/StrutsTranslator.html +12 -12
  56. data/doc-api/classes/Kwartz/TagInfo.html +28 -28
  57. data/doc-api/classes/Kwartz/TextConverter.html +28 -28
  58. data/doc-api/classes/Kwartz/Translator.html +42 -42
  59. data/doc-api/classes/Kwartz/Util.html +284 -0
  60. data/doc-api/created.rid +1 -1
  61. data/doc-api/files/__/README_txt.html +30 -3
  62. data/doc-api/files/kwartz/assert_rb.html +1 -1
  63. data/doc-api/files/kwartz/binding/eperl_rb.html +2 -2
  64. data/doc-api/files/kwartz/binding/erubis_rb.html +3 -3
  65. data/doc-api/files/kwartz/binding/eruby_rb.html +3 -2
  66. data/doc-api/files/kwartz/binding/jstl_rb.html +2 -2
  67. data/doc-api/files/kwartz/binding/php_rb.html +2 -2
  68. data/doc-api/files/kwartz/binding/pierubis_rb.html +116 -0
  69. data/doc-api/files/kwartz/binding/rails_rb.html +2 -2
  70. data/doc-api/files/kwartz/binding/ruby_rb.html +115 -0
  71. data/doc-api/files/kwartz/binding/struts_rb.html +1 -1
  72. data/doc-api/files/kwartz/config_rb.html +2 -2
  73. data/doc-api/files/kwartz/converter_rb.html +3 -2
  74. data/doc-api/files/kwartz/defun_rb.html +116 -0
  75. data/doc-api/files/kwartz/error_rb.html +1 -1
  76. data/doc-api/files/kwartz/helper/rails_rb.html +123 -0
  77. data/doc-api/files/kwartz/main_rb.html +5 -2
  78. data/doc-api/files/kwartz/node_rb.html +2 -2
  79. data/doc-api/files/kwartz/parser_rb.html +2 -2
  80. data/doc-api/files/kwartz/translator_rb.html +2 -2
  81. data/doc-api/files/kwartz/util/assert-text-equal_rb.html +1 -1
  82. data/doc-api/files/kwartz/util/testcase-helper_rb.html +2 -2
  83. data/doc-api/files/kwartz/util_rb.html +107 -0
  84. data/doc-api/files/kwartz_rb.html +3 -2
  85. data/doc-api/fr_class_index.html +11 -0
  86. data/doc-api/fr_file_index.html +5 -0
  87. data/doc-api/fr_method_index.html +242 -190
  88. data/doc/p-pattern.html +94 -94
  89. data/doc/reference.html +847 -612
  90. data/doc/users-guide.html +744 -241
  91. data/examples/rails1/README +2 -2
  92. data/examples/rails1/application_helper.rb +2 -27
  93. data/examples/rails1/link_to.plogic +5 -5
  94. data/examples/rails1/list.plogic +2 -2
  95. data/examples/rails2/app/controllers/application.rb +14 -0
  96. data/examples/rails2/app/controllers/groups_controller.rb +47 -0
  97. data/examples/rails2/app/controllers/members_controller.rb +56 -0
  98. data/examples/rails2/app/helpers/application_helper.rb +6 -0
  99. data/examples/rails2/app/helpers/groups_helper.rb +2 -0
  100. data/examples/rails2/app/helpers/members_helper.rb +2 -0
  101. data/examples/rails2/app/models/group.rb +2 -0
  102. data/examples/rails2/app/models/member.rb +3 -0
  103. data/examples/rails2/app/views/groups/_form.html +30 -0
  104. data/examples/rails2/app/views/groups/_form.plogic +11 -0
  105. data/examples/rails2/app/views/groups/_link.plogic +19 -0
  106. data/examples/rails2/app/views/groups/_read.plogic +7 -0
  107. data/examples/rails2/app/views/groups/edit.cfg.yaml +2 -0
  108. data/examples/rails2/app/views/groups/edit.html +26 -0
  109. data/examples/rails2/app/views/groups/edit.plogic +9 -0
  110. data/examples/rails2/app/views/groups/list.html +48 -0
  111. data/examples/rails2/app/views/groups/list.plogic +32 -0
  112. data/examples/rails2/app/views/groups/new.cfg.yaml +2 -0
  113. data/examples/rails2/app/views/groups/new.html +27 -0
  114. data/examples/rails2/app/views/groups/new.plogic +9 -0
  115. data/examples/rails2/app/views/groups/show.html +27 -0
  116. data/examples/rails2/app/views/groups/show.plogic +2 -0
  117. data/examples/rails2/app/views/layouts/groups.html +23 -0
  118. data/examples/rails2/app/views/layouts/groups.plogic +11 -0
  119. data/examples/rails2/app/views/layouts/members.html +23 -0
  120. data/examples/rails2/app/views/layouts/members.plogic +11 -0
  121. data/examples/rails2/app/views/layouts/members2.html +24 -0
  122. data/examples/rails2/app/views/layouts/members2.plogic +11 -0
  123. data/examples/rails2/app/views/members/_form.plogic +27 -0
  124. data/examples/rails2/app/views/members/_link.plogic +19 -0
  125. data/examples/rails2/app/views/members/_read.plogic +29 -0
  126. data/examples/rails2/app/views/members/edit.cfg.yaml +6 -0
  127. data/examples/rails2/app/views/members/edit.html +27 -0
  128. data/examples/rails2/app/views/members/edit.plogic +10 -0
  129. data/examples/rails2/app/views/members/list.html +53 -0
  130. data/examples/rails2/app/views/members/list.plogic +32 -0
  131. data/examples/rails2/app/views/members/new.html +61 -0
  132. data/examples/rails2/app/views/members/new.plogic +17 -0
  133. data/examples/rails2/app/views/members/show.html +41 -0
  134. data/examples/rails2/app/views/members/show.plogic +3 -0
  135. data/examples/rails2/db/create-tables.mysql.sql +27 -0
  136. data/examples/rails2/db/create-tables.pgsql.sql +27 -0
  137. data/examples/rails2/db/insert-data.sql +21 -0
  138. data/examples/rails2/db/tabledef.yaml +51 -0
  139. data/kwartz.gemspec +4 -4
  140. data/lib/kwartz.rb +10 -2
  141. data/lib/kwartz/assert.rb +1 -1
  142. data/lib/kwartz/binding/eperl.rb +85 -61
  143. data/lib/kwartz/binding/erubis.rb +6 -8
  144. data/lib/kwartz/binding/eruby.rb +5 -120
  145. data/lib/kwartz/binding/jstl.rb +116 -101
  146. data/lib/kwartz/binding/php.rb +79 -60
  147. data/lib/kwartz/binding/pierubis.rb +58 -0
  148. data/lib/kwartz/binding/rails.rb +45 -42
  149. data/lib/kwartz/binding/ruby.rb +193 -0
  150. data/lib/kwartz/binding/struts.rb +1 -1
  151. data/lib/kwartz/config.rb +4 -3
  152. data/lib/kwartz/converter.rb +231 -68
  153. data/lib/kwartz/defun.rb +126 -0
  154. data/lib/kwartz/error.rb +1 -1
  155. data/lib/kwartz/helper/rails.rb +437 -0
  156. data/lib/kwartz/main.rb +30 -38
  157. data/lib/kwartz/node.rb +46 -31
  158. data/lib/kwartz/parser.rb +43 -15
  159. data/lib/kwartz/translator.rb +104 -6
  160. data/lib/kwartz/util.rb +113 -0
  161. data/lib/kwartz/util/assert-text-equal.rb +1 -1
  162. data/lib/kwartz/util/testcase-helper.rb +26 -8
  163. data/test/test-compile.rb +3 -3
  164. data/test/test-compile.yaml +135 -5
  165. data/test/test-converter.rb +16 -8
  166. data/test/test-converter.yaml +307 -76
  167. data/test/test-directives.rb +1 -1
  168. data/test/test-directives.yaml +964 -979
  169. data/test/test-main.rb +61 -146
  170. data/test/test-main.yaml +235 -0
  171. data/test/test-parser.rb +10 -12
  172. data/test/test-parser.yaml +484 -326
  173. data/test/test-rails.rb +1 -1
  174. data/test/test-rails.yaml +37 -37
  175. data/test/test-ruleset.rb +1 -1
  176. data/test/test-ruleset.yaml +34 -40
  177. data/test/test.rb +1 -1
  178. metadata +82 -3
  179. data/COPYING +0 -340
@@ -94,7 +94,7 @@ command option error class
94
94
  <h3 class="section-bar">Methods</h3>
95
95
 
96
96
  <div class="name-list">
97
- <a href="#M000149">new</a>&nbsp;&nbsp;
97
+ <a href="#M000198">new</a>&nbsp;&nbsp;
98
98
  </div>
99
99
  </div>
100
100
 
@@ -116,21 +116,21 @@ command option error class
116
116
  <div id="methods">
117
117
  <h3 class="section-bar">Public Class methods</h3>
118
118
 
119
- <div id="method-M000149" class="method-detail">
120
- <a name="M000149"></a>
119
+ <div id="method-M000198" class="method-detail">
120
+ <a name="M000198"></a>
121
121
 
122
122
  <div class="method-heading">
123
- <a href="#M000149" class="method-signature">
123
+ <a href="#M000198" class="method-signature">
124
124
  <span class="method-name">new</span><span class="method-args">(message)</span>
125
125
  </a>
126
126
  </div>
127
127
 
128
128
  <div class="method-description">
129
129
  <p><a class="source-toggle" href="#"
130
- onclick="toggleCode('M000149-source');return false;">[Source]</a></p>
131
- <div class="method-source-code" id="M000149-source">
130
+ onclick="toggleCode('M000198-source');return false;">[Source]</a></p>
131
+ <div class="method-source-code" id="M000198-source">
132
132
  <pre>
133
- <span class="ruby-comment cmt"># File kwartz/main.rb, line 28</span>
133
+ <span class="ruby-comment cmt"># File kwartz/main.rb, line 31</span>
134
134
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">message</span>)
135
135
  <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">message</span>)
136
136
  <span class="ruby-keyword kw">end</span>
@@ -108,13 +108,13 @@ ex.
108
108
  <h3 class="section-bar">Methods</h3>
109
109
 
110
110
  <div class="name-list">
111
- <a href="#M000143">[]</a>&nbsp;&nbsp;
112
- <a href="#M000144">[]=</a>&nbsp;&nbsp;
113
- <a href="#M000146">char</a>&nbsp;&nbsp;
114
- <a href="#M000147">chr</a>&nbsp;&nbsp;
115
- <a href="#M000145">key?</a>&nbsp;&nbsp;
116
- <a href="#M000142">new</a>&nbsp;&nbsp;
117
- <a href="#M000148">parse_argv</a>&nbsp;&nbsp;
111
+ <a href="#M000192">[]</a>&nbsp;&nbsp;
112
+ <a href="#M000193">[]=</a>&nbsp;&nbsp;
113
+ <a href="#M000195">char</a>&nbsp;&nbsp;
114
+ <a href="#M000196">chr</a>&nbsp;&nbsp;
115
+ <a href="#M000194">key?</a>&nbsp;&nbsp;
116
+ <a href="#M000191">new</a>&nbsp;&nbsp;
117
+ <a href="#M000197">parse_argv</a>&nbsp;&nbsp;
118
118
  </div>
119
119
  </div>
120
120
 
@@ -136,21 +136,21 @@ ex.
136
136
  <div id="methods">
137
137
  <h3 class="section-bar">Public Class methods</h3>
138
138
 
139
- <div id="method-M000142" class="method-detail">
140
- <a name="M000142"></a>
139
+ <div id="method-M000191" class="method-detail">
140
+ <a name="M000191"></a>
141
141
 
142
142
  <div class="method-heading">
143
- <a href="#M000142" class="method-signature">
143
+ <a href="#M000191" class="method-signature">
144
144
  <span class="method-name">new</span><span class="method-args">(option_table, properties={})</span>
145
145
  </a>
146
146
  </div>
147
147
 
148
148
  <div class="method-description">
149
149
  <p><a class="source-toggle" href="#"
150
- onclick="toggleCode('M000142-source');return false;">[Source]</a></p>
151
- <div class="method-source-code" id="M000142-source">
150
+ onclick="toggleCode('M000191-source');return false;">[Source]</a></p>
151
+ <div class="method-source-code" id="M000191-source">
152
152
  <pre>
153
- <span class="ruby-comment cmt"># File kwartz/main.rb, line 54</span>
153
+ <span class="ruby-comment cmt"># File kwartz/main.rb, line 57</span>
154
154
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">option_table</span>, <span class="ruby-identifier">properties</span>={})
155
155
  <span class="ruby-ivar">@_option_table</span> = <span class="ruby-identifier">option_table</span>
156
156
  <span class="ruby-ivar">@_properties</span> = <span class="ruby-identifier">properties</span>
@@ -168,21 +168,21 @@ ex.
168
168
 
169
169
  <h3 class="section-bar">Public Instance methods</h3>
170
170
 
171
- <div id="method-M000143" class="method-detail">
172
- <a name="M000143"></a>
171
+ <div id="method-M000192" class="method-detail">
172
+ <a name="M000192"></a>
173
173
 
174
174
  <div class="method-heading">
175
- <a href="#M000143" class="method-signature">
175
+ <a href="#M000192" class="method-signature">
176
176
  <span class="method-name">[]</span><span class="method-args">(key)</span>
177
177
  </a>
178
178
  </div>
179
179
 
180
180
  <div class="method-description">
181
181
  <p><a class="source-toggle" href="#"
182
- onclick="toggleCode('M000143-source');return false;">[Source]</a></p>
183
- <div class="method-source-code" id="M000143-source">
182
+ onclick="toggleCode('M000192-source');return false;">[Source]</a></p>
183
+ <div class="method-source-code" id="M000192-source">
184
184
  <pre>
185
- <span class="ruby-comment cmt"># File kwartz/main.rb, line 75</span>
185
+ <span class="ruby-comment cmt"># File kwartz/main.rb, line 78</span>
186
186
  <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">key</span>)
187
187
  <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">key</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Fixnum</span>)
188
188
  <span class="ruby-identifier">entry</span> = <span class="ruby-identifier">_find_entry</span>(<span class="ruby-identifier">key</span>) <span class="ruby-keyword kw">or</span> <span class="ruby-keyword kw">return</span>
@@ -195,21 +195,21 @@ ex.
195
195
  </div>
196
196
  </div>
197
197
 
198
- <div id="method-M000144" class="method-detail">
199
- <a name="M000144"></a>
198
+ <div id="method-M000193" class="method-detail">
199
+ <a name="M000193"></a>
200
200
 
201
201
  <div class="method-heading">
202
- <a href="#M000144" class="method-signature">
202
+ <a href="#M000193" class="method-signature">
203
203
  <span class="method-name">[]=</span><span class="method-args">(key, val)</span>
204
204
  </a>
205
205
  </div>
206
206
 
207
207
  <div class="method-description">
208
208
  <p><a class="source-toggle" href="#"
209
- onclick="toggleCode('M000144-source');return false;">[Source]</a></p>
210
- <div class="method-source-code" id="M000144-source">
209
+ onclick="toggleCode('M000193-source');return false;">[Source]</a></p>
210
+ <div class="method-source-code" id="M000193-source">
211
211
  <pre>
212
- <span class="ruby-comment cmt"># File kwartz/main.rb, line 83</span>
212
+ <span class="ruby-comment cmt"># File kwartz/main.rb, line 86</span>
213
213
  <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]=</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">val</span>)
214
214
  <span class="ruby-identifier">instance_variable_set</span>(<span class="ruby-node">&quot;@#{key}&quot;</span>, <span class="ruby-identifier">val</span>)
215
215
  <span class="ruby-keyword kw">end</span>
@@ -218,21 +218,21 @@ ex.
218
218
  </div>
219
219
  </div>
220
220
 
221
- <div id="method-M000146" class="method-detail">
222
- <a name="M000146"></a>
221
+ <div id="method-M000195" class="method-detail">
222
+ <a name="M000195"></a>
223
223
 
224
224
  <div class="method-heading">
225
- <a href="#M000146" class="method-signature">
225
+ <a href="#M000195" class="method-signature">
226
226
  <span class="method-name">char</span><span class="method-args">(key)</span>
227
227
  </a>
228
228
  </div>
229
229
 
230
230
  <div class="method-description">
231
231
  <p><a class="source-toggle" href="#"
232
- onclick="toggleCode('M000146-source');return false;">[Source]</a></p>
233
- <div class="method-source-code" id="M000146-source">
232
+ onclick="toggleCode('M000195-source');return false;">[Source]</a></p>
233
+ <div class="method-source-code" id="M000195-source">
234
234
  <pre>
235
- <span class="ruby-comment cmt"># File kwartz/main.rb, line 91</span>
235
+ <span class="ruby-comment cmt"># File kwartz/main.rb, line 94</span>
236
236
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">char</span>(<span class="ruby-identifier">key</span>)
237
237
  <span class="ruby-identifier">entry</span> = <span class="ruby-identifier">_find_entry</span>(<span class="ruby-identifier">key</span>)
238
238
  <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">entry</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">entry</span>[<span class="ruby-value">0</span>]
@@ -242,21 +242,21 @@ ex.
242
242
  </div>
243
243
  </div>
244
244
 
245
- <div id="method-M000147" class="method-detail">
246
- <a name="M000147"></a>
245
+ <div id="method-M000196" class="method-detail">
246
+ <a name="M000196"></a>
247
247
 
248
248
  <div class="method-heading">
249
- <a href="#M000147" class="method-signature">
249
+ <a href="#M000196" class="method-signature">
250
250
  <span class="method-name">chr</span><span class="method-args">(key)</span>
251
251
  </a>
252
252
  </div>
253
253
 
254
254
  <div class="method-description">
255
255
  <p><a class="source-toggle" href="#"
256
- onclick="toggleCode('M000147-source');return false;">[Source]</a></p>
257
- <div class="method-source-code" id="M000147-source">
256
+ onclick="toggleCode('M000196-source');return false;">[Source]</a></p>
257
+ <div class="method-source-code" id="M000196-source">
258
258
  <pre>
259
- <span class="ruby-comment cmt"># File kwartz/main.rb, line 96</span>
259
+ <span class="ruby-comment cmt"># File kwartz/main.rb, line 99</span>
260
260
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chr</span>(<span class="ruby-identifier">key</span>)
261
261
  <span class="ruby-identifier">ch</span> = <span class="ruby-identifier">char</span>(<span class="ruby-identifier">key</span>)
262
262
  <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">ch</span> <span class="ruby-operator">?</span> <span class="ruby-identifier">ch</span>.<span class="ruby-identifier">chr</span> <span class="ruby-operator">:</span> <span class="ruby-value str">''</span>
@@ -266,21 +266,21 @@ ex.
266
266
  </div>
267
267
  </div>
268
268
 
269
- <div id="method-M000145" class="method-detail">
270
- <a name="M000145"></a>
269
+ <div id="method-M000194" class="method-detail">
270
+ <a name="M000194"></a>
271
271
 
272
272
  <div class="method-heading">
273
- <a href="#M000145" class="method-signature">
273
+ <a href="#M000194" class="method-signature">
274
274
  <span class="method-name">key?</span><span class="method-args">(key)</span>
275
275
  </a>
276
276
  </div>
277
277
 
278
278
  <div class="method-description">
279
279
  <p><a class="source-toggle" href="#"
280
- onclick="toggleCode('M000145-source');return false;">[Source]</a></p>
281
- <div class="method-source-code" id="M000145-source">
280
+ onclick="toggleCode('M000194-source');return false;">[Source]</a></p>
281
+ <div class="method-source-code" id="M000194-source">
282
282
  <pre>
283
- <span class="ruby-comment cmt"># File kwartz/main.rb, line 87</span>
283
+ <span class="ruby-comment cmt"># File kwartz/main.rb, line 90</span>
284
284
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">key?</span>(<span class="ruby-identifier">key</span>)
285
285
  <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">instance_variables</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-node">&quot;@#{key}&quot;</span>)
286
286
  <span class="ruby-keyword kw">end</span>
@@ -289,21 +289,21 @@ ex.
289
289
  </div>
290
290
  </div>
291
291
 
292
- <div id="method-M000148" class="method-detail">
293
- <a name="M000148"></a>
292
+ <div id="method-M000197" class="method-detail">
293
+ <a name="M000197"></a>
294
294
 
295
295
  <div class="method-heading">
296
- <a href="#M000148" class="method-signature">
296
+ <a href="#M000197" class="method-signature">
297
297
  <span class="method-name">parse_argv</span><span class="method-args">(argv)</span>
298
298
  </a>
299
299
  </div>
300
300
 
301
301
  <div class="method-description">
302
302
  <p><a class="source-toggle" href="#"
303
- onclick="toggleCode('M000148-source');return false;">[Source]</a></p>
304
- <div class="method-source-code" id="M000148-source">
303
+ onclick="toggleCode('M000197-source');return false;">[Source]</a></p>
304
+ <div class="method-source-code" id="M000197-source">
305
305
  <pre>
306
- <span class="ruby-comment cmt"># File kwartz/main.rb, line 101</span>
306
+ <span class="ruby-comment cmt"># File kwartz/main.rb, line 104</span>
307
307
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parse_argv</span>(<span class="ruby-identifier">argv</span>)
308
308
  <span class="ruby-identifier">properties</span> = <span class="ruby-ivar">@_properties</span>
309
309
  <span class="ruby-keyword kw">while</span> <span class="ruby-operator">!</span><span class="ruby-identifier">argv</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">argv</span>[<span class="ruby-value">0</span>][<span class="ruby-value">0</span>] <span class="ruby-operator">==</span> <span class="ruby-value">?-</span>
@@ -113,13 +113,18 @@
113
113
  <tr class="top-aligned-row context-row">
114
114
  <td class="context-item-name">PROPERTY_DATTR</td>
115
115
  <td>=</td>
116
- <td class="context-item-value">'title'</td>
116
+ <td class="context-item-value">'kw:d'</td>
117
117
  </tr>
118
118
  <tr class="top-aligned-row context-row">
119
119
  <td class="context-item-name">PROPERTY_DELSPAN</td>
120
120
  <td>=</td>
121
121
  <td class="context-item-value">false</td>
122
122
  </tr>
123
+ <tr class="top-aligned-row context-row">
124
+ <td class="context-item-name">PROPERTY_JSTL</td>
125
+ <td>=</td>
126
+ <td class="context-item-value">1.2</td>
127
+ </tr>
123
128
  <tr class="top-aligned-row context-row">
124
129
  <td class="context-item-name">NO_ETAGS</td>
125
130
  <td>=</td>
@@ -88,8 +88,8 @@
88
88
  <h3 class="section-bar">Methods</h3>
89
89
 
90
90
  <div class="name-list">
91
- <a href="#M000189">new</a>&nbsp;&nbsp;
92
- <a href="#M000190">to_s</a>&nbsp;&nbsp;
91
+ <a href="#M000241">new</a>&nbsp;&nbsp;
92
+ <a href="#M000242">to_s</a>&nbsp;&nbsp;
93
93
  </div>
94
94
  </div>
95
95
 
@@ -124,21 +124,21 @@
124
124
  <div id="methods">
125
125
  <h3 class="section-bar">Public Class methods</h3>
126
126
 
127
- <div id="method-M000189" class="method-detail">
128
- <a name="M000189"></a>
127
+ <div id="method-M000241" class="method-detail">
128
+ <a name="M000241"></a>
129
129
 
130
130
  <div class="method-heading">
131
- <a href="#M000189" class="method-signature">
131
+ <a href="#M000241" class="method-signature">
132
132
  <span class="method-name">new</span><span class="method-args">(message, filename, linenum)</span>
133
133
  </a>
134
134
  </div>
135
135
 
136
136
  <div class="method-description">
137
137
  <p><a class="source-toggle" href="#"
138
- onclick="toggleCode('M000189-source');return false;">[Source]</a></p>
139
- <div class="method-source-code" id="M000189-source">
138
+ onclick="toggleCode('M000241-source');return false;">[Source]</a></p>
139
+ <div class="method-source-code" id="M000241-source">
140
140
  <pre>
141
- <span class="ruby-comment cmt"># File kwartz/converter.rb, line 23</span>
141
+ <span class="ruby-comment cmt"># File kwartz/converter.rb, line 24</span>
142
142
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">message</span>, <span class="ruby-identifier">filename</span>, <span class="ruby-identifier">linenum</span>)
143
143
  <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">message</span>)
144
144
  <span class="ruby-ivar">@filename</span> = <span class="ruby-identifier">filename</span>
@@ -151,21 +151,21 @@
151
151
 
152
152
  <h3 class="section-bar">Public Instance methods</h3>
153
153
 
154
- <div id="method-M000190" class="method-detail">
155
- <a name="M000190"></a>
154
+ <div id="method-M000242" class="method-detail">
155
+ <a name="M000242"></a>
156
156
 
157
157
  <div class="method-heading">
158
- <a href="#M000190" class="method-signature">
158
+ <a href="#M000242" class="method-signature">
159
159
  <span class="method-name">to_s</span><span class="method-args">()</span>
160
160
  </a>
161
161
  </div>
162
162
 
163
163
  <div class="method-description">
164
164
  <p><a class="source-toggle" href="#"
165
- onclick="toggleCode('M000190-source');return false;">[Source]</a></p>
166
- <div class="method-source-code" id="M000190-source">
165
+ onclick="toggleCode('M000242-source');return false;">[Source]</a></p>
166
+ <div class="method-source-code" id="M000242-source">
167
167
  <pre>
168
- <span class="ruby-comment cmt"># File kwartz/converter.rb, line 32</span>
168
+ <span class="ruby-comment cmt"># File kwartz/converter.rb, line 33</span>
169
169
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
170
170
  <span class="ruby-identifier">s</span> = <span class="ruby-keyword kw">super</span>
171
171
  <span class="ruby-keyword kw">return</span> <span class="ruby-node">&quot;#{@filename}:#{@linenum}: #{s}&quot;</span>
@@ -80,7 +80,7 @@
80
80
 
81
81
  <div id="description">
82
82
  <p>
83
- .[abstract] covnert presentation data into list of <a
83
+ (abstract) covnert presentation data into list of <a
84
84
  href="Statement.html">Statement</a>.
85
85
  </p>
86
86
 
@@ -93,10 +93,10 @@ href="Statement.html">Statement</a>.
93
93
  <h3 class="section-bar">Methods</h3>
94
94
 
95
95
  <div class="name-list">
96
- <a href="#M000110">convert</a>&nbsp;&nbsp;
97
- <a href="#M000112">get_class</a>&nbsp;&nbsp;
98
- <a href="#M000109">new</a>&nbsp;&nbsp;
99
- <a href="#M000111">register_class</a>&nbsp;&nbsp;
96
+ <a href="#M000152">convert</a>&nbsp;&nbsp;
97
+ <a href="#M000154">get_class</a>&nbsp;&nbsp;
98
+ <a href="#M000151">new</a>&nbsp;&nbsp;
99
+ <a href="#M000153">register_class</a>&nbsp;&nbsp;
100
100
  </div>
101
101
  </div>
102
102
 
@@ -109,6 +109,7 @@ href="Statement.html">Statement</a>.
109
109
 
110
110
  <div id="includes-list">
111
111
  <span class="include-name">ConverterHelper</span>
112
+ <span class="include-name"><a href="StatementHelper.html">StatementHelper</a></span>
112
113
  </div>
113
114
  </div>
114
115
 
@@ -138,21 +139,21 @@ href="Statement.html">Statement</a>.
138
139
  <div id="methods">
139
140
  <h3 class="section-bar">Public Class methods</h3>
140
141
 
141
- <div id="method-M000112" class="method-detail">
142
- <a name="M000112"></a>
142
+ <div id="method-M000154" class="method-detail">
143
+ <a name="M000154"></a>
143
144
 
144
145
  <div class="method-heading">
145
- <a href="#M000112" class="method-signature">
146
+ <a href="#M000154" class="method-signature">
146
147
  <span class="method-name">get_class</span><span class="method-args">(style)</span>
147
148
  </a>
148
149
  </div>
149
150
 
150
151
  <div class="method-description">
151
152
  <p><a class="source-toggle" href="#"
152
- onclick="toggleCode('M000112-source');return false;">[Source]</a></p>
153
- <div class="method-source-code" id="M000112-source">
153
+ onclick="toggleCode('M000154-source');return false;">[Source]</a></p>
154
+ <div class="method-source-code" id="M000154-source">
154
155
  <pre>
155
- <span class="ruby-comment cmt"># File kwartz/converter.rb, line 679</span>
156
+ <span class="ruby-comment cmt"># File kwartz/converter.rb, line 838</span>
156
157
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">get_class</span>(<span class="ruby-identifier">style</span>)
157
158
  <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@@class_table</span>[<span class="ruby-identifier">style</span>]
158
159
  <span class="ruby-keyword kw">end</span>
@@ -161,21 +162,21 @@ href="Statement.html">Statement</a>.
161
162
  </div>
162
163
  </div>
163
164
 
164
- <div id="method-M000109" class="method-detail">
165
- <a name="M000109"></a>
165
+ <div id="method-M000151" class="method-detail">
166
+ <a name="M000151"></a>
166
167
 
167
168
  <div class="method-heading">
168
- <a href="#M000109" class="method-signature">
169
+ <a href="#M000151" class="method-signature">
169
170
  <span class="method-name">new</span><span class="method-args">(handler, properties={})</span>
170
171
  </a>
171
172
  </div>
172
173
 
173
174
  <div class="method-description">
174
175
  <p><a class="source-toggle" href="#"
175
- onclick="toggleCode('M000109-source');return false;">[Source]</a></p>
176
- <div class="method-source-code" id="M000109-source">
176
+ onclick="toggleCode('M000151-source');return false;">[Source]</a></p>
177
+ <div class="method-source-code" id="M000151-source">
177
178
  <pre>
178
- <span class="ruby-comment cmt"># File kwartz/converter.rb, line 657</span>
179
+ <span class="ruby-comment cmt"># File kwartz/converter.rb, line 816</span>
179
180
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">handler</span>, <span class="ruby-identifier">properties</span>={})
180
181
  <span class="ruby-ivar">@handler</span> = <span class="ruby-identifier">handler</span>
181
182
  <span class="ruby-ivar">@handler</span>.<span class="ruby-identifier">converter</span> = <span class="ruby-keyword kw">self</span>
@@ -185,21 +186,21 @@ href="Statement.html">Statement</a>.
185
186
  </div>
186
187
  </div>
187
188
 
188
- <div id="method-M000111" class="method-detail">
189
- <a name="M000111"></a>
189
+ <div id="method-M000153" class="method-detail">
190
+ <a name="M000153"></a>
190
191
 
191
192
  <div class="method-heading">
192
- <a href="#M000111" class="method-signature">
193
+ <a href="#M000153" class="method-signature">
193
194
  <span class="method-name">register_class</span><span class="method-args">(style, klass)</span>
194
195
  </a>
195
196
  </div>
196
197
 
197
198
  <div class="method-description">
198
199
  <p><a class="source-toggle" href="#"
199
- onclick="toggleCode('M000111-source');return false;">[Source]</a></p>
200
- <div class="method-source-code" id="M000111-source">
200
+ onclick="toggleCode('M000153-source');return false;">[Source]</a></p>
201
+ <div class="method-source-code" id="M000153-source">
201
202
  <pre>
202
- <span class="ruby-comment cmt"># File kwartz/converter.rb, line 674</span>
203
+ <span class="ruby-comment cmt"># File kwartz/converter.rb, line 833</span>
203
204
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">register_class</span>(<span class="ruby-identifier">style</span>, <span class="ruby-identifier">klass</span>)
204
205
  <span class="ruby-ivar">@@class_table</span>[<span class="ruby-identifier">style</span>] = <span class="ruby-identifier">klass</span>
205
206
  <span class="ruby-keyword kw">end</span>
@@ -210,25 +211,25 @@ href="Statement.html">Statement</a>.
210
211
 
211
212
  <h3 class="section-bar">Public Instance methods</h3>
212
213
 
213
- <div id="method-M000110" class="method-detail">
214
- <a name="M000110"></a>
214
+ <div id="method-M000152" class="method-detail">
215
+ <a name="M000152"></a>
215
216
 
216
217
  <div class="method-heading">
217
- <a href="#M000110" class="method-signature">
218
+ <a href="#M000152" class="method-signature">
218
219
  <span class="method-name">convert</span><span class="method-args">(input, filename='')</span>
219
220
  </a>
220
221
  </div>
221
222
 
222
223
  <div class="method-description">
223
224
  <p>
224
- .[abstract] convert string into list of <a
225
+ (abstract) convert string into list of <a
225
226
  href="Statement.html">Statement</a>.
226
227
  </p>
227
228
  <p><a class="source-toggle" href="#"
228
- onclick="toggleCode('M000110-source');return false;">[Source]</a></p>
229
- <div class="method-source-code" id="M000110-source">
229
+ onclick="toggleCode('M000152-source');return false;">[Source]</a></p>
230
+ <div class="method-source-code" id="M000152-source">
230
231
  <pre>
231
- <span class="ruby-comment cmt"># File kwartz/converter.rb, line 666</span>
232
+ <span class="ruby-comment cmt"># File kwartz/converter.rb, line 825</span>
232
233
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">convert</span>(<span class="ruby-identifier">input</span>, <span class="ruby-identifier">filename</span>=<span class="ruby-value str">''</span>)
233
234
  <span class="ruby-identifier">not_implemented</span>
234
235
  <span class="ruby-keyword kw">end</span>