Esempio n. 1
0
 public ConstantUtf8Info(ClassFile classFile, BigEndianBinaryReader reader) : base(classFile, ConstantType.Utf8)
 {
     Length = reader.ReadUInt16();
     Bytes  = reader.ReadBytes(Length);
 }
Esempio n. 2
0
 public ConstantClassInfo(ClassFile classFile, BigEndianBinaryReader reader)
     : base(classFile, ConstantType.Class)
 {
     NameIndex = reader.ReadUInt16();
 }
Esempio n. 3
0
 public ConstantIntegerInfo(ClassFile classFile, BigEndianBinaryReader reader) : base(classFile, ConstantType.Integer)
 {
     Value = reader.ReadInt32();
 }
Esempio n. 4
0
 public ConstantLongInfo(ClassFile classFile, BigEndianBinaryReader reader) : base(classFile, ConstantType.Long)
 {
     Value = reader.ReadInt64();
 }
Esempio n. 5
0
 public ConstantInvokeDynamicInfo(ClassFile classFile, BigEndianBinaryReader reader) : base(classFile, ConstantType.InvokeDynamic)
 {
     BootstrapMethodIndex = reader.ReadUInt16();
     NameAndTypeIndex     = reader.ReadUInt16();
 }
Esempio n. 6
0
 public ConstantDoubleInfo(ClassFile classFile, BigEndianBinaryReader reader) : base(classFile, ConstantType.Float)
 {
     Value = reader.ReadDouble();
 }
Esempio n. 7
0
 public ConstantNameAndTypeInfo(ClassFile classFile, BigEndianBinaryReader reader) : base(classFile, ConstantType.NameAndType)
 {
     NameIndex       = reader.ReadUInt16();
     DescriptorIndex = reader.ReadUInt16();
 }
Esempio n. 8
0
 public ConstantStringInfo(ClassFile classFile, BigEndianBinaryReader reader) : base(classFile, ConstantType.String)
 {
     StringIndex = reader.ReadUInt16();
 }
Esempio n. 9
0
 public ConstantMethodHandleInfo(ClassFile classFile, BigEndianBinaryReader reader) : base(classFile, ConstantType.MethodHandle)
 {
     ReferenceKind  = (MethodReferenceType)reader.ReadByte();
     ReferenceIndex = reader.ReadUInt16();
 }
Esempio n. 10
0
 protected ConstantInfoBase(ClassFile classFile, ConstantType type)
     : base(classFile)
 {
     Tag = type;
 }
Esempio n. 11
0
 public ConstantMethodType(ClassFile classFile, BigEndianBinaryReader reader) : base(classFile, ConstantType.MethodType)
 {
     SignatureIndex = reader.ReadUInt16();
 }
Esempio n. 12
0
 public ConstantInterfaceMethodrefInfo(ClassFile classFile, BigEndianBinaryReader reader)
     : base(ConstantReferenceType.InterfaceMethodReference, classFile, reader, ConstantType.InterfaceMethodref)
 {
 }
Esempio n. 13
0
 public ConstantFieldrefInfo(ClassFile classFile, BigEndianBinaryReader reader)
     : base(ConstantReferenceType.FieldReference, classFile, reader, ConstantType.Fieldref)
 {
 }