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
@@ -95,13 +95,13 @@ file
95
95
  <h3 class="section-bar">Methods</h3>
96
96
 
97
97
  <div class="name-list">
98
- <a href="#M000016">_inspect</a>&nbsp;&nbsp;
99
- <a href="#M000010">new</a>&nbsp;&nbsp;
100
- <a href="#M000014">set_begin</a>&nbsp;&nbsp;
101
- <a href="#M000015">set_end</a>&nbsp;&nbsp;
102
- <a href="#M000013">set_fixture</a>&nbsp;&nbsp;
103
- <a href="#M000011">set_global</a>&nbsp;&nbsp;
104
- <a href="#M000012">set_local</a>&nbsp;&nbsp;
98
+ <a href="#M000056">_inspect</a>&nbsp;&nbsp;
99
+ <a href="#M000050">new</a>&nbsp;&nbsp;
100
+ <a href="#M000054">set_begin</a>&nbsp;&nbsp;
101
+ <a href="#M000055">set_end</a>&nbsp;&nbsp;
102
+ <a href="#M000053">set_fixture</a>&nbsp;&nbsp;
103
+ <a href="#M000051">set_global</a>&nbsp;&nbsp;
104
+ <a href="#M000052">set_local</a>&nbsp;&nbsp;
105
105
  </div>
106
106
  </div>
107
107
 
@@ -161,21 +161,21 @@ file
161
161
  <div id="methods">
162
162
  <h3 class="section-bar">Public Class methods</h3>
163
163
 
164
- <div id="method-M000010" class="method-detail">
165
- <a name="M000010"></a>
164
+ <div id="method-M000050" class="method-detail">
165
+ <a name="M000050"></a>
166
166
 
167
167
  <div class="method-heading">
168
- <a href="#M000010" class="method-signature">
168
+ <a href="#M000050" class="method-signature">
169
169
  <span class="method-name">new</span><span class="method-args">(name='DOCUMENT')</span>
170
170
  </a>
171
171
  </div>
172
172
 
173
173
  <div class="method-description">
174
174
  <p><a class="source-toggle" href="#"
175
- onclick="toggleCode('M000010-source');return false;">[Source]</a></p>
176
- <div class="method-source-code" id="M000010-source">
175
+ onclick="toggleCode('M000050-source');return false;">[Source]</a></p>
176
+ <div class="method-source-code" id="M000050-source">
177
177
  <pre>
178
- <span class="ruby-comment cmt"># File kwartz/node.rb, line 371</span>
178
+ <span class="ruby-comment cmt"># File kwartz/node.rb, line 382</span>
179
179
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">name</span>=<span class="ruby-value str">'DOCUMENT'</span>)
180
180
  <span class="ruby-ivar">@name</span> = <span class="ruby-identifier">name</span>
181
181
  <span class="ruby-keyword kw">end</span>
@@ -186,47 +186,47 @@ file
186
186
 
187
187
  <h3 class="section-bar">Public Instance methods</h3>
188
188
 
189
- <div id="method-M000016" class="method-detail">
190
- <a name="M000016"></a>
189
+ <div id="method-M000056" class="method-detail">
190
+ <a name="M000056"></a>
191
191
 
192
192
  <div class="method-heading">
193
- <a href="#M000016" class="method-signature">
193
+ <a href="#M000056" class="method-signature">
194
194
  <span class="method-name">_inspect</span><span class="method-args">(indent=0)</span>
195
195
  </a>
196
196
  </div>
197
197
 
198
198
  <div class="method-description">
199
199
  <p><a class="source-toggle" href="#"
200
- onclick="toggleCode('M000016-source');return false;">[Source]</a></p>
201
- <div class="method-source-code" id="M000016-source">
200
+ onclick="toggleCode('M000056-source');return false;">[Source]</a></p>
201
+ <div class="method-source-code" id="M000056-source">
202
202
  <pre>
203
- <span class="ruby-comment cmt"># File kwartz/node.rb, line 417</span>
203
+ <span class="ruby-comment cmt"># File kwartz/node.rb, line 432</span>
204
204
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">_inspect</span>(<span class="ruby-identifier">indent</span>=<span class="ruby-value">0</span>)
205
205
  <span class="ruby-identifier">space</span> = <span class="ruby-value str">' '</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">indent</span>
206
206
  <span class="ruby-identifier">sb</span> = []
207
- <span class="ruby-identifier">sb</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">space</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;name: #{@name.inspect}\n&quot;</span>
207
+ <span class="ruby-identifier">sb</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">space</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;- name: #{@name}\n&quot;</span>
208
208
  <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@global</span>
209
- <span class="ruby-identifier">sb</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">space</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;global:\n&quot;</span>
209
+ <span class="ruby-identifier">sb</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">space</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot; global:\n&quot;</span>
210
210
  <span class="ruby-ivar">@global</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">item</span><span class="ruby-operator">|</span>
211
- <span class="ruby-identifier">sb</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">space</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot; - #{item}\n&quot;</span>
211
+ <span class="ruby-identifier">sb</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">space</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot; - #{item}\n&quot;</span>
212
212
  <span class="ruby-keyword kw">end</span>
213
213
  <span class="ruby-keyword kw">end</span>
214
214
  <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@local</span>
215
- <span class="ruby-identifier">sb</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">space</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;local:\n&quot;</span>
215
+ <span class="ruby-identifier">sb</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">space</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot; local:\n&quot;</span>
216
216
  <span class="ruby-ivar">@local</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">item</span><span class="ruby-operator">|</span>
217
- <span class="ruby-identifier">sb</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">space</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot; - #{item}\n&quot;</span>
217
+ <span class="ruby-identifier">sb</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">space</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot; - #{item}\n&quot;</span>
218
218
  <span class="ruby-keyword kw">end</span>
219
219
  <span class="ruby-keyword kw">end</span>
220
220
  <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@begin</span>
221
- <span class="ruby-identifier">sb</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">space</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;begin:\n&quot;</span>
221
+ <span class="ruby-identifier">sb</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">space</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot; begin:\n&quot;</span>
222
222
  <span class="ruby-ivar">@begin</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">stmt</span><span class="ruby-operator">|</span>
223
- <span class="ruby-identifier">sb</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">space</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot; - #{stmt._inspect}\n&quot;</span>
223
+ <span class="ruby-identifier">sb</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">space</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot; - #{stmt._inspect}&quot;</span>
224
224
  <span class="ruby-keyword kw">end</span>
225
225
  <span class="ruby-keyword kw">end</span>
226
226
  <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@end</span>
227
- <span class="ruby-identifier">sb</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">space</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;end:\n&quot;</span>
227
+ <span class="ruby-identifier">sb</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">space</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot; end:\n&quot;</span>
228
228
  <span class="ruby-ivar">@end</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">stmt</span><span class="ruby-operator">|</span>
229
- <span class="ruby-identifier">sb</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">space</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot; - #{stmt._inspect}\n&quot;</span>
229
+ <span class="ruby-identifier">sb</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">space</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot; - #{stmt._inspect}&quot;</span>
230
230
  <span class="ruby-keyword kw">end</span>
231
231
  <span class="ruby-keyword kw">end</span>
232
232
  <span class="ruby-comment cmt">#</span>
@@ -237,21 +237,21 @@ file
237
237
  </div>
238
238
  </div>
239
239
 
240
- <div id="method-M000014" class="method-detail">
241
- <a name="M000014"></a>
240
+ <div id="method-M000054" class="method-detail">
241
+ <a name="M000054"></a>
242
242
 
243
243
  <div class="method-heading">
244
- <a href="#M000014" class="method-signature">
244
+ <a href="#M000054" class="method-signature">
245
245
  <span class="method-name">set_begin</span><span class="method-args">(str)</span>
246
246
  </a>
247
247
  </div>
248
248
 
249
249
  <div class="method-description">
250
250
  <p><a class="source-toggle" href="#"
251
- onclick="toggleCode('M000014-source');return false;">[Source]</a></p>
252
- <div class="method-source-code" id="M000014-source">
251
+ onclick="toggleCode('M000054-source');return false;">[Source]</a></p>
252
+ <div class="method-source-code" id="M000054-source">
253
253
  <pre>
254
- <span class="ruby-comment cmt"># File kwartz/node.rb, line 388</span>
254
+ <span class="ruby-comment cmt"># File kwartz/node.rb, line 399</span>
255
255
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_begin</span>(<span class="ruby-identifier">str</span>)
256
256
  <span class="ruby-identifier">stmt_list</span> = <span class="ruby-identifier">_parse_stmts</span>(<span class="ruby-identifier">str</span>)
257
257
  <span class="ruby-ivar">@begin</span> = <span class="ruby-identifier">stmt_list</span>
@@ -261,21 +261,21 @@ file
261
261
  </div>
262
262
  </div>
263
263
 
264
- <div id="method-M000015" class="method-detail">
265
- <a name="M000015"></a>
264
+ <div id="method-M000055" class="method-detail">
265
+ <a name="M000055"></a>
266
266
 
267
267
  <div class="method-heading">
268
- <a href="#M000015" class="method-signature">
268
+ <a href="#M000055" class="method-signature">
269
269
  <span class="method-name">set_end</span><span class="method-args">(str)</span>
270
270
  </a>
271
271
  </div>
272
272
 
273
273
  <div class="method-description">
274
274
  <p><a class="source-toggle" href="#"
275
- onclick="toggleCode('M000015-source');return false;">[Source]</a></p>
276
- <div class="method-source-code" id="M000015-source">
275
+ onclick="toggleCode('M000055-source');return false;">[Source]</a></p>
276
+ <div class="method-source-code" id="M000055-source">
277
277
  <pre>
278
- <span class="ruby-comment cmt"># File kwartz/node.rb, line 393</span>
278
+ <span class="ruby-comment cmt"># File kwartz/node.rb, line 404</span>
279
279
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_end</span>(<span class="ruby-identifier">str</span>)
280
280
  <span class="ruby-identifier">stmt_list</span> = <span class="ruby-identifier">_parse_stmts</span>(<span class="ruby-identifier">str</span>)
281
281
  <span class="ruby-ivar">@end</span> = <span class="ruby-identifier">stmt_list</span>
@@ -285,21 +285,21 @@ file
285
285
  </div>
286
286
  </div>
287
287
 
288
- <div id="method-M000013" class="method-detail">
289
- <a name="M000013"></a>
288
+ <div id="method-M000053" class="method-detail">
289
+ <a name="M000053"></a>
290
290
 
291
291
  <div class="method-heading">
292
- <a href="#M000013" class="method-signature">
292
+ <a href="#M000053" class="method-signature">
293
293
  <span class="method-name">set_fixture</span><span class="method-args">(str)</span>
294
294
  </a>
295
295
  </div>
296
296
 
297
297
  <div class="method-description">
298
298
  <p><a class="source-toggle" href="#"
299
- onclick="toggleCode('M000013-source');return false;">[Source]</a></p>
300
- <div class="method-source-code" id="M000013-source">
299
+ onclick="toggleCode('M000053-source');return false;">[Source]</a></p>
300
+ <div class="method-source-code" id="M000053-source">
301
301
  <pre>
302
- <span class="ruby-comment cmt"># File kwartz/node.rb, line 384</span>
302
+ <span class="ruby-comment cmt"># File kwartz/node.rb, line 395</span>
303
303
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_fixture</span>(<span class="ruby-identifier">str</span>)
304
304
  <span class="ruby-ivar">@fixture</span> = <span class="ruby-constant">NativeStatement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">str</span>.<span class="ruby-identifier">chomp</span>, <span class="ruby-keyword kw">nil</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">str</span>
305
305
  <span class="ruby-keyword kw">end</span>
@@ -308,21 +308,21 @@ file
308
308
  </div>
309
309
  </div>
310
310
 
311
- <div id="method-M000011" class="method-detail">
312
- <a name="M000011"></a>
311
+ <div id="method-M000051" class="method-detail">
312
+ <a name="M000051"></a>
313
313
 
314
314
  <div class="method-heading">
315
- <a href="#M000011" class="method-signature">
315
+ <a href="#M000051" class="method-signature">
316
316
  <span class="method-name">set_global</span><span class="method-args">(list)</span>
317
317
  </a>
318
318
  </div>
319
319
 
320
320
  <div class="method-description">
321
321
  <p><a class="source-toggle" href="#"
322
- onclick="toggleCode('M000011-source');return false;">[Source]</a></p>
323
- <div class="method-source-code" id="M000011-source">
322
+ onclick="toggleCode('M000051-source');return false;">[Source]</a></p>
323
+ <div class="method-source-code" id="M000051-source">
324
324
  <pre>
325
- <span class="ruby-comment cmt"># File kwartz/node.rb, line 376</span>
325
+ <span class="ruby-comment cmt"># File kwartz/node.rb, line 387</span>
326
326
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_global</span>(<span class="ruby-identifier">list</span>)
327
327
  <span class="ruby-ivar">@global</span> = <span class="ruby-identifier">list</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">list</span>
328
328
  <span class="ruby-keyword kw">end</span>
@@ -331,21 +331,21 @@ file
331
331
  </div>
332
332
  </div>
333
333
 
334
- <div id="method-M000012" class="method-detail">
335
- <a name="M000012"></a>
334
+ <div id="method-M000052" class="method-detail">
335
+ <a name="M000052"></a>
336
336
 
337
337
  <div class="method-heading">
338
- <a href="#M000012" class="method-signature">
338
+ <a href="#M000052" class="method-signature">
339
339
  <span class="method-name">set_local</span><span class="method-args">(list)</span>
340
340
  </a>
341
341
  </div>
342
342
 
343
343
  <div class="method-description">
344
344
  <p><a class="source-toggle" href="#"
345
- onclick="toggleCode('M000012-source');return false;">[Source]</a></p>
346
- <div class="method-source-code" id="M000012-source">
345
+ onclick="toggleCode('M000052-source');return false;">[Source]</a></p>
346
+ <div class="method-source-code" id="M000052-source">
347
347
  <pre>
348
- <span class="ruby-comment cmt"># File kwartz/node.rb, line 380</span>
348
+ <span class="ruby-comment cmt"># File kwartz/node.rb, line 391</span>
349
349
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_local</span>(<span class="ruby-identifier">list</span>)
350
350
  <span class="ruby-ivar">@local</span> = <span class="ruby-identifier">list</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">list</span>
351
351
  <span class="ruby-keyword kw">end</span>
@@ -74,8 +74,8 @@
74
74
 
75
75
  <div id="description">
76
76
  <p>
77
- .[abstract] expand <a href="ExpandStatement.html">ExpandStatement</a> and
78
- <a href="ElementInfo.html">ElementInfo</a>
77
+ (abstract) expand <a href="ExpandStatement.html">ExpandStatement</a> and <a
78
+ href="ElementInfo.html">ElementInfo</a>
79
79
  </p>
80
80
  <p>
81
81
  <a href="Handler.html">Handler</a> class includes this module.
@@ -90,10 +90,10 @@
90
90
  <h3 class="section-bar">Methods</h3>
91
91
 
92
92
  <div class="name-list">
93
- <a href="#M000008">expand_element_info</a>&nbsp;&nbsp;
94
- <a href="#M000009">expand_statement</a>&nbsp;&nbsp;
95
- <a href="#M000007">get_element_info</a>&nbsp;&nbsp;
96
- <a href="#M000006">get_element_ruleset</a>&nbsp;&nbsp;
93
+ <a href="#M000048">expand_element_info</a>&nbsp;&nbsp;
94
+ <a href="#M000049">expand_statement</a>&nbsp;&nbsp;
95
+ <a href="#M000047">get_element_info</a>&nbsp;&nbsp;
96
+ <a href="#M000046">get_element_ruleset</a>&nbsp;&nbsp;
97
97
  </div>
98
98
  </div>
99
99
 
@@ -122,11 +122,11 @@
122
122
  <div id="methods">
123
123
  <h3 class="section-bar">Public Instance methods</h3>
124
124
 
125
- <div id="method-M000008" class="method-detail">
126
- <a name="M000008"></a>
125
+ <div id="method-M000048" class="method-detail">
126
+ <a name="M000048"></a>
127
127
 
128
128
  <div class="method-heading">
129
- <a href="#M000008" class="method-signature">
129
+ <a href="#M000048" class="method-signature">
130
130
  <span class="method-name">expand_element_info</span><span class="method-args">(elem_info, stmt_list, content_only=false)</span>
131
131
  </a>
132
132
  </div>
@@ -136,10 +136,10 @@
136
136
  expand <a href="ElementInfo.html">ElementInfo</a>
137
137
  </p>
138
138
  <p><a class="source-toggle" href="#"
139
- onclick="toggleCode('M000008-source');return false;">[Source]</a></p>
140
- <div class="method-source-code" id="M000008-source">
139
+ onclick="toggleCode('M000048-source');return false;">[Source]</a></p>
140
+ <div class="method-source-code" id="M000048-source">
141
141
  <pre>
142
- <span class="ruby-comment cmt"># File kwartz/converter.rb, line 340</span>
142
+ <span class="ruby-comment cmt"># File kwartz/converter.rb, line 446</span>
143
143
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">expand_element_info</span>(<span class="ruby-identifier">elem_info</span>, <span class="ruby-identifier">stmt_list</span>, <span class="ruby-identifier">content_only</span>=<span class="ruby-keyword kw">false</span>)
144
144
  <span class="ruby-comment cmt">#elem_ruleset = @ruleset_table[elem_info.name]</span>
145
145
  <span class="ruby-identifier">elem_ruleset</span> = <span class="ruby-identifier">get_element_ruleset</span>(<span class="ruby-identifier">elem_info</span>.<span class="ruby-identifier">name</span>)
@@ -164,11 +164,11 @@ expand <a href="ElementInfo.html">ElementInfo</a>
164
164
  </div>
165
165
  </div>
166
166
 
167
- <div id="method-M000009" class="method-detail">
168
- <a name="M000009"></a>
167
+ <div id="method-M000049" class="method-detail">
168
+ <a name="M000049"></a>
169
169
 
170
170
  <div class="method-heading">
171
- <a href="#M000009" class="method-signature">
171
+ <a href="#M000049" class="method-signature">
172
172
  <span class="method-name">expand_statement</span><span class="method-args">(stmt, stmt_list, elem_info)</span>
173
173
  </a>
174
174
  </div>
@@ -178,10 +178,10 @@ expand <a href="ElementInfo.html">ElementInfo</a>
178
178
  expand <a href="ExpandStatement.html">ExpandStatement</a>
179
179
  </p>
180
180
  <p><a class="source-toggle" href="#"
181
- onclick="toggleCode('M000009-source');return false;">[Source]</a></p>
182
- <div class="method-source-code" id="M000009-source">
181
+ onclick="toggleCode('M000049-source');return false;">[Source]</a></p>
182
+ <div class="method-source-code" id="M000049-source">
183
183
  <pre>
184
- <span class="ruby-comment cmt"># File kwartz/converter.rb, line 362</span>
184
+ <span class="ruby-comment cmt"># File kwartz/converter.rb, line 468</span>
185
185
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">expand_statement</span>(<span class="ruby-identifier">stmt</span>, <span class="ruby-identifier">stmt_list</span>, <span class="ruby-identifier">elem_info</span>)
186
186
 
187
187
  <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">stmt</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">ExpandStatement</span>)
@@ -258,24 +258,24 @@ expand <a href="ExpandStatement.html">ExpandStatement</a>
258
258
  </div>
259
259
  </div>
260
260
 
261
- <div id="method-M000007" class="method-detail">
262
- <a name="M000007"></a>
261
+ <div id="method-M000047" class="method-detail">
262
+ <a name="M000047"></a>
263
263
 
264
264
  <div class="method-heading">
265
- <a href="#M000007" class="method-signature">
265
+ <a href="#M000047" class="method-signature">
266
266
  <span class="method-name">get_element_info</span><span class="method-args">(name)</span>
267
267
  </a>
268
268
  </div>
269
269
 
270
270
  <div class="method-description">
271
271
  <p>
272
- .[abstract] get <a href="ElementInfo.html">ElementInfo</a>
272
+ (abstract) get <a href="ElementInfo.html">ElementInfo</a>
273
273
  </p>
274
274
  <p><a class="source-toggle" href="#"
275
- onclick="toggleCode('M000007-source');return false;">[Source]</a></p>
276
- <div class="method-source-code" id="M000007-source">
275
+ onclick="toggleCode('M000047-source');return false;">[Source]</a></p>
276
+ <div class="method-source-code" id="M000047-source">
277
277
  <pre>
278
- <span class="ruby-comment cmt"># File kwartz/converter.rb, line 334</span>
278
+ <span class="ruby-comment cmt"># File kwartz/converter.rb, line 440</span>
279
279
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_element_info</span>(<span class="ruby-identifier">name</span>)
280
280
  <span class="ruby-identifier">not_implemented</span>
281
281
  <span class="ruby-keyword kw">end</span>
@@ -284,24 +284,24 @@ expand <a href="ExpandStatement.html">ExpandStatement</a>
284
284
  </div>
285
285
  </div>
286
286
 
287
- <div id="method-M000006" class="method-detail">
288
- <a name="M000006"></a>
287
+ <div id="method-M000046" class="method-detail">
288
+ <a name="M000046"></a>
289
289
 
290
290
  <div class="method-heading">
291
- <a href="#M000006" class="method-signature">
291
+ <a href="#M000046" class="method-signature">
292
292
  <span class="method-name">get_element_ruleset</span><span class="method-args">(name)</span>
293
293
  </a>
294
294
  </div>
295
295
 
296
296
  <div class="method-description">
297
297
  <p>
298
- .[abstract] get <a href="ElementRuleset.html">ElementRuleset</a>
298
+ (abstract) get <a href="ElementRuleset.html">ElementRuleset</a>
299
299
  </p>
300
300
  <p><a class="source-toggle" href="#"
301
- onclick="toggleCode('M000006-source');return false;">[Source]</a></p>
302
- <div class="method-source-code" id="M000006-source">
301
+ onclick="toggleCode('M000046-source');return false;">[Source]</a></p>
302
+ <div class="method-source-code" id="M000046-source">
303
303
  <pre>
304
- <span class="ruby-comment cmt"># File kwartz/converter.rb, line 328</span>
304
+ <span class="ruby-comment cmt"># File kwartz/converter.rb, line 434</span>
305
305
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_element_ruleset</span>(<span class="ruby-identifier">name</span>)
306
306
  <span class="ruby-identifier">not_implemented</span>
307
307
  <span class="ruby-keyword kw">end</span>
@@ -86,10 +86,10 @@
86
86
  <h3 class="section-bar">Methods</h3>
87
87
 
88
88
  <div class="name-list">
89
- <a href="#M000187">create</a>&nbsp;&nbsp;
90
- <a href="#M000188">merge</a>&nbsp;&nbsp;
91
- <a href="#M000186">merged?</a>&nbsp;&nbsp;
92
- <a href="#M000185">new</a>&nbsp;&nbsp;
89
+ <a href="#M000239">create</a>&nbsp;&nbsp;
90
+ <a href="#M000240">merge</a>&nbsp;&nbsp;
91
+ <a href="#M000238">merged?</a>&nbsp;&nbsp;
92
+ <a href="#M000237">new</a>&nbsp;&nbsp;
93
93
  </div>
94
94
  </div>
95
95
 
@@ -174,21 +174,21 @@
174
174
  <div id="methods">
175
175
  <h3 class="section-bar">Public Class methods</h3>
176
176
 
177
- <div id="method-M000187" class="method-detail">
178
- <a name="M000187"></a>
177
+ <div id="method-M000239" class="method-detail">
178
+ <a name="M000239"></a>
179
179
 
180
180
  <div class="method-heading">
181
- <a href="#M000187" class="method-signature">
181
+ <a href="#M000239" class="method-signature">
182
182
  <span class="method-name">create</span><span class="method-args">(values={})</span>
183
183
  </a>
184
184
  </div>
185
185
 
186
186
  <div class="method-description">
187
187
  <p><a class="source-toggle" href="#"
188
- onclick="toggleCode('M000187-source');return false;">[Source]</a></p>
189
- <div class="method-source-code" id="M000187-source">
188
+ onclick="toggleCode('M000239-source');return false;">[Source]</a></p>
189
+ <div class="method-source-code" id="M000239-source">
190
190
  <pre>
191
- <span class="ruby-comment cmt"># File kwartz/converter.rb, line 175</span>
191
+ <span class="ruby-comment cmt"># File kwartz/converter.rb, line 176</span>
192
192
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">create</span>(<span class="ruby-identifier">values</span>={})
193
193
  <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">values</span>[<span class="ruby-identifier">:name</span>], <span class="ruby-identifier">values</span>[<span class="ruby-identifier">:stag</span>], <span class="ruby-identifier">values</span>[<span class="ruby-identifier">:etag</span>], <span class="ruby-identifier">values</span>[<span class="ruby-identifier">:cont</span>], <span class="ruby-identifier">values</span>[<span class="ruby-identifier">:attr</span>], <span class="ruby-identifier">values</span>[<span class="ruby-identifier">:append</span>])
194
194
  <span class="ruby-keyword kw">end</span>
@@ -197,21 +197,21 @@
197
197
  </div>
198
198
  </div>
199
199
 
200
- <div id="method-M000185" class="method-detail">
201
- <a name="M000185"></a>
200
+ <div id="method-M000237" class="method-detail">
201
+ <a name="M000237"></a>
202
202
 
203
203
  <div class="method-heading">
204
- <a href="#M000185" class="method-signature">
204
+ <a href="#M000237" class="method-signature">
205
205
  <span class="method-name">new</span><span class="method-args">(name, stag_info, etag_info, cont_stmts, attr_info, append_exprs)</span>
206
206
  </a>
207
207
  </div>
208
208
 
209
209
  <div class="method-description">
210
210
  <p><a class="source-toggle" href="#"
211
- onclick="toggleCode('M000185-source');return false;">[Source]</a></p>
212
- <div class="method-source-code" id="M000185-source">
211
+ onclick="toggleCode('M000237-source');return false;">[Source]</a></p>
212
+ <div class="method-source-code" id="M000237-source">
213
213
  <pre>
214
- <span class="ruby-comment cmt"># File kwartz/converter.rb, line 155</span>
214
+ <span class="ruby-comment cmt"># File kwartz/converter.rb, line 156</span>
215
215
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">stag_info</span>, <span class="ruby-identifier">etag_info</span>, <span class="ruby-identifier">cont_stmts</span>, <span class="ruby-identifier">attr_info</span>, <span class="ruby-identifier">append_exprs</span>)
216
216
  <span class="ruby-ivar">@name</span> = <span class="ruby-identifier">name</span> <span class="ruby-comment cmt"># String</span>
217
217
  <span class="ruby-ivar">@stag_info</span> = <span class="ruby-identifier">stag_info</span> <span class="ruby-comment cmt"># TagInfo</span>
@@ -229,21 +229,21 @@
229
229
 
230
230
  <h3 class="section-bar">Public Instance methods</h3>
231
231
 
232
- <div id="method-M000188" class="method-detail">
233
- <a name="M000188"></a>
232
+ <div id="method-M000240" class="method-detail">
233
+ <a name="M000240"></a>
234
234
 
235
235
  <div class="method-heading">
236
- <a href="#M000188" class="method-signature">
236
+ <a href="#M000240" class="method-signature">
237
237
  <span class="method-name">merge</span><span class="method-args">(elem_ruleset)</span>
238
238
  </a>
239
239
  </div>
240
240
 
241
241
  <div class="method-description">
242
242
  <p><a class="source-toggle" href="#"
243
- onclick="toggleCode('M000188-source');return false;">[Source]</a></p>
244
- <div class="method-source-code" id="M000188-source">
243
+ onclick="toggleCode('M000240-source');return false;">[Source]</a></p>
244
+ <div class="method-source-code" id="M000240-source">
245
245
  <pre>
246
- <span class="ruby-comment cmt"># File kwartz/converter.rb, line 180</span>
246
+ <span class="ruby-comment cmt"># File kwartz/converter.rb, line 181</span>
247
247
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">merge</span>(<span class="ruby-identifier">elem_ruleset</span>)
248
248
  <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">elem_ruleset</span>.<span class="ruby-identifier">name</span> <span class="ruby-operator">==</span> <span class="ruby-ivar">@name</span>
249
249
  <span class="ruby-ivar">@merged</span> = <span class="ruby-identifier">elem_ruleset</span>
@@ -274,23 +274,23 @@
274
274
  </div>
275
275
  </div>
276
276
 
277
- <div id="method-M000186" class="method-detail">
278
- <a name="M000186"></a>
277
+ <div id="method-M000238" class="method-detail">
278
+ <a name="M000238"></a>
279
279
 
280
280
  <div class="method-heading">
281
- <a href="#M000186" class="method-signature">
281
+ <a href="#M000238" class="method-signature">
282
282
  <span class="method-name">merged?</span><span class="method-args">()</span>
283
283
  </a>
284
284
  </div>
285
285
 
286
286
  <div class="method-description">
287
287
  <p><a class="source-toggle" href="#"
288
- onclick="toggleCode('M000186-source');return false;">[Source]</a></p>
289
- <div class="method-source-code" id="M000186-source">
288
+ onclick="toggleCode('M000238-source');return false;">[Source]</a></p>
289
+ <div class="method-source-code" id="M000238-source">
290
290
  <pre>
291
- <span class="ruby-comment cmt"># File kwartz/converter.rb, line 170</span>
291
+ <span class="ruby-comment cmt"># File kwartz/converter.rb, line 171</span>
292
292
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">merged?</span>
293
- <span class="ruby-ivar">@merged</span>
293
+ <span class="ruby-operator">!</span><span class="ruby-ivar">@merged</span>.<span class="ruby-identifier">nil?</span>
294
294
  <span class="ruby-keyword kw">end</span>
295
295
  </pre>
296
296
  </div>