public final class DebugInfoEncoder
extends java.lang.Object
this excluded. A value of '0' indicates "no name"
DebugInfoConstants.
OP_END_SEQUENCE
| Constructor and Description |
|---|
DebugInfoEncoder(PositionList positions,
LocalList locals,
DexFile file,
int codeSize,
int regSize,
boolean isStatic,
CstMethodRef ref)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
convert()
Converts this (PositionList, LocalList) pair into a state machine
sequence.
|
byte[] |
convertAndAnnotate(java.lang.String prefix,
java.io.PrintWriter debugPrint,
AnnotatedOutput out,
boolean consume)
Converts and produces annotations on a stream.
|
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 - public byte[] convert()
non-null; encoded byte sequence without padding and
terminated with a 0x00 bytepublic byte[] convertAndAnnotate(java.lang.String prefix,
java.io.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
outnon-null; encoded outputCopyright © 2020. All Rights Reserved.