// ino.module.CONSTANT_Fieldref_info.8535.package package de.dhbwstuttgart.bytecode; // ino.end // ino.module.CONSTANT_Fieldref_info.8535.import import java.io.FileOutputStream; import java.io.IOException; // ino.end import java.io.OutputStream; // ino.class.CONSTANT_Fieldref_info.21810.declaration public class CONSTANT_Fieldref_info extends CPInfo // ino.end // ino.class.CONSTANT_Fieldref_info.21810.body { // ino.attribute.class_index.21814.declaration private short class_index; // ino.end // ino.attribute.name_and_type_index.21817.declaration private short name_and_type_index; // ino.end // ino.method.get_class_index.21820.definition public short get_class_index() // ino.end // ino.method.get_class_index.21820.body { return this.class_index; } // ino.end // ino.method.get_name_and_type_index.21823.definition public short get_name_and_type_index() // ino.end // ino.method.get_name_and_type_index.21823.body { return this.name_and_type_index; } // ino.end // ino.method.set_class_index.21826.definition public void set_class_index(short i) // ino.end // ino.method.set_class_index.21826.body { this.class_index = i; } // ino.end // ino.method.set_name_and_type_index.21829.definition public void set_name_and_type_index(short i) // ino.end // ino.method.set_name_and_type_index.21829.body { this.name_and_type_index = i; } // ino.end // ino.method.codegen.21832.definition @Override public void codegen(ClassFile classfile, OutputStream f) throws IOException // ino.end // ino.method.codegen.21832.body { classfile.writeByte(f, get_tag()); classfile.writeShort(f, class_index); classfile.writeShort(f, name_and_type_index); } // ino.end // ino.method.toString.21835.definition public String toString() // ino.end // ino.method.toString.21835.body { return "Fieldref_info: Class_index="+ class_index + ", Name_and_type_index=" + name_and_type_index; } // ino.end } // ino.end