1 package jrre.api.java.lang.reflect;
2
3 import jrre.classloader.classfile.access_flags.*;
4
5 public class ClassProperties {
6
7 private int magicNumber;
8 private int minorVersion;
9 private int majorVersion;
10 private AccessFlags accessFlags;
11 private int thisClass;
12 private int superClass;
13
14 private int initMethod;
15 private int constantInitMethod;
16
17
18 public ClassProperties(){}
19
20 /***
21 * Gets the InitMethod.
22 */
23 public int getInitMethod(){
24 return this.initMethod;
25 }
26
27 /***
28 * Sets the InitMethod.
29 * @param InitMethod The value to set it to.
30 */
31 public void setInitMethod(int initMethod){
32 this.initMethod = initMethod;
33 }
34
35 /***
36 * Gets the ConstantInitMethod.
37 */
38 public int getConstantInitMethod(){
39 return this.constantInitMethod;
40 }
41
42 /***
43 * Sets the ConstantInitMethod.
44 * @param ConstantInitMethod The value to set it to.
45 */
46 public void setConstantInitMethod(int constantInitMethod){
47 this.constantInitMethod = constantInitMethod;
48 }
49
50 public int getMagicNumber(){ return magicNumber; }
51 public void setMagicNumber(int magicNumber){ this.magicNumber = magicNumber; }
52
53 public int getMajorVersion(){ return majorVersion; }
54 public void setMajorVersion(int majorVersion){ this.majorVersion = majorVersion; }
55
56 public int getMinorVersion(){ return minorVersion; }
57 public void setMinorVersion(int minorVersion){ this.minorVersion = minorVersion; }
58
59 public AccessFlags getAccessFlags(){ return accessFlags; }
60 public void setAccessFlags(AccessFlags accessFlags){ this.accessFlags = accessFlags; }
61
62 public int getThisClass(){ return thisClass; }
63 public void setThisClass(int thisClass){ this.thisClass = thisClass; }
64
65 public int getSuperClass(){ return superClass; }
66 public void setSuperClass(int superClass){ this.superClass = superClass; }
67
68 public String toString(){
69 return "Class Properties:\n\tmagic number = "+Integer.toHexString(magicNumber)+
70 "\n\tMajor Version = "+majorVersion+
71 "\n\tMinor Version = "+minorVersion+
72 "\n\t"+accessFlags+
73 "\n\tThis Class = "+thisClass+
74 "\n\tSuper Class = "+superClass;
75 }
76 }
77
This page was automatically generated by Maven