new constructor

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@574 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 5f78283313
commit 66ae46e04f
  1. 9
      jode/jode/bytecode/FieldInfo.java
  2. 9
      jode/jode/bytecode/MethodInfo.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;
}

@ -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();

Loading…
Cancel
Save