Class CodeAttributeEditor

    • Field Detail

      • RESTORE_PREVIOUS_LINE_NUMBER

        public static final int RESTORE_PREVIOUS_LINE_NUMBER
        Magic line number that indicates the previous line number should be restored. The restored line number is the first preceding line number with a different source.
        See Also:
        Constant Field Values
      • preOffsetInsertions

        public Instruction[] preOffsetInsertions
      • deleted

        public boolean[] deleted
    • Constructor Detail

      • CodeAttributeEditor

        public CodeAttributeEditor()
        Creates a new CodeAttributeEditor that automatically updates frame sizes and shrinks instructions.
      • CodeAttributeEditor

        public CodeAttributeEditor​(boolean updateFrameSizes,
                                   boolean shrinkInstructions)
        Creates a new CodeAttributeEditor.
        Parameters:
        updateFrameSizes - specifies whether frame sizes of edited code should be updated.
        shrinkInstructions - specifies whether added instructions should automatically be shrunk before being written.