Package org.aspectj.apache.bcel.generic

Examples of org.aspectj.apache.bcel.generic.InstructionTargeter.updateTarget()


                        kind == Shadow.MethodExecution ||
                        kind == Shadow.PreInitialization ||
                        kind == Shadow.Initialization ||
                        kind == Shadow.StaticInitialization) {
                        // if we're extracting a whole block we can do this...
                        source.updateTarget(oldIh, freshIh);
                      } else {
                            // XXX destroying local variable info
                        // but only for a call or get join point, so no big deal
                        source.updateTarget(oldIh, null);
                      }
View Full Code Here


                        // if we're extracting a whole block we can do this...
                        source.updateTarget(oldIh, freshIh);
                      } else {
                            // XXX destroying local variable info
                        // but only for a call or get join point, so no big deal
                        source.updateTarget(oldIh, null);
                      }
                    } else if (source instanceof Range) {
                        // exceptions and shadows are just moved
                        ((Range)source).updateTarget(oldIh, freshIh, freshBody);
                    } else {
View Full Code Here

                        // exceptions and shadows are just moved
                        ((Range)source).updateTarget(oldIh, freshIh, freshBody);
                    } else {
                        // line numbers can be shared,
                        // branches will be copied along with us.
                        source.updateTarget(oldIh, freshIh);
                    }
                }
            }
      // we're now done with the old instruction entirely, and will ignore them through
      // the rest of this loop.  The only time we'll see them again is a second pass to
View Full Code Here

                InstructionTargeter t = ts[j];
                if (t == this) continue;
                if (! addReturn) {
                    throw new BCException("range has target, but we aren't adding a return");
                } else {
                    t.updateTarget(end, ret);
                }
            }
        }

      LazyMethodGen.assertGoodBody(getBody(), toString());
View Full Code Here

        InstructionList il = enclosingMethod.getBody();
        InstructionTargeter[] targeters = ih.getTargeters();
        if (targeters != null) {
            for (int i = targeters.length - 1; i >= 0; i--) {
                InstructionTargeter targeter = targeters[i];
                targeter.updateTarget(ih, retargetTo);
            }
            ih.removeAllTargeters();
        }
        try {
            il.delete(ih);
View Full Code Here

    InstructionTargeter[] sources = from.getTargeters();
    if (sources != null) {
      for (int i = sources.length - 1; i >= 0; i--) {
        InstructionTargeter source = sources[i];
        if (source instanceof BranchInstruction) {
          source.updateTarget(from, to);
        }
      }
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.