< prev index next >

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

Print this page




  13  *
  14  * Unless required by applicable law or agreed to in writing, software
  15  * distributed under the License is distributed on an "AS IS" BASIS,
  16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17  * See the License for the specific language governing permissions and
  18  * limitations under the License.
  19  */
  20 
  21 package com.sun.org.apache.bcel.internal.generic;
  22 
  23 import java.io.DataOutputStream;
  24 import java.io.IOException;
  25 
  26 import com.sun.org.apache.bcel.internal.util.ByteSequence;
  27 
  28 /**
  29  * SIPUSH - Push short
  30  *
  31  * <PRE>Stack: ... -&gt; ..., value</PRE>
  32  *
  33  * @version $Id$
  34  */
  35 public class SIPUSH extends Instruction implements ConstantPushInstruction {
  36 
  37     private short b;
  38 
  39 
  40     /**
  41      * Empty constructor needed for Instruction.readInstruction.
  42      * Not to be used otherwise.
  43      */
  44     SIPUSH() {
  45     }
  46 
  47 
  48     public SIPUSH(final short b) {
  49         super(com.sun.org.apache.bcel.internal.Const.SIPUSH, (short) 3);
  50         this.b = b;
  51     }
  52 
  53 




  13  *
  14  * Unless required by applicable law or agreed to in writing, software
  15  * distributed under the License is distributed on an "AS IS" BASIS,
  16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17  * See the License for the specific language governing permissions and
  18  * limitations under the License.
  19  */
  20 
  21 package com.sun.org.apache.bcel.internal.generic;
  22 
  23 import java.io.DataOutputStream;
  24 import java.io.IOException;
  25 
  26 import com.sun.org.apache.bcel.internal.util.ByteSequence;
  27 
  28 /**
  29  * SIPUSH - Push short
  30  *
  31  * <PRE>Stack: ... -&gt; ..., value</PRE>
  32  *

  33  */
  34 public class SIPUSH extends Instruction implements ConstantPushInstruction {
  35 
  36     private short b;
  37 
  38 
  39     /**
  40      * Empty constructor needed for Instruction.readInstruction.
  41      * Not to be used otherwise.
  42      */
  43     SIPUSH() {
  44     }
  45 
  46 
  47     public SIPUSH(final short b) {
  48         super(com.sun.org.apache.bcel.internal.Const.SIPUSH, (short) 3);
  49         this.b = b;
  50     }
  51 
  52 


< prev index next >