• R/O
  • HTTP
  • SSH
  • HTTPS

jcfa: Commit

JavaClassFileAnalyzer (jcfa) のメインリポジトリです。


Commit MetaInfo

Revisione2a9d9133741cbed9c8e1cbe6bf16e4bdbfb195f (tree)
Time2014-04-03 06:06:10
Authoriga <tosiki.iga@nift...>
Commiteriga

Log Message

save

Change Summary

Incremental Difference

--- /dev/null
+++ b/jcfa/src/jp/igapyon/jcfa/vo/JcfaFrame.java
@@ -0,0 +1,18 @@
1+package jp.igapyon.jcfa.vo;
2+
3+import java.util.ArrayList;
4+import java.util.List;
5+
6+public class JcfaFrame {
7+ protected final List<JcfaLocalVariable> localVariable = new ArrayList<JcfaLocalVariable>();
8+
9+ protected final JcfaOperandStack operandStack = new JcfaOperandStack();
10+
11+ public List<JcfaLocalVariable> getLocalVariable() {
12+ return localVariable;
13+ }
14+
15+ public JcfaOperandStack getOperandStack() {
16+ return operandStack;
17+ }
18+}
--- /dev/null
+++ b/jcfa/src/jp/igapyon/jcfa/vo/JcfaLocalVariable.java
@@ -0,0 +1,5 @@
1+package jp.igapyon.jcfa.vo;
2+
3+public class JcfaLocalVariable {
4+
5+}
--- a/jcfa/src/jp/igapyon/jcfa/vo/JcfaMethod.java
+++ b/jcfa/src/jp/igapyon/jcfa/vo/JcfaMethod.java
@@ -14,6 +14,8 @@ public class JcfaMethod extends JcfaNode {
1414
1515 protected final List<JcfaCode> codeList = new ArrayList<JcfaCode>();
1616
17+ protected final JcfaFrame frame = new JcfaFrame();
18+
1719 public String getAccess() {
1820 return access;
1921 }
--- /dev/null
+++ b/jcfa/src/jp/igapyon/jcfa/vo/JcfaOperandStack.java
@@ -0,0 +1,5 @@
1+package jp.igapyon.jcfa.vo;
2+
3+public class JcfaOperandStack {
4+
5+}
--- /dev/null
+++ b/jcfa/testJavaClass/output/jp/igapyon/jcfa/vo/JcfaFrame.jcfa
@@ -0,0 +1,92 @@
1+package jp.igapyon.jcfa.vo;
2+
3+/** TODO import func. is missing. */
4+public class JcfaFrame {
5+ /** */
6+ protected final java.util.List localVariable;
7+ /** */
8+ protected final jp.igapyon.jcfa.vo.JcfaOperandStack operandStack;
9+
10+ /** Default constructor. */
11+ public JcfaFrame() {
12+ /*
13+ * 0: aload_0 TODO unsupported opcode
14+ */
15+
16+ /*
17+ * 1: invokespecial java/lang/Object#<init>()V
18+ */
19+
20+ /*
21+ * 4: aload_0 TODO unsupported opcode
22+ */
23+
24+ /*
25+ * 5: new TODO unsupported opcode
26+ */
27+
28+ /*
29+ * 8: dup TODO unsupported opcode
30+ */
31+
32+ /*
33+ * 9: invokespecial java/util/ArrayList#<init>()V
34+ */
35+
36+ /*
37+ * 12: putfield TODO unsupported opcode
38+ */
39+
40+ /*
41+ * 15: aload_0 TODO unsupported opcode
42+ */
43+
44+ /*
45+ * 16: new TODO unsupported opcode
46+ */
47+
48+ /*
49+ * 19: dup TODO unsupported opcode
50+ */
51+
52+ /*
53+ * 20: invokespecial jp/igapyon/jcfa/vo/JcfaOperandStack#<init>()V
54+ */
55+
56+ /*
57+ * 23: putfield TODO unsupported opcode
58+ */
59+
60+ /* 26: return */
61+ }
62+
63+ /** Method. */
64+ public java.util.List getLocalVariable() {
65+ /*
66+ * 0: aload_0 TODO unsupported opcode
67+ */
68+
69+ /*
70+ * 1: getfield TODO unsupported opcode
71+ */
72+
73+ /*
74+ * 4: areturn TODO unsupported opcode
75+ */
76+ }
77+
78+ /** Method. */
79+ public jp.igapyon.jcfa.vo.JcfaOperandStack getOperandStack() {
80+ /*
81+ * 0: aload_0 TODO unsupported opcode
82+ */
83+
84+ /*
85+ * 1: getfield TODO unsupported opcode
86+ */
87+
88+ /*
89+ * 4: areturn TODO unsupported opcode
90+ */
91+ }
92+}
\ No newline at end of file
--- /dev/null
+++ b/jcfa/testJavaClass/output/jp/igapyon/jcfa/vo/JcfaLocalVariable.jcfa
@@ -0,0 +1,17 @@
1+package jp.igapyon.jcfa.vo;
2+
3+/** TODO import func. is missing. */
4+public class JcfaLocalVariable {
5+ /** Default constructor. */
6+ public JcfaLocalVariable() {
7+ /*
8+ * 0: aload_0 TODO unsupported opcode
9+ */
10+
11+ /*
12+ * 1: invokespecial java/lang/Object#<init>()V
13+ */
14+
15+ /* 4: return */
16+ }
17+}
\ No newline at end of file
--- a/jcfa/testJavaClass/output/jp/igapyon/jcfa/vo/JcfaMethod.jcfa
+++ b/jcfa/testJavaClass/output/jp/igapyon/jcfa/vo/JcfaMethod.jcfa
@@ -12,6 +12,8 @@ public class JcfaMethod extends jp.igapyon.jcfa.vo.JcfaNode {
1212 protected java.lang.String access;
1313 /** */
1414 protected final java.util.List codeList;
15+ /** */
16+ protected final jp.igapyon.jcfa.vo.JcfaFrame frame;
1517
1618 /** Default constructor. */
1719 public JcfaMethod() {
@@ -63,7 +65,27 @@ public class JcfaMethod extends jp.igapyon.jcfa.vo.JcfaNode {
6365 * 23: putfield TODO unsupported opcode
6466 */
6567
66- /* 26: return */
68+ /*
69+ * 26: aload_0 TODO unsupported opcode
70+ */
71+
72+ /*
73+ * 27: new TODO unsupported opcode
74+ */
75+
76+ /*
77+ * 30: dup TODO unsupported opcode
78+ */
79+
80+ /*
81+ * 31: invokespecial jp/igapyon/jcfa/vo/JcfaFrame#<init>()V
82+ */
83+
84+ /*
85+ * 34: putfield TODO unsupported opcode
86+ */
87+
88+ /* 37: return */
6789 }
6890
6991 /** Method. */
--- /dev/null
+++ b/jcfa/testJavaClass/output/jp/igapyon/jcfa/vo/JcfaOperandStack.jcfa
@@ -0,0 +1,17 @@
1+package jp.igapyon.jcfa.vo;
2+
3+/** TODO import func. is missing. */
4+public class JcfaOperandStack {
5+ /** Default constructor. */
6+ public JcfaOperandStack() {
7+ /*
8+ * 0: aload_0 TODO unsupported opcode
9+ */
10+
11+ /*
12+ * 1: invokespecial java/lang/Object#<init>()V
13+ */
14+
15+ /* 4: return */
16+ }
17+}
\ No newline at end of file
Show on old repository browser