summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpelder2007-05-17 10:58:05 (EDT)
committer pelder2007-05-17 10:58:05 (EDT)
commitab9b82c292b40e32349a7aabb04d74aa608137f3 (patch)
treec87600ce838fc706343c7a0d56c25890d98344fe
parent56b5c5fba9a2a665971a115d136aefa847834c3d (diff)
downloadorg.eclipse.jet-ab9b82c292b40e32349a7aabb04d74aa608137f3.zip
org.eclipse.jet-ab9b82c292b40e32349a7aabb04d74aa608137f3.tar.gz
org.eclipse.jet-ab9b82c292b40e32349a7aabb04d74aa608137f3.tar.bz2
[187555,187373] Generated _TAGS_ class only makes Java output larger
-rw-r--r--tests/org.eclipse.jet.tests/data/simplifiedCompiler/templates/simple.v2.input.jet.expected.java38
1 files changed, 18 insertions, 20 deletions
diff --git a/tests/org.eclipse.jet.tests/data/simplifiedCompiler/templates/simple.v2.input.jet.expected.java b/tests/org.eclipse.jet.tests/data/simplifiedCompiler/templates/simple.v2.input.jet.expected.java
index 218813b..bb25c36 100644
--- a/tests/org.eclipse.jet.tests/data/simplifiedCompiler/templates/simple.v2.input.jet.expected.java
+++ b/tests/org.eclipse.jet.tests/data/simplifiedCompiler/templates/simple.v2.input.jet.expected.java
@@ -15,8 +15,7 @@ public class _jet_simplev2input implements JET2Template {
private static final String NL = System.getProperties().getProperty("line.separator"); //$NON-NLS-1$
- private static final class _TAGS {
- static final TagInfo test_tokenize_4_1 = new TagInfo("test:tokenize", //$NON-NLS-1$
+ private static final TagInfo _td_test_tokenize_4_1 = new TagInfo("test:tokenize", //$NON-NLS-1$
4, 1,
new String[] {
"string", //$NON-NLS-1$
@@ -28,13 +27,13 @@ public class _jet_simplev2input implements JET2Template {
",", //$NON-NLS-1$
"token", //$NON-NLS-1$
} );
- static final TagInfo test_other_5_1 = new TagInfo("test:other", //$NON-NLS-1$
+ private static final TagInfo _td_test_other_5_1 = new TagInfo("test:other", //$NON-NLS-1$
5, 1,
new String[] {
},
new String[] {
} );
- static final TagInfo test_isAllUpper_6_1 = new TagInfo("test:isAllUpper", //$NON-NLS-1$
+ private static final TagInfo _td_test_isAllUpper_6_1 = new TagInfo("test:isAllUpper", //$NON-NLS-1$
6, 1,
new String[] {
"var", //$NON-NLS-1$
@@ -42,39 +41,38 @@ public class _jet_simplev2input implements JET2Template {
new String[] {
"token", //$NON-NLS-1$
} );
- static final TagInfo test_upper_8_1 = new TagInfo("test:upper", //$NON-NLS-1$
+ private static final TagInfo _td_test_upper_8_1 = new TagInfo("test:upper", //$NON-NLS-1$
8, 1,
new String[] {
},
new String[] {
} );
- static final TagInfo test_nl_8_29 = new TagInfo("test:nl", //$NON-NLS-1$
+ private static final TagInfo _td_test_nl_8_29 = new TagInfo("test:nl", //$NON-NLS-1$
8, 29,
new String[] {
},
new String[] {
} );
- static final TagInfo test_other_9_1 = new TagInfo("test:other", //$NON-NLS-1$
+ private static final TagInfo _td_test_other_9_1 = new TagInfo("test:other", //$NON-NLS-1$
9, 1,
new String[] {
},
new String[] {
} );
- }
public void generate(final JET2Context context, final JET2Writer __out) {
JET2Writer out = __out;
out.write("\"isAllUpper\", \"nl\", \"other\", \"tokenize\", \"upper\""); //$NON-NLS-1$
out.write(NL);
out.write(NL);
- RuntimeTagElement _jettag_test_tokenize_4_1 = context.getTagFactory().createRuntimeTag(_jetns_test, "tokenize", "test:tokenize", _TAGS.test_tokenize_4_1); //$NON-NLS-1$ //$NON-NLS-2$
+ RuntimeTagElement _jettag_test_tokenize_4_1 = context.getTagFactory().createRuntimeTag(_jetns_test, "tokenize", "test:tokenize", _td_test_tokenize_4_1); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_test_tokenize_4_1.setRuntimeParent(null);
- _jettag_test_tokenize_4_1.setTagInfo(_TAGS.test_tokenize_4_1);
+ _jettag_test_tokenize_4_1.setTagInfo(_td_test_tokenize_4_1);
_jettag_test_tokenize_4_1.doStart(context, out);
while (_jettag_test_tokenize_4_1.okToProcessBody()) {
- RuntimeTagElement _jettag_test_other_5_1 = context.getTagFactory().createRuntimeTag(_jetns_test, "other", "test:other", _TAGS.test_other_5_1); //$NON-NLS-1$ //$NON-NLS-2$
+ RuntimeTagElement _jettag_test_other_5_1 = context.getTagFactory().createRuntimeTag(_jetns_test, "other", "test:other", _td_test_other_5_1); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_test_other_5_1.setRuntimeParent(_jettag_test_tokenize_4_1);
- _jettag_test_other_5_1.setTagInfo(_TAGS.test_other_5_1);
+ _jettag_test_other_5_1.setTagInfo(_td_test_other_5_1);
_jettag_test_other_5_1.doStart(context, out);
while (_jettag_test_other_5_1.okToProcessBody()) {
out.write("some text"); //$NON-NLS-1$
@@ -82,17 +80,17 @@ public class _jet_simplev2input implements JET2Template {
}
_jettag_test_other_5_1.doEnd();
out.write(NL);
- RuntimeTagElement _jettag_test_isAllUpper_6_1 = context.getTagFactory().createRuntimeTag(_jetns_test, "isAllUpper", "test:isAllUpper", _TAGS.test_isAllUpper_6_1); //$NON-NLS-1$ //$NON-NLS-2$
+ RuntimeTagElement _jettag_test_isAllUpper_6_1 = context.getTagFactory().createRuntimeTag(_jetns_test, "isAllUpper", "test:isAllUpper", _td_test_isAllUpper_6_1); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_test_isAllUpper_6_1.setRuntimeParent(_jettag_test_tokenize_4_1);
- _jettag_test_isAllUpper_6_1.setTagInfo(_TAGS.test_isAllUpper_6_1);
+ _jettag_test_isAllUpper_6_1.setTagInfo(_td_test_isAllUpper_6_1);
_jettag_test_isAllUpper_6_1.doStart(context, out);
while (_jettag_test_isAllUpper_6_1.okToProcessBody()) {
_jettag_test_isAllUpper_6_1.handleBodyContent(out);
}
_jettag_test_isAllUpper_6_1.doEnd();
- RuntimeTagElement _jettag_test_upper_8_1 = context.getTagFactory().createRuntimeTag(_jetns_test, "upper", "test:upper", _TAGS.test_upper_8_1); //$NON-NLS-1$ //$NON-NLS-2$
+ RuntimeTagElement _jettag_test_upper_8_1 = context.getTagFactory().createRuntimeTag(_jetns_test, "upper", "test:upper", _td_test_upper_8_1); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_test_upper_8_1.setRuntimeParent(_jettag_test_tokenize_4_1);
- _jettag_test_upper_8_1.setTagInfo(_TAGS.test_upper_8_1);
+ _jettag_test_upper_8_1.setTagInfo(_td_test_upper_8_1);
_jettag_test_upper_8_1.doStart(context, out);
JET2Writer _jettag_test_upper_8_1_saved_out = out;
while (_jettag_test_upper_8_1.okToProcessBody()) {
@@ -102,15 +100,15 @@ public class _jet_simplev2input implements JET2Template {
}
out = _jettag_test_upper_8_1_saved_out;
_jettag_test_upper_8_1.doEnd();
- RuntimeTagElement _jettag_test_nl_8_29 = context.getTagFactory().createRuntimeTag(_jetns_test, "nl", "test:nl", _TAGS.test_nl_8_29); //$NON-NLS-1$ //$NON-NLS-2$
+ RuntimeTagElement _jettag_test_nl_8_29 = context.getTagFactory().createRuntimeTag(_jetns_test, "nl", "test:nl", _td_test_nl_8_29); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_test_nl_8_29.setRuntimeParent(_jettag_test_tokenize_4_1);
- _jettag_test_nl_8_29.setTagInfo(_TAGS.test_nl_8_29);
+ _jettag_test_nl_8_29.setTagInfo(_td_test_nl_8_29);
_jettag_test_nl_8_29.doStart(context, out);
_jettag_test_nl_8_29.doEnd();
out.write(NL);
- RuntimeTagElement _jettag_test_other_9_1 = context.getTagFactory().createRuntimeTag(_jetns_test, "other", "test:other", _TAGS.test_other_9_1); //$NON-NLS-1$ //$NON-NLS-2$
+ RuntimeTagElement _jettag_test_other_9_1 = context.getTagFactory().createRuntimeTag(_jetns_test, "other", "test:other", _td_test_other_9_1); //$NON-NLS-1$ //$NON-NLS-2$
_jettag_test_other_9_1.setRuntimeParent(_jettag_test_tokenize_4_1);
- _jettag_test_other_9_1.setTagInfo(_TAGS.test_other_9_1);
+ _jettag_test_other_9_1.setTagInfo(_td_test_other_9_1);
_jettag_test_other_9_1.doStart(context, out);
_jettag_test_other_9_1.doEnd();
_jettag_test_tokenize_4_1.handleBodyContent(out);