OSDN Git Service

save
authoriga <tosiki.iga@nifty.ne.jp>
Tue, 1 Apr 2014 12:09:05 +0000 (21:09 +0900)
committeriga <tosiki.iga@nifty.ne.jp>
Tue, 1 Apr 2014 12:09:05 +0000 (21:09 +0900)
jcfa/src/jp/igapyon/jcfa/JavaClassFileAnalyzer.java
jcfa/testJavaClass/output/test/TestJavaClass001.jcfa

index 6686a23..a11794f 100644 (file)
@@ -134,16 +134,26 @@ public class JavaClassFileAnalyzer {
                }\r
        }\r
 \r
+       /**\r
+        * Analyze method.\r
+        * \r
+        * @param jc\r
+        * @param method\r
+        * @param jcfaClass\r
+        * @throws IOException\r
+        */\r
        private void analyzeMethod(final JavaClass jc, final Method method,\r
                        final JcfaClass jcfaClass) throws IOException {\r
                final JcfaMethod jcfaMethod = new JcfaMethod();\r
                jcfaClass.getMethodList().add(jcfaMethod);\r
 \r
                jcfaMethod.setName(method.getName());\r
+               jcfaMethod.getComment().setJavaDoc(true);\r
                if (jcfaMethod.getName().equals("<init>")) {\r
-                       jcfaMethod.getComment().setJavaDoc(true);\r
                        jcfaMethod.getComment().getCommentList()\r
                                        .add("Default constructor.");\r
+               } else {\r
+                       jcfaMethod.getComment().getCommentList().add("Method.");\r
                }\r
 \r
                final Code code = method.getCode();\r
index 1d1b3af..030a2ae 100644 (file)
@@ -6,7 +6,7 @@ public class TestJavaClass001 {
        public TestJavaClass001() {
        }
 
-       /*  */
+       /** Method. */
        public void main() {
        }
 }
\ No newline at end of file