}
/** Method. */
- public void loopSample() {
+ public void ifSample() {
/*
* 0: getstatic java.lang.System#out type:Ljava/io/PrintStream;
*/
}
/** Method. */
- public void loopSample() {
+ public void switchSample() {
/* 0: iconst_5 */
/* 1: istore_1 */
--- /dev/null
+package test;
+
+/** TODO import func. is missing. */
+public class TestJavaClass041 {
+ /** Default constructor. */
+ public TestJavaClass041() {
+ /* 0: aload_0 */
+
+ /*
+ * 1: invokespecial java/lang/Object#<init>()V
+ */
+
+ /* 4: return */
+ }
+
+ /** Method. */
+ public void throwSample() {
+ /* 0: new */
+
+ /* 3: dup */
+
+ /*
+ * 4: ldc Test
+ */
+
+ /*
+ * 6: invokespecial
+ * java/lang/IllegalArgumentException#<init>(Ljava/lang/String;)V
+ */
+
+ /* 9: athrow */
+
+ /* 10: astore_1 */
+
+ /* 11: aload_1 */
+
+ /*
+ * 12: invokevirtual
+ * java/lang/IllegalArgumentException#printStackTrace()V
+ */
+
+ /* 15: return */
+ }
+}
\ No newline at end of file
* @author Toshiki Iga
*/
public class TestJavaClass011 {
- public void loopSample() {
+ public void ifSample() {
if (true) {
System.out.println("First if.");
}
* @author Toshiki Iga
*/
public class TestJavaClass031 {
- public void loopSample() {
+ public void switchSample() {
int i = 5;
switch (i) {
case 1:
--- /dev/null
+package test;
+
+/**
+ * Simple test class for JavaClassFileAnalyzer.
+ *
+ * @author Toshiki Iga
+ */
+public class TestJavaClass041 {
+ public void throwSample() {
+ try {
+ throw new IllegalArgumentException("Test");
+ } catch (IllegalArgumentException ex) {
+ ex.printStackTrace();
+ }
+ }
+}