From 66ae46e04fd8ee9cb8e91d40d6454c18d9e6c3ae Mon Sep 17 00:00:00 2001 From: jochen Date: Tue, 13 Apr 1999 10:45:29 +0000 Subject: [PATCH] new constructor git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@574 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/bytecode/FieldInfo.java | 9 +++++++++ jode/jode/bytecode/MethodInfo.java | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/jode/jode/bytecode/FieldInfo.java b/jode/jode/bytecode/FieldInfo.java index 1220750..d6cf0ec 100644 --- a/jode/jode/bytecode/FieldInfo.java +++ b/jode/jode/bytecode/FieldInfo.java @@ -28,6 +28,15 @@ public class FieldInfo extends BinaryInfo { Type type; Object constant; + public FieldInfo() { + } + + public FieldInfo(String name, Type type, int modifier) { + this.name = name; + this.type = type; + this.modifier = modifier; + } + public String getName() { return name; } diff --git a/jode/jode/bytecode/MethodInfo.java b/jode/jode/bytecode/MethodInfo.java index 0dfd851..7bfdb2d 100644 --- a/jode/jode/bytecode/MethodInfo.java +++ b/jode/jode/bytecode/MethodInfo.java @@ -29,6 +29,15 @@ public class MethodInfo extends BinaryInfo { String name; MethodType type; + public MethodInfo() { + } + + public MethodInfo(String name, MethodType type, int modifier) { + this.name = name; + this.type = type; + this.modifier = modifier; + } + public void read(ConstantPool constantPool, DataInputStream input, int howMuch) throws IOException { modifier = input.readUnsignedShort();