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