< prev index next >

src/java.xml/share/classes/com/sun/org/apache/bcel/internal/generic/IFEQ.java

Print this page

        

*** 19,52 **** * limitations under the License. */ package com.sun.org.apache.bcel.internal.generic; - /** * IFEQ - Branch if int comparison with zero succeeds * * <PRE>Stack: ..., value -&gt; ...</PRE> * ! * @author <A HREF="mailto:markus.dahm@berlin.de">M. Dahm</A> */ public class IFEQ extends IfInstruction { /** * Empty constructor needed for the Class.newInstance() statement in * Instruction.readInstruction(). Not to be used otherwise. */ ! IFEQ() {} ! public IFEQ(InstructionHandle target) { ! super(com.sun.org.apache.bcel.internal.Constants.IFEQ, target); } /** * @return negation of instruction, e.g. IFEQ.negate() == IFNE */ public IfInstruction negate() { ! return new IFNE(target); } /** * Call corresponding visitor method(s). The order is: --- 19,56 ---- * limitations under the License. */ package com.sun.org.apache.bcel.internal.generic; /** * IFEQ - Branch if int comparison with zero succeeds * * <PRE>Stack: ..., value -&gt; ...</PRE> * ! * @version $Id: IFEQ.java 1747278 2016-06-07 17:28:43Z britter $ */ public class IFEQ extends IfInstruction { + /** * Empty constructor needed for the Class.newInstance() statement in * Instruction.readInstruction(). Not to be used otherwise. */ ! IFEQ() { ! } ! ! public IFEQ(final InstructionHandle target) { ! super(com.sun.org.apache.bcel.internal.Const.IFEQ, target); } + /** * @return negation of instruction, e.g. IFEQ.negate() == IFNE */ + @Override public IfInstruction negate() { ! return new IFNE(super.getTarget()); } /** * Call corresponding visitor method(s). The order is:
*** 54,64 **** * call methods according to the class hierarchy in descending order, * i.e., the most specific visitXXX() call comes last. * * @param v Visitor object */ ! public void accept(Visitor v) { v.visitStackConsumer(this); v.visitBranchInstruction(this); v.visitIfInstruction(this); v.visitIFEQ(this); } --- 58,69 ---- * call methods according to the class hierarchy in descending order, * i.e., the most specific visitXXX() call comes last. * * @param v Visitor object */ ! @Override ! public void accept( final Visitor v ) { v.visitStackConsumer(this); v.visitBranchInstruction(this); v.visitIfInstruction(this); v.visitIFEQ(this); }
< prev index next >