i try to analyze the class file
i found on the internet a class file byte by byte
but there first is the function and in my bytes first is (after constant pool) <init>
its signature , code exceptions ....
and after "line number of the function" which is 4 in my bytes i'm lost
there are 18 bytes to the function "main" and i don't know what they mean
they are
0
11
0
0
0
12
0
1
0
0
0
5
0
12
0
13
0
0
then is the main function its code but not everything is in that code
my code (to analyze) looks as follows
before the code i see that (main method) it is public and static
then goes the name of the function main (constant pool 14)
then i see an array of type String
and that it returns void (constant pool 15)
what i see in the code of the function main
is
Analyzebytes (constant pool 16)
Analyzebytes (constant pool 17)
setData (constant pool 19)
and then displayBytes (constant pool 22)
where should i look for the variable name "ab" ?
and the name of the parameter "args"?
after main there are 53 bytes more
thank You
i found on the internet a class file byte by byte
but there first is the function and in my bytes first is (after constant pool) <init>
its signature , code exceptions ....
and after "line number of the function" which is 4 in my bytes i'm lost
there are 18 bytes to the function "main" and i don't know what they mean
they are
0
11
0
0
0
12
0
1
0
0
0
5
0
12
0
13
0
0
then is the main function its code but not everything is in that code
my code (to analyze) looks as follows
Code:
public class Decomp {
public static void main(String args[]) {
AnalyzeBytes ab = new AnalyzeBytes();
ab.setData();
ab.displayBytes();
//ab.displaySourceCode(); will be uncommented when i'm finished
}
}
then goes the name of the function main (constant pool 14)
then i see an array of type String
and that it returns void (constant pool 15)
what i see in the code of the function main
is
Analyzebytes (constant pool 16)
Analyzebytes (constant pool 17)
setData (constant pool 19)
and then displayBytes (constant pool 22)
where should i look for the variable name "ab" ?
and the name of the parameter "args"?
after main there are 53 bytes more
thank You
Comment