init of deob
This commit is contained in:
30
src/main/java/info/sigterm/deob/Methods.java
Normal file
30
src/main/java/info/sigterm/deob/Methods.java
Normal file
@@ -0,0 +1,30 @@
|
||||
package info.sigterm.deob;
|
||||
|
||||
import java.io.DataInputStream;
|
||||
import java.io.IOException;
|
||||
|
||||
public class Methods
|
||||
{
|
||||
ClassFile classFile;
|
||||
|
||||
private int count;
|
||||
private Method[] methods;
|
||||
|
||||
Methods(ClassFile cf) throws IOException
|
||||
{
|
||||
classFile = cf;
|
||||
|
||||
DataInputStream is = cf.getStream();
|
||||
|
||||
count = is.readUnsignedShort();
|
||||
methods = new Method[count];
|
||||
|
||||
for (int i = 0; i < count; ++i)
|
||||
methods[i] = new Method(this);
|
||||
}
|
||||
|
||||
public ClassFile getClassFile()
|
||||
{
|
||||
return classFile;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user