jaxp/src/java.xml/share/classes/com/sun/org/apache/bcel/internal/generic/DUP2.java
changeset 46174 5611d2529b49
parent 44797 8b3b3b911b8a
equal deleted inserted replaced
46173:5546b5710844 46174:5611d2529b49
    19  * limitations under the License.
    19  * limitations under the License.
    20  */
    20  */
    21 
    21 
    22 package com.sun.org.apache.bcel.internal.generic;
    22 package com.sun.org.apache.bcel.internal.generic;
    23 
    23 
    24 
       
    25 /**
    24 /**
    26  * DUP2 - Duplicate two top operand stack words
    25  * DUP2 - Duplicate two top operand stack words
    27  * <PRE>Stack: ..., word2, word1 -&gt; ..., word2, word1, word2, word1</PRE>
    26  * <PRE>Stack: ..., word2, word1 -&gt; ..., word2, word1, word2, word1</PRE>
    28  *
    27  *
    29  * @author  <A HREF="mailto:markus.dahm@berlin.de">M. Dahm</A>
    28  * @version $Id: DUP2.java 1747278 2016-06-07 17:28:43Z britter $
    30  */
    29  */
    31 public class DUP2 extends StackInstruction implements PushInstruction {
    30 public class DUP2 extends StackInstruction implements PushInstruction {
    32   public DUP2() {
    31 
    33     super(com.sun.org.apache.bcel.internal.Constants.DUP2);
    32     public DUP2() {
    34   }
    33         super(com.sun.org.apache.bcel.internal.Const.DUP2);
       
    34     }
    35 
    35 
    36 
    36 
    37   /**
    37     /**
    38    * Call corresponding visitor method(s). The order is:
    38      * Call corresponding visitor method(s). The order is:
    39    * Call visitor methods of implemented interfaces first, then
    39      * Call visitor methods of implemented interfaces first, then
    40    * call methods according to the class hierarchy in descending order,
    40      * call methods according to the class hierarchy in descending order,
    41    * i.e., the most specific visitXXX() call comes last.
    41      * i.e., the most specific visitXXX() call comes last.
    42    *
    42      *
    43    * @param v Visitor object
    43      * @param v Visitor object
    44    */
    44      */
    45   public void accept(Visitor v) {
    45     @Override
    46     v.visitStackProducer(this);
    46     public void accept( final Visitor v ) {
    47     v.visitPushInstruction(this);
    47         v.visitStackProducer(this);
    48     v.visitStackInstruction(this);
    48         v.visitPushInstruction(this);
    49     v.visitDUP2(this);
    49         v.visitStackInstruction(this);
    50   }
    50         v.visitDUP2(this);
       
    51     }
    51 }
    52 }