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