Class ClassData


  • public class ClassData
    extends MemberData
    Central class data for of the Java Disassembler
    • Field Detail

      • tool

        protected Tool tool
      • minor_version

        protected int minor_version
      • major_version

        protected int major_version
      • this_cpx

        protected int this_cpx
      • super_cpx

        protected int super_cpx
      • source_cpx

        protected int source_cpx
      • interfaces

        protected int[] interfaces
      • fields

        protected java.util.ArrayList<FieldData> fields
      • methods

        protected java.util.ArrayList<MethodData> methods
      • innerClasses

        protected java.util.ArrayList<InnerClassData> innerClasses
      • out

        protected java.io.PrintWriter out
      • pkgPrefix

        protected java.lang.String pkgPrefix
      • classFile

        private java.nio.file.Path classFile
    • Constructor Detail

      • ClassData

        public ClassData​(java.io.PrintWriter out,
                         Tool tool)
    • Method Detail

      • read

        public void read​(java.io.File in)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • read

        public void read​(java.lang.String in)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • readFields

        protected void readFields​(java.io.DataInputStream in)
                           throws java.io.IOException
        Read and resolve the field data
        Throws:
        java.io.IOException
      • readMethods

        protected void readMethods​(java.io.DataInputStream in)
                            throws java.io.IOException
        Read and resolve the method data
        Throws:
        java.io.IOException
      • readInterfaces

        protected void readInterfaces​(java.io.DataInputStream in)
                               throws java.io.IOException
        Read and resolve the interface data
        Throws:
        java.io.IOException
      • handleAttributes

        protected boolean handleAttributes​(java.io.DataInputStream in,
                                           Tables.AttrTag attrtag,
                                           int attrlen)
                                    throws java.io.IOException
        Read and resolve the attribute data
        Overrides:
        handleAttributes in class MemberData
        Throws:
        java.io.IOException
      • read

        private void read​(java.io.DataInputStream in)
                   throws java.io.IOException
        Read and resolve the class data
        Throws:
        java.io.IOException
      • getSrcLine

        public java.lang.String getSrcLine​(int lnum)
        Read and resolve the attribute data
      • printAnnotations

        private <T extends AnnotationData> void printAnnotations​(java.util.List<T> annotations)
      • print

        public void print()
                   throws java.io.IOException
        Specified by:
        print in class MemberData
        Throws:
        java.io.IOException
      • isModuleUnit

        private boolean isModuleUnit()
      • printMemberDataList

        private void printMemberDataList​(java.util.List<? extends MemberData> list)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • getIssues

        private java.util.List<java.io.IOException> getIssues()