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
@@ -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="#
|
97
|
+
<a href="#M000198">new</a>
|
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-
|
120
|
-
<a name="
|
119
|
+
<div id="method-M000198" class="method-detail">
|
120
|
+
<a name="M000198"></a>
|
121
121
|
|
122
122
|
<div class="method-heading">
|
123
|
-
<a href="#
|
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('
|
131
|
-
<div class="method-source-code" id="
|
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
|
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="#
|
112
|
-
<a href="#
|
113
|
-
<a href="#
|
114
|
-
<a href="#
|
115
|
-
<a href="#
|
116
|
-
<a href="#
|
117
|
-
<a href="#
|
111
|
+
<a href="#M000192">[]</a>
|
112
|
+
<a href="#M000193">[]=</a>
|
113
|
+
<a href="#M000195">char</a>
|
114
|
+
<a href="#M000196">chr</a>
|
115
|
+
<a href="#M000194">key?</a>
|
116
|
+
<a href="#M000191">new</a>
|
117
|
+
<a href="#M000197">parse_argv</a>
|
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-
|
140
|
-
<a name="
|
139
|
+
<div id="method-M000191" class="method-detail">
|
140
|
+
<a name="M000191"></a>
|
141
141
|
|
142
142
|
<div class="method-heading">
|
143
|
-
<a href="#
|
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('
|
151
|
-
<div class="method-source-code" id="
|
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
|
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-
|
172
|
-
<a name="
|
171
|
+
<div id="method-M000192" class="method-detail">
|
172
|
+
<a name="M000192"></a>
|
173
173
|
|
174
174
|
<div class="method-heading">
|
175
|
-
<a href="#
|
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('
|
183
|
-
<div class="method-source-code" id="
|
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
|
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-
|
199
|
-
<a name="
|
198
|
+
<div id="method-M000193" class="method-detail">
|
199
|
+
<a name="M000193"></a>
|
200
200
|
|
201
201
|
<div class="method-heading">
|
202
|
-
<a href="#
|
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('
|
210
|
-
<div class="method-source-code" id="
|
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
|
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">"@#{key}"</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-
|
222
|
-
<a name="
|
221
|
+
<div id="method-M000195" class="method-detail">
|
222
|
+
<a name="M000195"></a>
|
223
223
|
|
224
224
|
<div class="method-heading">
|
225
|
-
<a href="#
|
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('
|
233
|
-
<div class="method-source-code" id="
|
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
|
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">&&</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-
|
246
|
-
<a name="
|
245
|
+
<div id="method-M000196" class="method-detail">
|
246
|
+
<a name="M000196"></a>
|
247
247
|
|
248
248
|
<div class="method-heading">
|
249
|
-
<a href="#
|
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('
|
257
|
-
<div class="method-source-code" id="
|
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
|
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-
|
270
|
-
<a name="
|
269
|
+
<div id="method-M000194" class="method-detail">
|
270
|
+
<a name="M000194"></a>
|
271
271
|
|
272
272
|
<div class="method-heading">
|
273
|
-
<a href="#
|
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('
|
281
|
-
<div class="method-source-code" id="
|
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
|
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">"@#{key}"</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-
|
293
|
-
<a name="
|
292
|
+
<div id="method-M000197" class="method-detail">
|
293
|
+
<a name="M000197"></a>
|
294
294
|
|
295
295
|
<div class="method-heading">
|
296
|
-
<a href="#
|
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('
|
304
|
-
<div class="method-source-code" id="
|
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
|
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">&&</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">'
|
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="#
|
92
|
-
<a href="#
|
91
|
+
<a href="#M000241">new</a>
|
92
|
+
<a href="#M000242">to_s</a>
|
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-
|
128
|
-
<a name="
|
127
|
+
<div id="method-M000241" class="method-detail">
|
128
|
+
<a name="M000241"></a>
|
129
129
|
|
130
130
|
<div class="method-heading">
|
131
|
-
<a href="#
|
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('
|
139
|
-
<div class="method-source-code" id="
|
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
|
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-
|
155
|
-
<a name="
|
154
|
+
<div id="method-M000242" class="method-detail">
|
155
|
+
<a name="M000242"></a>
|
156
156
|
|
157
157
|
<div class="method-heading">
|
158
|
-
<a href="#
|
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('
|
166
|
-
<div class="method-source-code" id="
|
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
|
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">"#{@filename}:#{@linenum}: #{s}"</span>
|
@@ -80,7 +80,7 @@
|
|
80
80
|
|
81
81
|
<div id="description">
|
82
82
|
<p>
|
83
|
-
|
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="#
|
97
|
-
<a href="#
|
98
|
-
<a href="#
|
99
|
-
<a href="#
|
96
|
+
<a href="#M000152">convert</a>
|
97
|
+
<a href="#M000154">get_class</a>
|
98
|
+
<a href="#M000151">new</a>
|
99
|
+
<a href="#M000153">register_class</a>
|
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-
|
142
|
-
<a name="
|
142
|
+
<div id="method-M000154" class="method-detail">
|
143
|
+
<a name="M000154"></a>
|
143
144
|
|
144
145
|
<div class="method-heading">
|
145
|
-
<a href="#
|
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('
|
153
|
-
<div class="method-source-code" id="
|
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
|
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-
|
165
|
-
<a name="
|
165
|
+
<div id="method-M000151" class="method-detail">
|
166
|
+
<a name="M000151"></a>
|
166
167
|
|
167
168
|
<div class="method-heading">
|
168
|
-
<a href="#
|
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('
|
176
|
-
<div class="method-source-code" id="
|
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
|
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-
|
189
|
-
<a name="
|
189
|
+
<div id="method-M000153" class="method-detail">
|
190
|
+
<a name="M000153"></a>
|
190
191
|
|
191
192
|
<div class="method-heading">
|
192
|
-
<a href="#
|
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('
|
200
|
-
<div class="method-source-code" id="
|
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
|
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-
|
214
|
-
<a name="
|
214
|
+
<div id="method-M000152" class="method-detail">
|
215
|
+
<a name="M000152"></a>
|
215
216
|
|
216
217
|
<div class="method-heading">
|
217
|
-
<a href="#
|
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
|
-
|
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('
|
229
|
-
<div class="method-source-code" id="
|
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
|
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>
|