Esempio n. 1
0
        protected override void Read(uint Length, System.IO.BinaryReader Reader, ConstantPool Pool)
        {
            ushort Count = Reader.ReadUInt16BE();

            for (int i = 0; i < Count; i++)
            {
                ExceptionsTable.Add(((Constants.Class)Pool[Reader.ReadUInt16BE()]).Value);
            }
        }
Esempio n. 2
0
        protected override void Read(uint Length, System.IO.BinaryReader Reader, ConstantPool Pool)
        {
            ushort Count = Reader.ReadUInt16BE();

            for (int i = 0; i < Count; i++)
            {
                LineNumber Line = new LineNumber();
                Line.StartPC          = Reader.ReadUInt16BE();
                Line.LineNumberInFile = Reader.ReadUInt16BE();
                Table.Add(Line);
            }
        }
Esempio n. 3
0
        protected override void Read(uint Length, System.IO.BinaryReader Reader, ConstantPool Pool)
        {
            ushort Count = Reader.ReadUInt16BE();

            for (int i = 0; i < Count; i++)
            {
                InnerClass Class = new InnerClass();

                ushort InnerClassInfoIndex = Reader.ReadUInt16BE();
                ushort OuterClassInfoIndex = Reader.ReadUInt16BE();
                ushort InnerNameIndex      = Reader.ReadUInt16BE();

                Class.InnerClassInfo = InnerClassInfoIndex != 0 ? ((Constants.Class)Pool[InnerClassInfoIndex]).Value : null;
                Class.OuterClassInfo = OuterClassInfoIndex != 0 ? ((Constants.Class)Pool[OuterClassInfoIndex]).Value : null;
                Class.InnerName      = InnerNameIndex != 0 ? ((Constants.Utf8)Pool[InnerNameIndex]).Value : null;
                Class.AccessFlags    = (InnerClassAccessFlags)Reader.ReadUInt16BE();
                Classes.Add(Class);
            }
        }
Esempio n. 4
0
        protected override void Read(uint Length, System.IO.BinaryReader Reader, ConstantPool Pool)
        {
            ushort Count = Reader.ReadUInt16BE();

            for (int i = 0; i < Count; i++)
            {
                LocalVariable Var = new LocalVariable();
                Var.StartPC    = Reader.ReadUInt16BE();
                Var.Length     = Reader.ReadUInt16BE();
                Var.Name       = ((Constants.Utf8)Pool[Reader.ReadUInt16BE()]).Value;
                Var.Descriptor = ((Constants.Utf8)Pool[Reader.ReadUInt16BE()]).Value;
                Var.Index      = Reader.ReadUInt16BE();
            }
        }
Esempio n. 5
0
 protected override void Read(uint Length, System.IO.BinaryReader Reader, ConstantPool Pool)
 {
     Value = ((Constants.Utf8)Pool[Reader.ReadUInt16BE()]).Value;
 }