Lines Matching defs:to

33  *    "Apache BCEL" must not be used to endorse or promote products
76 * (read only) access to the list structure, such that it can be traversed and
79 * A list is finally dumped to a byte code array with <a
90 private int[] byte_positions; // byte code offsets corresponding to instructions
129 * Find the target instruction (handle) that corresponds to the given target
133 * @param pos array of positions corresponding to ihs, i.e. il.getInstructionPositions()
135 * @param target target position to search for
165 * @param pos byte code position to search for
185 * to the list.
210 byte_positions = new int[count]; // Trim to proper size
214 * convert offsets to instruction handles.
252 * @param ih where to append the instruction list
253 * @param il Instruction list to append to this one
254 * @return instruction handle pointing to the <B>first</B> appended instruction
260 if(il.isEmpty()) // Nothing to do
286 * @param i where to append the instruction list
287 * @param il Instruction list to append to this one
288 * @return instruction handle pointing to the <B>first</B> appended instruction
301 * Append another list to this one.
304 * @param il list to append to end of this list
311 if(il.isEmpty()) // Nothing to do
327 * Append an instruction to the end of this list.
329 * @param ih instruction to append
347 * Append an instruction to the end of this list.
349 * @param i instruction to append
360 * Append a branch instruction to the end of this list.
362 * @param i branch instruction to append
377 * @param j Instruction to append after i in list
408 * @param ih where to append the instruction list
419 * @param ih where to append the instruction list
420 * @param i Instruction to append
421 * @return instruction handle pointing to the <B>first</B> appended instruction
430 * @param ih where to append the instruction list
431 * @param i Instruction to append
432 * @return instruction handle pointing to the <B>first</B> appended instruction
448 * @param i where to append the instruction list
449 * @param il Instruction list to insert
456 if(il.isEmpty()) // Nothing to do
481 * @param il list to insert before start of this list
496 * @param ih instruction to insert
516 * @param i where to append the instruction list
517 * @param il Instruction list to insert
518 * @return instruction handle pointing to the first inserted instruction,
534 * @param i instruction to insert
547 * @param i branch instruction to insert
561 * @param j Instruction to insert before i in list
592 * @param ih where to insert to the instruction list
593 * @param i Instruction to insert
603 * @param ih where to insert the instruction list
614 * @param ih where to insert to the instruction list
615 * @param i Instruction to insert
629 * Take all instructions (handles) from "start" to "end" and append them after the
631 * not be located withing this range. If you want to move something to the start of
633 * Any instruction targeters pointing to handles within the block, keep their targets.
643 throw new ClassGenException("Invalid null handle: From " + start + " to " + end);
646 throw new ClassGenException("Invalid range: From " + start + " to " + end +
651 throw new ClassGenException("Invalid range: From " + start + " to " + end);
653 throw new ClassGenException("Invalid range: From " + start + " to " + end +
675 if(target == null) { // append to start of list
691 * Move a single instruction (handle) to a new location.
701 * Remove from instruction `prev' to instruction `next' both contained
705 * @param prev where to start deleting (predecessor, exclusive)
706 * @param next where to end deleting (successor, exclusive)
768 * @param ih instruction (handle) to remove
778 * @param i instruction to remove
790 * Remove instructions from instruction `from' to instruction `to' contained
792 * `to', or risk havoc. The corresponding Instruction handles must not be reused!
794 * @param from where to start deleting (inclusive)
795 * @param to where to end deleting (inclusive)
797 public void delete(InstructionHandle from, InstructionHandle to)
800 remove(from.prev, to.next);
804 * Remove instructions from instruction `from' to instruction `to' contained
806 * `to', or risk havoc. The corresponding Instruction handles must not be reused!
808 * @param from where to start deleting (inclusive)
809 * @param to where to end deleting (inclusive)
811 public void delete(Instruction from, Instruction to) throws TargetLostException {
818 if((to_ih = findInstruction2(to)) == null)
819 throw new ClassGenException("Instruction " + to +
827 * @param i instruction to search for
841 * @param i instruction to search for
873 * make the list ready to be dumped.
876 * to this list
951 /* Pass 3: Update position numbers (which may have changed due to the
963 byte_positions = new int[count]; // Trim to proper size
968 * When everything is finished, use this method to convert the instruction
971 * @return the byte code ready to be dumped
1081 /* Pass 1: Make copies of all instructions, append them to the new list
1129 /** Replace all references to the old constant pool with references to the new
1158 /* Causes BranchInstructions to release target and targeters, because it
1187 * Redirect all references from old_target to new_target, i.e., update targets
1217 * Redirect all references of local variables from old_target to new_target.
1240 * Redirect all references of exception handlers from old_target to new_target.
1281 * automatically whenever the state has changed, but has to be