Class InstructionSequence

    • Constructor Detail

      • InstructionSequence

        protected InstructionSequence()
    • Method Detail

      • clear

        public void clear()
      • addInstruction

        public void addInstruction​(Instruction inst,
                                   int offset)
      • addInstruction

        public void addInstruction​(int index,
                                   Instruction inst,
                                   int offset)
      • removeInstruction

        public void removeInstruction​(int index)
      • removeInstruction

        public void removeInstruction​(Instruction inst)
      • removeLast

        public void removeLast()
      • getInstr

        public Instruction getInstr​(int index)
      • getOffset

        public int getOffset​(int index)
      • getPointerByAbsOffset

        public int getPointerByAbsOffset​(int offset)
      • getPointerByRelOffset

        public int getPointerByRelOffset​(int offset)
      • length

        public int length()
      • isEmpty

        public boolean isEmpty()
      • addToPointer

        public void addToPointer​(int diff)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toString

        public java.lang.String toString​(int indent)
      • getPointer

        public int getPointer()
      • setPointer

        public void setPointer​(int pointer)
      • iterator

        public java.util.Iterator<Instruction> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<Instruction>