2013-10-18 11:33:46 +00:00
|
|
|
// ino.module.CONSTANT_Methodref_info.8540.package
|
2014-09-04 14:35:44 +00:00
|
|
|
package de.dhbwstuttgart.bytecode;
|
2013-10-18 11:33:46 +00:00
|
|
|
// ino.end
|
|
|
|
|
|
|
|
// ino.module.CONSTANT_Methodref_info.8540.import
|
|
|
|
import java.io.FileOutputStream;
|
|
|
|
import java.io.IOException;
|
|
|
|
// ino.end
|
2014-03-12 17:28:30 +00:00
|
|
|
import java.io.OutputStream;
|
2013-10-18 11:33:46 +00:00
|
|
|
|
|
|
|
// ino.class.CONSTANT_Methodref_info.21932.declaration
|
|
|
|
public class CONSTANT_Methodref_info extends CPInfo
|
|
|
|
// ino.end
|
|
|
|
// ino.class.CONSTANT_Methodref_info.21932.body
|
|
|
|
{
|
|
|
|
// ino.attribute.class_index.21936.declaration
|
|
|
|
private short class_index;
|
|
|
|
// ino.end
|
|
|
|
|
|
|
|
// ino.attribute.name_and_type_index.21939.declaration
|
|
|
|
private short name_and_type_index;
|
|
|
|
// ino.end
|
|
|
|
|
|
|
|
// ino.method.get_class_index.21942.definition
|
|
|
|
public short get_class_index()
|
|
|
|
// ino.end
|
|
|
|
// ino.method.get_class_index.21942.body
|
|
|
|
{
|
|
|
|
return this.class_index;
|
|
|
|
}
|
|
|
|
// ino.end
|
|
|
|
|
|
|
|
// ino.method.get_name_and_type_index.21945.definition
|
|
|
|
public short get_name_and_type_index()
|
|
|
|
// ino.end
|
|
|
|
// ino.method.get_name_and_type_index.21945.body
|
|
|
|
{
|
|
|
|
return this.name_and_type_index;
|
|
|
|
}
|
|
|
|
// ino.end
|
|
|
|
|
|
|
|
// ino.method.set_class_index.21948.definition
|
|
|
|
public void set_class_index(short t)
|
|
|
|
// ino.end
|
|
|
|
// ino.method.set_class_index.21948.body
|
|
|
|
{
|
|
|
|
this.class_index = t;
|
|
|
|
}
|
|
|
|
// ino.end
|
|
|
|
|
|
|
|
// ino.method.set_name_and_type_index.21951.definition
|
|
|
|
public void set_name_and_type_index(short t)
|
|
|
|
// ino.end
|
|
|
|
// ino.method.set_name_and_type_index.21951.body
|
|
|
|
{
|
|
|
|
this.name_and_type_index = t;
|
|
|
|
}
|
|
|
|
// ino.end
|
|
|
|
|
|
|
|
// ino.method.codegen.21954.definition
|
2014-03-12 17:28:30 +00:00
|
|
|
@Override
|
|
|
|
public void codegen(ClassFile classfile, OutputStream f)
|
2013-10-18 11:33:46 +00:00
|
|
|
throws IOException
|
|
|
|
// ino.end
|
|
|
|
// ino.method.codegen.21954.body
|
|
|
|
{
|
|
|
|
classfile.writeByte(f, get_tag());
|
|
|
|
classfile.writeShort(f, class_index);
|
|
|
|
classfile.writeShort(f, name_and_type_index);
|
|
|
|
}
|
|
|
|
// ino.end
|
|
|
|
|
|
|
|
// ino.method.toString.21957.definition
|
|
|
|
public String toString()
|
|
|
|
// ino.end
|
|
|
|
// ino.method.toString.21957.body
|
|
|
|
{
|
|
|
|
return "MethodRef_Info: class_index=" + class_index
|
|
|
|
+ ", name_and_type_index=" + name_and_type_index;
|
|
|
|
}
|
|
|
|
// ino.end
|
|
|
|
}
|
|
|
|
// ino.end
|