tinker.net.dongliu.apk.parser.struct.dex.DexClassStruct Maven / Gradle / Ivy
The newest version!
package tinker.net.dongliu.apk.parser.struct.dex;
/**
* @author dongliu
*/
public class DexClassStruct {
/* index into typeIds for this class. u4 */
private int classIdx;
private int accessFlags;
/* index into typeIds for superclass. u4 */
private int superclassIdx;
/* file offset to DexTypeList. u4 */
private long interfacesOff;
/* index into stringIds for source file name. u4 */
private int sourceFileIdx;
/* file offset to annotations_directory_item. u4 */
private long annotationsOff;
/* file offset to class_data_item. u4 */
private long classDataOff;
/* file offset to DexEncodedArray. u4 */
private long staticValuesOff;
public static int ACC_PUBLIC = 0x1;
public static int ACC_PRIVATE = 0x2;
public static int ACC_PROTECTED = 0x4;
public static int ACC_STATIC = 0x8;
public static int ACC_FINAL = 0x10;
public static int ACC_SYNCHRONIZED = 0x20;
public static int ACC_VOLATILE = 0x40;
public static int ACC_BRIDGE = 0x40;
public static int ACC_TRANSIENT = 0x80;
public static int ACC_VARARGS = 0x80;
public static int ACC_NATIVE = 0x100;
public static int ACC_INTERFACE = 0x200;
public static int ACC_ABSTRACT = 0x400;
public static int ACC_STRICT = 0x800;
public static int ACC_SYNTHETIC = 0x1000;
public static int ACC_ANNOTATION = 0x2000;
public static int ACC_ENUM = 0x4000;
public static int ACC_CONSTRUCTOR = 0x10000;
public static int ACC_DECLARED_SYNCHRONIZED = 0x20000;
public int getClassIdx() {
return classIdx;
}
public void setClassIdx(int classIdx) {
this.classIdx = classIdx;
}
public int getAccessFlags() {
return accessFlags;
}
public void setAccessFlags(int accessFlags) {
this.accessFlags = accessFlags;
}
public int getSuperclassIdx() {
return superclassIdx;
}
public void setSuperclassIdx(int superclassIdx) {
this.superclassIdx = superclassIdx;
}
public long getInterfacesOff() {
return interfacesOff;
}
public void setInterfacesOff(long interfacesOff) {
this.interfacesOff = interfacesOff;
}
public int getSourceFileIdx() {
return sourceFileIdx;
}
public void setSourceFileIdx(int sourceFileIdx) {
this.sourceFileIdx = sourceFileIdx;
}
public long getAnnotationsOff() {
return annotationsOff;
}
public void setAnnotationsOff(long annotationsOff) {
this.annotationsOff = annotationsOff;
}
public long getClassDataOff() {
return classDataOff;
}
public void setClassDataOff(long classDataOff) {
this.classDataOff = classDataOff;
}
public long getStaticValuesOff() {
return staticValuesOff;
}
public void setStaticValuesOff(long staticValuesOff) {
this.staticValuesOff = staticValuesOff;
}
}