|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.android.dx.dex.file.DebugInfoEncoder
public final class DebugInfoEncoder
An encoder for the dex debug info state machine format. The format for each method enrty is as follows:
this excluded. A value of '0' indicates "no name"
DebugInfoConstants.
OP_END_SEQUENCE
| Constructor Summary | |
|---|---|
DebugInfoEncoder(PositionList positions,
LocalList locals,
DexFile file,
int codeSize,
int regSize,
boolean isStatic,
CstMethodRef ref)
Creates an instance. |
|
| Method Summary | |
|---|---|
byte[] |
convert()
Converts this (PositionList, LocalList) pair into a state machine sequence. |
byte[] |
convertAndAnnotate(String prefix,
PrintWriter debugPrint,
AnnotatedOutput out,
boolean consume)
Converts and produces annotations on a stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DebugInfoEncoder(PositionList positions,
LocalList locals,
DexFile file,
int codeSize,
int regSize,
boolean isStatic,
CstMethodRef ref)
positions - null-ok; positions (line numbers) to encodelocals - null-ok; local variables to encodefile - null-ok; may only be null if simply using
this class to do a debug printcodeSize - regSize - isStatic - ref - | Method Detail |
|---|
public byte[] convert()
non-null; encoded byte sequence without padding and
terminated with a 0x00 byte
public byte[] convertAndAnnotate(String prefix,
PrintWriter debugPrint,
AnnotatedOutput out,
boolean consume)
AnnotatedOutput.
prefix - null-ok; prefix to attach to each line of outputdebugPrint - null-ok; if specified, an alternate output for
annotationsout - null-ok; if specified, where annotations should goconsume - whether to claim to have consumed output for
out
non-null; encoded output
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||