Method Summary |
|
public static ClassFile | create(DataInput din) Create a new ClassFile from the class file format data in the DataInput
stream. |
public static void | defineIdString(String id) Define a constant String to include in every output class file. |
public void | dump(PrintWriter pw) Dump the content of the class file to the specified file (used for debugging). |
public int | getClassFileAccess() |
protected CpInfo | getCpEntry(int cpIndex) Lookup the entry in the constant pool and return as an Object. |
public Enumeration | getFieldEnum() Return an enumeration of field name/descriptor pairs. |
public Map | getInnerClassModifiers() |
public String[] | getInterfaces() Return the names of this class's interfaces. |
public Enumeration | getMethodEnum() Return an enumeration of method name/descriptor pairs. |
public int | getModifiers() |
public String | getName() Return the name of this classfile. |
public String | getSuper() Return the name of this class's superclass. |
public String[] | logDangerousMethods(boolean replaceClassNameStrings) Check for methods which can break the obfuscated code, and log them to a String[]. |
public void | logDangerousMethods(PrintWriter log, boolean replaceClassNameStrings) |
public void | markNTRefs(ConstantPool pool) Check for direct references to NameAndType constant pool entries. |
public void | markUtf8Refs(ConstantPool pool) Check for direct references to Utf8 constant pool entries. |
public static String[] | parseDescriptor(String descriptor) Parse a method or field descriptor into a list of parameter names (for methods)
and a return type, in same format as the Class.forName() method returns . |
public static String[] | parseDescriptor(String descriptor, boolean isDisplay) Parse a method or field descriptor into a list of parameter names (for methods)
and a return type, in same format as the Class.forName() method returns . |
public void | remap(NameMapper nm, boolean replaceClassNameStrings, PrintWriter log) Remap the entities in the specified ClassFile. |
public static void | resetDangerHeader() |
public static String | translate(String name) Translate a class name from the internal '/' convention to the regular '.' one. |
public static String | translateType(String inName, boolean isDisplay) Translate a type specifier from the internal JVM convention to the Class.forName() one. |
public void | trimAttrs() Trim attributes from the classfile ('Code', 'Exceptions', 'ConstantValue'
are preserved, all others are killed). |
public void | trimAttrsExcept(String[] extraAttrs) Trim attributes from the classfile ('Code', 'Exceptions', 'ConstantValue'
are preserved, all others except the list in the String[] are killed). |
public void | write(DataOutput dout) Export the representation to a DataOutput stream. |