[Dashg-commit] SF.net SVN: dashg:[35] trunk/dashg/src/com/mebigfatguy/dashg/ DashGMethodSourcePrin
Status: Pre-Alpha
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2008-10-28 21:50:19
|
Revision: 35
http://dashg.svn.sourceforge.net/dashg/?rev=35&view=rev
Author: dbrosius
Date: 2008-10-28 21:50:10 +0000 (Tue, 28 Oct 2008)
Log Message:
-----------
add LOOKUPSWITCH
Modified Paths:
--------------
trunk/dashg/src/com/mebigfatguy/dashg/DashGMethodSourcePrintingVisitor.java
Modified: trunk/dashg/src/com/mebigfatguy/dashg/DashGMethodSourcePrintingVisitor.java
===================================================================
--- trunk/dashg/src/com/mebigfatguy/dashg/DashGMethodSourcePrintingVisitor.java 2008-10-28 21:48:36 UTC (rev 34)
+++ trunk/dashg/src/com/mebigfatguy/dashg/DashGMethodSourcePrintingVisitor.java 2008-10-28 21:50:10 UTC (rev 35)
@@ -131,6 +131,18 @@
}
public void visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels) {
+ StringBuilder insn = new StringBuilder();
+ insn.append("LOOKUPSWITCH {");
+ String comma = "";
+ for (int i = 0; i <= keys.length; i++) {
+ insn.append(comma);
+ comma = ",";
+ insn.append(keys[i]);
+ insn.append(':');
+ insn.append(labels[i].toString());
+ }
+ insn.append("}");
+ emitInsn(insn.toString());
mv.visitLookupSwitchInsn(dflt, keys, labels);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|