public class BlockDumper extends BaseDumper
| Modifier and Type | Field and Description |
|---|---|
protected DirectClassFile |
classFile
null-ok; the class file object being constructed;
becomes non-null during dump(byte[], java.io.PrintStream, java.lang.String, boolean, com.android.dx.command.dump.Args) |
protected boolean |
suppressDump
whether or not to suppress dumping
|
args, dexOptions| Modifier and Type | Method and Description |
|---|---|
void |
changeIndent(int indentDelta)
Indicate that the level of indentation for a dump should increase
or decrease (positive or negative argument, respectively).
|
void |
dump()
Does the dumping.
|
static void |
dump(byte[] bytes,
java.io.PrintStream out,
java.lang.String filePath,
boolean rop,
com.android.dx.command.dump.Args args)
Dumps the given array, interpreting it as a class file and dumping
methods with indications of block-level stuff.
|
void |
endParsingMember(ByteArray bytes,
int offset,
java.lang.String name,
java.lang.String descriptor,
Member member)
Indicate that a particular member is no longer being parsed.
|
void |
parsed(ByteArray bytes,
int offset,
int len,
java.lang.String human)
Indicate that some parsing happened.
|
protected boolean |
shouldDumpMethod(java.lang.String name) |
void |
startParsingMember(ByteArray bytes,
int offset,
java.lang.String name,
java.lang.String descriptor)
Indicate that a particular member is now being parsed.
|
getBytes, getFilePath, getRawBytes, getReadBytes, getStrictParse, getWidth1, getWidth2, hexDump, print, println, twoColumnsprotected DirectClassFile classFile
null-ok; the class file object being constructed;
becomes non-null during dump(byte[], java.io.PrintStream, java.lang.String, boolean, com.android.dx.command.dump.Args)protected boolean suppressDump
public static void dump(byte[] bytes,
java.io.PrintStream out,
java.lang.String filePath,
boolean rop,
com.android.dx.command.dump.Args args)
bytes - non-null; bytes of the (alleged) class fileout - non-null; where to dump tofilePath - the file path for the class, excluding any base
directory specificationrop - whether or not to registerize (make rop blocks)args - commandline parsedArgspublic void dump()
public void changeIndent(int indentDelta)
changeIndent in interface ParseObserverchangeIndent in class BaseDumperindentDelta - the amount to change indentationpublic void parsed(ByteArray bytes, int offset, int len, java.lang.String human)
parsed in interface ParseObserverparsed in class BaseDumperbytes - non-null; the source that was parsedoffset - offset into bytes for what was parsedlen - number of bytes parsedhuman - non-null; human form for what was parsedprotected boolean shouldDumpMethod(java.lang.String name)
name - method namepublic void startParsingMember(ByteArray bytes, int offset, java.lang.String name, java.lang.String descriptor)
startParsingMember in interface ParseObserverstartParsingMember in class BaseDumperbytes - non-null; the source that is being parsedoffset - offset into bytes for the start of the
membername - non-null; name of the memberdescriptor - non-null; descriptor of the memberpublic void endParsingMember(ByteArray bytes, int offset, java.lang.String name, java.lang.String descriptor, Member member)
endParsingMember in interface ParseObserverendParsingMember in class BaseDumperbytes - non-null; the source that was parsedoffset - offset into bytes for the end of the
membername - non-null; name of the memberdescriptor - non-null; descriptor of the membermember - non-null; the actual member that was parsedCopyright © 2020. All Rights Reserved.