kwartz 3.0.0 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +36 -1
- data/LGPL +504 -0
- data/README.txt +16 -2
- data/bin/kwartz +1 -1
- data/doc-api/classes/Kwartz.html +47 -1
- data/doc-api/classes/Kwartz/Assertion.html +6 -6
- data/doc-api/classes/Kwartz/AssertionError.html +6 -6
- data/doc-api/classes/Kwartz/AttrInfo.html +42 -42
- data/doc-api/classes/Kwartz/BaseError.html +12 -12
- data/doc-api/classes/Kwartz/BaseTranslator.html +210 -43
- data/doc-api/classes/Kwartz/CharacterType.html +24 -24
- data/doc-api/classes/Kwartz/CommandOptionError.html +7 -7
- data/doc-api/classes/Kwartz/CommandOptions.html +49 -49
- data/doc-api/classes/Kwartz/Config.html +6 -1
- data/doc-api/classes/Kwartz/ConvertError.html +14 -14
- data/doc-api/classes/Kwartz/Converter.html +31 -30
- data/doc-api/classes/Kwartz/CssStyleParser.html +79 -57
- data/doc-api/classes/Kwartz/Defun.html +313 -0
- data/doc-api/classes/Kwartz/DocumentRuleset.html +58 -58
- data/doc-api/classes/Kwartz/ElementExpander.html +32 -32
- data/doc-api/classes/Kwartz/ElementInfo.html +29 -29
- data/doc-api/classes/Kwartz/ElementRuleset.html +126 -96
- data/doc-api/classes/Kwartz/EperlHandler.html +108 -84
- data/doc-api/classes/Kwartz/EperlTranslator.html +7 -7
- data/doc-api/classes/Kwartz/ErubisHandler.html +2 -2
- data/doc-api/classes/Kwartz/ErubisTranslator.html +8 -8
- data/doc-api/classes/Kwartz/ErubyHandler.html +2 -220
- data/doc-api/classes/Kwartz/ErubyTranslator.html +7 -7
- data/doc-api/classes/Kwartz/ExpandStatement.html +20 -20
- data/doc-api/classes/Kwartz/Handler.html +122 -117
- data/doc-api/classes/Kwartz/HandlerArgument.html +215 -0
- data/doc-api/classes/Kwartz/Helper.html +112 -0
- data/doc-api/classes/Kwartz/Helper/ActionViewHelper.html +221 -0
- data/doc-api/classes/Kwartz/Helper/RailsTemplate.html +630 -0
- data/doc-api/classes/Kwartz/JstlHandler.html +208 -193
- data/doc-api/classes/Kwartz/JstlTranslator.html +15 -15
- data/doc-api/classes/Kwartz/KwartzError.html +6 -6
- data/doc-api/classes/Kwartz/Main.html +39 -23
- data/doc-api/classes/Kwartz/NativeExpression.html +18 -18
- data/doc-api/classes/Kwartz/NativeStatement.html +25 -25
- data/doc-api/classes/Kwartz/Node.html +6 -6
- data/doc-api/classes/Kwartz/PIErubisHandler.html +113 -0
- data/doc-api/classes/Kwartz/PIErubisTranslator.html +200 -0
- data/doc-api/classes/Kwartz/ParseError.html +6 -6
- data/doc-api/classes/Kwartz/PhpHandler.html +102 -83
- data/doc-api/classes/Kwartz/PhpTranslator.html +14 -14
- data/doc-api/classes/Kwartz/PresentationLogicParser.html +136 -128
- data/doc-api/classes/Kwartz/PrintStatement.html +19 -19
- data/doc-api/classes/Kwartz/RailsHandler.html +121 -118
- data/doc-api/classes/Kwartz/RailsTranslator.html +7 -7
- data/doc-api/classes/Kwartz/RubyHandler.html +349 -0
- data/doc-api/classes/Kwartz/RubyStyleParser.html +85 -85
- data/doc-api/classes/Kwartz/RubyTranslator.html +218 -0
- data/doc-api/classes/Kwartz/StatementHelper.html +479 -0
- data/doc-api/classes/Kwartz/StrutsTranslator.html +12 -12
- data/doc-api/classes/Kwartz/TagInfo.html +28 -28
- data/doc-api/classes/Kwartz/TextConverter.html +28 -28
- data/doc-api/classes/Kwartz/Translator.html +42 -42
- data/doc-api/classes/Kwartz/Util.html +284 -0
- data/doc-api/created.rid +1 -1
- data/doc-api/files/__/README_txt.html +30 -3
- data/doc-api/files/kwartz/assert_rb.html +1 -1
- data/doc-api/files/kwartz/binding/eperl_rb.html +2 -2
- data/doc-api/files/kwartz/binding/erubis_rb.html +3 -3
- data/doc-api/files/kwartz/binding/eruby_rb.html +3 -2
- data/doc-api/files/kwartz/binding/jstl_rb.html +2 -2
- data/doc-api/files/kwartz/binding/php_rb.html +2 -2
- data/doc-api/files/kwartz/binding/pierubis_rb.html +116 -0
- data/doc-api/files/kwartz/binding/rails_rb.html +2 -2
- data/doc-api/files/kwartz/binding/ruby_rb.html +115 -0
- data/doc-api/files/kwartz/binding/struts_rb.html +1 -1
- data/doc-api/files/kwartz/config_rb.html +2 -2
- data/doc-api/files/kwartz/converter_rb.html +3 -2
- data/doc-api/files/kwartz/defun_rb.html +116 -0
- data/doc-api/files/kwartz/error_rb.html +1 -1
- data/doc-api/files/kwartz/helper/rails_rb.html +123 -0
- data/doc-api/files/kwartz/main_rb.html +5 -2
- data/doc-api/files/kwartz/node_rb.html +2 -2
- data/doc-api/files/kwartz/parser_rb.html +2 -2
- data/doc-api/files/kwartz/translator_rb.html +2 -2
- data/doc-api/files/kwartz/util/assert-text-equal_rb.html +1 -1
- data/doc-api/files/kwartz/util/testcase-helper_rb.html +2 -2
- data/doc-api/files/kwartz/util_rb.html +107 -0
- data/doc-api/files/kwartz_rb.html +3 -2
- data/doc-api/fr_class_index.html +11 -0
- data/doc-api/fr_file_index.html +5 -0
- data/doc-api/fr_method_index.html +242 -190
- data/doc/p-pattern.html +94 -94
- data/doc/reference.html +847 -612
- data/doc/users-guide.html +744 -241
- data/examples/rails1/README +2 -2
- data/examples/rails1/application_helper.rb +2 -27
- data/examples/rails1/link_to.plogic +5 -5
- data/examples/rails1/list.plogic +2 -2
- data/examples/rails2/app/controllers/application.rb +14 -0
- data/examples/rails2/app/controllers/groups_controller.rb +47 -0
- data/examples/rails2/app/controllers/members_controller.rb +56 -0
- data/examples/rails2/app/helpers/application_helper.rb +6 -0
- data/examples/rails2/app/helpers/groups_helper.rb +2 -0
- data/examples/rails2/app/helpers/members_helper.rb +2 -0
- data/examples/rails2/app/models/group.rb +2 -0
- data/examples/rails2/app/models/member.rb +3 -0
- data/examples/rails2/app/views/groups/_form.html +30 -0
- data/examples/rails2/app/views/groups/_form.plogic +11 -0
- data/examples/rails2/app/views/groups/_link.plogic +19 -0
- data/examples/rails2/app/views/groups/_read.plogic +7 -0
- data/examples/rails2/app/views/groups/edit.cfg.yaml +2 -0
- data/examples/rails2/app/views/groups/edit.html +26 -0
- data/examples/rails2/app/views/groups/edit.plogic +9 -0
- data/examples/rails2/app/views/groups/list.html +48 -0
- data/examples/rails2/app/views/groups/list.plogic +32 -0
- data/examples/rails2/app/views/groups/new.cfg.yaml +2 -0
- data/examples/rails2/app/views/groups/new.html +27 -0
- data/examples/rails2/app/views/groups/new.plogic +9 -0
- data/examples/rails2/app/views/groups/show.html +27 -0
- data/examples/rails2/app/views/groups/show.plogic +2 -0
- data/examples/rails2/app/views/layouts/groups.html +23 -0
- data/examples/rails2/app/views/layouts/groups.plogic +11 -0
- data/examples/rails2/app/views/layouts/members.html +23 -0
- data/examples/rails2/app/views/layouts/members.plogic +11 -0
- data/examples/rails2/app/views/layouts/members2.html +24 -0
- data/examples/rails2/app/views/layouts/members2.plogic +11 -0
- data/examples/rails2/app/views/members/_form.plogic +27 -0
- data/examples/rails2/app/views/members/_link.plogic +19 -0
- data/examples/rails2/app/views/members/_read.plogic +29 -0
- data/examples/rails2/app/views/members/edit.cfg.yaml +6 -0
- data/examples/rails2/app/views/members/edit.html +27 -0
- data/examples/rails2/app/views/members/edit.plogic +10 -0
- data/examples/rails2/app/views/members/list.html +53 -0
- data/examples/rails2/app/views/members/list.plogic +32 -0
- data/examples/rails2/app/views/members/new.html +61 -0
- data/examples/rails2/app/views/members/new.plogic +17 -0
- data/examples/rails2/app/views/members/show.html +41 -0
- data/examples/rails2/app/views/members/show.plogic +3 -0
- data/examples/rails2/db/create-tables.mysql.sql +27 -0
- data/examples/rails2/db/create-tables.pgsql.sql +27 -0
- data/examples/rails2/db/insert-data.sql +21 -0
- data/examples/rails2/db/tabledef.yaml +51 -0
- data/kwartz.gemspec +4 -4
- data/lib/kwartz.rb +10 -2
- data/lib/kwartz/assert.rb +1 -1
- data/lib/kwartz/binding/eperl.rb +85 -61
- data/lib/kwartz/binding/erubis.rb +6 -8
- data/lib/kwartz/binding/eruby.rb +5 -120
- data/lib/kwartz/binding/jstl.rb +116 -101
- data/lib/kwartz/binding/php.rb +79 -60
- data/lib/kwartz/binding/pierubis.rb +58 -0
- data/lib/kwartz/binding/rails.rb +45 -42
- data/lib/kwartz/binding/ruby.rb +193 -0
- data/lib/kwartz/binding/struts.rb +1 -1
- data/lib/kwartz/config.rb +4 -3
- data/lib/kwartz/converter.rb +231 -68
- data/lib/kwartz/defun.rb +126 -0
- data/lib/kwartz/error.rb +1 -1
- data/lib/kwartz/helper/rails.rb +437 -0
- data/lib/kwartz/main.rb +30 -38
- data/lib/kwartz/node.rb +46 -31
- data/lib/kwartz/parser.rb +43 -15
- data/lib/kwartz/translator.rb +104 -6
- data/lib/kwartz/util.rb +113 -0
- data/lib/kwartz/util/assert-text-equal.rb +1 -1
- data/lib/kwartz/util/testcase-helper.rb +26 -8
- data/test/test-compile.rb +3 -3
- data/test/test-compile.yaml +135 -5
- data/test/test-converter.rb +16 -8
- data/test/test-converter.yaml +307 -76
- data/test/test-directives.rb +1 -1
- data/test/test-directives.yaml +964 -979
- data/test/test-main.rb +61 -146
- data/test/test-main.yaml +235 -0
- data/test/test-parser.rb +10 -12
- data/test/test-parser.yaml +484 -326
- data/test/test-rails.rb +1 -1
- data/test/test-rails.yaml +37 -37
- data/test/test-ruleset.rb +1 -1
- data/test/test-ruleset.yaml +34 -40
- data/test/test.rb +1 -1
- metadata +82 -3
- 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="#
|
99
|
-
<a href="#
|
100
|
-
<a href="#
|
101
|
-
<a href="#
|
102
|
-
<a href="#
|
103
|
-
<a href="#
|
104
|
-
<a href="#
|
98
|
+
<a href="#M000056">_inspect</a>
|
99
|
+
<a href="#M000050">new</a>
|
100
|
+
<a href="#M000054">set_begin</a>
|
101
|
+
<a href="#M000055">set_end</a>
|
102
|
+
<a href="#M000053">set_fixture</a>
|
103
|
+
<a href="#M000051">set_global</a>
|
104
|
+
<a href="#M000052">set_local</a>
|
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-
|
165
|
-
<a name="
|
164
|
+
<div id="method-M000050" class="method-detail">
|
165
|
+
<a name="M000050"></a>
|
166
166
|
|
167
167
|
<div class="method-heading">
|
168
|
-
<a href="#
|
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('
|
176
|
-
<div class="method-source-code" id="
|
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
|
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-
|
190
|
-
<a name="
|
189
|
+
<div id="method-M000056" class="method-detail">
|
190
|
+
<a name="M000056"></a>
|
191
191
|
|
192
192
|
<div class="method-heading">
|
193
|
-
<a href="#
|
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('
|
201
|
-
<div class="method-source-code" id="
|
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
|
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"><<</span> <span class="ruby-identifier">space</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"
|
207
|
+
<span class="ruby-identifier">sb</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">space</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"- name: #{@name}\n"</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"><<</span> <span class="ruby-identifier">space</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"global:\n"</span>
|
209
|
+
<span class="ruby-identifier">sb</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">space</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">" global:\n"</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"><<</span> <span class="ruby-identifier">space</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"
|
211
|
+
<span class="ruby-identifier">sb</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">space</span> <span class="ruby-operator"><<</span> <span class="ruby-node">" - #{item}\n"</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"><<</span> <span class="ruby-identifier">space</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"local:\n"</span>
|
215
|
+
<span class="ruby-identifier">sb</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">space</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">" local:\n"</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"><<</span> <span class="ruby-identifier">space</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"
|
217
|
+
<span class="ruby-identifier">sb</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">space</span> <span class="ruby-operator"><<</span> <span class="ruby-node">" - #{item}\n"</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"><<</span> <span class="ruby-identifier">space</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"begin:\n"</span>
|
221
|
+
<span class="ruby-identifier">sb</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">space</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">" begin:\n"</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"><<</span> <span class="ruby-identifier">space</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"
|
223
|
+
<span class="ruby-identifier">sb</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">space</span> <span class="ruby-operator"><<</span> <span class="ruby-node">" - #{stmt._inspect}"</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"><<</span> <span class="ruby-identifier">space</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"end:\n"</span>
|
227
|
+
<span class="ruby-identifier">sb</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">space</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">" end:\n"</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"><<</span> <span class="ruby-identifier">space</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"
|
229
|
+
<span class="ruby-identifier">sb</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">space</span> <span class="ruby-operator"><<</span> <span class="ruby-node">" - #{stmt._inspect}"</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-
|
241
|
-
<a name="
|
240
|
+
<div id="method-M000054" class="method-detail">
|
241
|
+
<a name="M000054"></a>
|
242
242
|
|
243
243
|
<div class="method-heading">
|
244
|
-
<a href="#
|
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('
|
252
|
-
<div class="method-source-code" id="
|
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
|
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-
|
265
|
-
<a name="
|
264
|
+
<div id="method-M000055" class="method-detail">
|
265
|
+
<a name="M000055"></a>
|
266
266
|
|
267
267
|
<div class="method-heading">
|
268
|
-
<a href="#
|
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('
|
276
|
-
<div class="method-source-code" id="
|
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
|
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-
|
289
|
-
<a name="
|
288
|
+
<div id="method-M000053" class="method-detail">
|
289
|
+
<a name="M000053"></a>
|
290
290
|
|
291
291
|
<div class="method-heading">
|
292
|
-
<a href="#
|
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('
|
300
|
-
<div class="method-source-code" id="
|
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
|
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-
|
312
|
-
<a name="
|
311
|
+
<div id="method-M000051" class="method-detail">
|
312
|
+
<a name="M000051"></a>
|
313
313
|
|
314
314
|
<div class="method-heading">
|
315
|
-
<a href="#
|
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('
|
323
|
-
<div class="method-source-code" id="
|
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
|
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-
|
335
|
-
<a name="
|
334
|
+
<div id="method-M000052" class="method-detail">
|
335
|
+
<a name="M000052"></a>
|
336
336
|
|
337
337
|
<div class="method-heading">
|
338
|
-
<a href="#
|
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('
|
346
|
-
<div class="method-source-code" id="
|
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
|
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
|
-
|
78
|
-
|
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="#
|
94
|
-
<a href="#
|
95
|
-
<a href="#
|
96
|
-
<a href="#
|
93
|
+
<a href="#M000048">expand_element_info</a>
|
94
|
+
<a href="#M000049">expand_statement</a>
|
95
|
+
<a href="#M000047">get_element_info</a>
|
96
|
+
<a href="#M000046">get_element_ruleset</a>
|
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-
|
126
|
-
<a name="
|
125
|
+
<div id="method-M000048" class="method-detail">
|
126
|
+
<a name="M000048"></a>
|
127
127
|
|
128
128
|
<div class="method-heading">
|
129
|
-
<a href="#
|
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('
|
140
|
-
<div class="method-source-code" id="
|
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
|
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-
|
168
|
-
<a name="
|
167
|
+
<div id="method-M000049" class="method-detail">
|
168
|
+
<a name="M000049"></a>
|
169
169
|
|
170
170
|
<div class="method-heading">
|
171
|
-
<a href="#
|
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('
|
182
|
-
<div class="method-source-code" id="
|
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
|
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-
|
262
|
-
<a name="
|
261
|
+
<div id="method-M000047" class="method-detail">
|
262
|
+
<a name="M000047"></a>
|
263
263
|
|
264
264
|
<div class="method-heading">
|
265
|
-
<a href="#
|
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
|
-
|
272
|
+
(abstract) get <a href="ElementInfo.html">ElementInfo</a>
|
273
273
|
</p>
|
274
274
|
<p><a class="source-toggle" href="#"
|
275
|
-
onclick="toggleCode('
|
276
|
-
<div class="method-source-code" id="
|
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
|
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-
|
288
|
-
<a name="
|
287
|
+
<div id="method-M000046" class="method-detail">
|
288
|
+
<a name="M000046"></a>
|
289
289
|
|
290
290
|
<div class="method-heading">
|
291
|
-
<a href="#
|
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
|
-
|
298
|
+
(abstract) get <a href="ElementRuleset.html">ElementRuleset</a>
|
299
299
|
</p>
|
300
300
|
<p><a class="source-toggle" href="#"
|
301
|
-
onclick="toggleCode('
|
302
|
-
<div class="method-source-code" id="
|
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
|
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="#
|
90
|
-
<a href="#
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
89
|
+
<a href="#M000239">create</a>
|
90
|
+
<a href="#M000240">merge</a>
|
91
|
+
<a href="#M000238">merged?</a>
|
92
|
+
<a href="#M000237">new</a>
|
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-
|
178
|
-
<a name="
|
177
|
+
<div id="method-M000239" class="method-detail">
|
178
|
+
<a name="M000239"></a>
|
179
179
|
|
180
180
|
<div class="method-heading">
|
181
|
-
<a href="#
|
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('
|
189
|
-
<div class="method-source-code" id="
|
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
|
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-
|
201
|
-
<a name="
|
200
|
+
<div id="method-M000237" class="method-detail">
|
201
|
+
<a name="M000237"></a>
|
202
202
|
|
203
203
|
<div class="method-heading">
|
204
|
-
<a href="#
|
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('
|
212
|
-
<div class="method-source-code" id="
|
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
|
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-
|
233
|
-
<a name="
|
232
|
+
<div id="method-M000240" class="method-detail">
|
233
|
+
<a name="M000240"></a>
|
234
234
|
|
235
235
|
<div class="method-heading">
|
236
|
-
<a href="#
|
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('
|
244
|
-
<div class="method-source-code" id="
|
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
|
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-
|
278
|
-
<a name="
|
277
|
+
<div id="method-M000238" class="method-detail">
|
278
|
+
<a name="M000238"></a>
|
279
279
|
|
280
280
|
<div class="method-heading">
|
281
|
-
<a href="#
|
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('
|
289
|
-
<div class="method-source-code" id="
|
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
|
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>
|