init of deob
This commit is contained in:
31
src/main/java/info/sigterm/deob/Field.java
Normal file
31
src/main/java/info/sigterm/deob/Field.java
Normal file
@@ -0,0 +1,31 @@
|
||||
package info.sigterm.deob;
|
||||
|
||||
import java.io.DataInputStream;
|
||||
import java.io.IOException;
|
||||
|
||||
class Field
|
||||
{
|
||||
private Fields fields;
|
||||
|
||||
private short accessFlags;
|
||||
private int nameIndex;
|
||||
private int descriptorIndex;
|
||||
private Attributes attributes;
|
||||
|
||||
Field(Fields fields) throws IOException
|
||||
{
|
||||
this.fields = fields;
|
||||
|
||||
DataInputStream is = fields.getClassFile().getStream();
|
||||
|
||||
accessFlags = is.readShort();
|
||||
nameIndex = is.readUnsignedShort();
|
||||
descriptorIndex = is.readUnsignedShort();
|
||||
attributes = new Attributes(this);
|
||||
}
|
||||
|
||||
public Fields getFields()
|
||||
{
|
||||
return fields;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user