From 11f0639de5913d78ef8a83421dd2afa06a6fd792 Mon Sep 17 00:00:00 2001 From: aclement Date: Fri, 2 Sep 2011 22:33:04 +0000 Subject: [PATCH] 356612 --- .../apache/bcel/generic/InstructionList.java | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/bcel-builder/src/org/aspectj/apache/bcel/generic/InstructionList.java b/bcel-builder/src/org/aspectj/apache/bcel/generic/InstructionList.java index 6d8148f92..25f97836f 100644 --- a/bcel-builder/src/org/aspectj/apache/bcel/generic/InstructionList.java +++ b/bcel-builder/src/org/aspectj/apache/bcel/generic/InstructionList.java @@ -76,7 +76,7 @@ import org.aspectj.apache.bcel.util.ByteSequence; * * A list is finally dumped to a byte code array with getByteCode. * - * @version $Id: InstructionList.java,v 1.11 2010/09/15 18:18:01 aclement Exp $ + * @version $Id: InstructionList.java,v 1.12 2011/09/02 22:33:04 aclement Exp $ * @author M. Dahm * @author Abraham Nevado * @see Instruction @@ -355,6 +355,24 @@ public class InstructionList implements Serializable { return ih; } + public InstructionHandle appendDUP() { + InstructionHandle ih = InstructionHandle.getInstructionHandle(InstructionConstants.DUP); + append(ih); + return ih; + } + + public InstructionHandle appendNOP() { + InstructionHandle ih = InstructionHandle.getInstructionHandle(InstructionConstants.NOP); + append(ih); + return ih; + } + + public InstructionHandle appendPOP() { + InstructionHandle ih = InstructionHandle.getInstructionHandle(InstructionConstants.POP); + append(ih); + return ih; + } + /** * Append a branch instruction to the end of this list. * -- 2.39.5