简体   繁体   中英

can't see method content in java code

In a java class there are some methods like this. I don't get what exactly compiled code is. Can you explain what it is and what it is for?

private Severity(String newSeverityName) {
        // <editor-fold defaultstate="collapsed" desc="Compiled Code">
        /* 0: aload_0
         * 1: invokespecial #60                 // Method java/lang/Object."<init>":()V
         * 4: aload_0
         * 5: getstatic     #57                 // Field nextOrdinal:I
         * 8: dup
         * 9: iconst_1
         * 10: iadd
         * 11: putstatic     #57                 // Field nextOrdinal:I
         * 14: putfield      #58                 // Field ordinal:I
         * 17: aload_0
         * 18: aconst_null
         * 19: putfield      #59                 // Field severityName:Ljava/lang/String;
         * 22: aload_0
         * 23: aload_1
         * 24: putfield      #59                 // Field severityName:Ljava/lang/String;
         * 27: return
         *  */
        // </editor-fold>
    }

If you want to see the java code, use JAva Decompiler (JAD).

http://sourceforge.net/projects/dcompiler/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM