Package org.jf.dexlib2.writer
Class DebugWriter<StringKey extends CharSequence,TypeKey extends CharSequence>
java.lang.Object
org.jf.dexlib2.writer.DebugWriter<StringKey,TypeKey>
public class DebugWriter<StringKey extends CharSequence,TypeKey extends CharSequence>
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate intprivate static final intprivate static final intprivate static final intprivate final StringSection<StringKey, ?> private final TypeSection<StringKey, TypeKey, ?> private final DexDataWriter -
Constructor Summary
ConstructorsConstructorDescriptionDebugWriter(StringSection<StringKey, ?> stringSection, TypeSection<StringKey, TypeKey, ?> typeSection, DexDataWriter writer) -
Method Summary
Modifier and TypeMethodDescription(package private) voidreset(int startLine) private voidwriteAdvanceLine(int line) private voidwriteAdvancePC(int address) voidwriteEndLocal(int codeAddress, int register) voidwriteEpilogueBegin(int codeAddress) voidwriteLineNumber(int codeAddress, int lineNumber) voidwritePrologueEnd(int codeAddress) voidwriteRestartLocal(int codeAddress, int register) voidwriteSetSourceFile(int codeAddress, StringKey sourceFile) private voidwriteSpecialOpcode(int lineDelta, int addressDelta) voidwriteStartLocal(int codeAddress, int register, StringKey name, TypeKey type, StringKey signature)
-
Field Details
-
stringSection
-
typeSection
@Nonnull private final TypeSection<StringKey extends CharSequence,TypeKey extends CharSequence, typeSection?> -
writer
-
currentAddress
private int currentAddress -
currentLine
private int currentLine -
LINE_BASE
private static final int LINE_BASE- See Also:
-
LINE_RANGE
private static final int LINE_RANGE- See Also:
-
FIRST_SPECIAL
private static final int FIRST_SPECIAL- See Also:
-
-
Constructor Details
-
DebugWriter
DebugWriter(@Nonnull StringSection<StringKey, ?> stringSection, @Nonnull TypeSection<StringKey, TypeKey, ?> typeSection, @Nonnull DexDataWriter writer)
-
-
Method Details
-
reset
void reset(int startLine) -
writeStartLocal
public void writeStartLocal(int codeAddress, int register, @Nullable StringKey name, @Nullable TypeKey type, @Nullable StringKey signature) throws IOException - Throws:
IOException
-
writeEndLocal
- Throws:
IOException
-
writeRestartLocal
- Throws:
IOException
-
writePrologueEnd
- Throws:
IOException
-
writeEpilogueBegin
- Throws:
IOException
-
writeLineNumber
- Throws:
IOException
-
writeSetSourceFile
- Throws:
IOException
-
writeAdvancePC
- Throws:
IOException
-
writeAdvanceLine
- Throws:
IOException
-
writeSpecialOpcode
- Throws:
IOException
-