Java Code Examples for com.android.dx.dex.code.DalvInsnList#writeTo()
The following examples show how to use
com.android.dx.dex.code.DalvInsnList#writeTo() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CodeItem.java From Box with Apache License 2.0 | 5 votes |
/** * Helper for {@link #writeTo0} which writes out the actual bytecode. * * @param file {@code non-null;} file we are part of * @param out {@code non-null;} where to write to */ private void writeCodes(DexFile file, AnnotatedOutput out) { DalvInsnList insns = code.getInsns(); try { insns.writeTo(out); } catch (RuntimeException ex) { throw ExceptionWithContext.withContext(ex, "...while writing " + "instructions for " + ref.toHuman()); } }
Example 2
Source File: CodeItem.java From Box with Apache License 2.0 | 5 votes |
/** * Helper for {@link #writeTo0} which writes out the actual bytecode. * * @param file {@code non-null;} file we are part of * @param out {@code non-null;} where to write to */ private void writeCodes(DexFile file, AnnotatedOutput out) { DalvInsnList insns = code.getInsns(); try { insns.writeTo(out); } catch (RuntimeException ex) { throw ExceptionWithContext.withContext(ex, "...while writing " + "instructions for " + ref.toHuman()); } }
Example 3
Source File: CodeItem.java From J2ME-Loader with Apache License 2.0 | 5 votes |
/** * Helper for {@link #writeTo0} which writes out the actual bytecode. * * @param file {@code non-null;} file we are part of * @param out {@code non-null;} where to write to */ private void writeCodes(DexFile file, AnnotatedOutput out) { DalvInsnList insns = code.getInsns(); try { insns.writeTo(out); } catch (RuntimeException ex) { throw ExceptionWithContext.withContext(ex, "...while writing " + "instructions for " + ref.toHuman()); } }
Example 4
Source File: CodeItem.java From buck with Apache License 2.0 | 5 votes |
/** * Helper for {@link #writeTo0} which writes out the actual bytecode. * * @param file {@code non-null;} file we are part of * @param out {@code non-null;} where to write to */ private void writeCodes(DexFile file, AnnotatedOutput out) { DalvInsnList insns = code.getInsns(); try { insns.writeTo(out); } catch (RuntimeException ex) { throw ExceptionWithContext.withContext(ex, "...while writing " + "instructions for " + ref.toHuman()); } }