📄 instructionconstants.java
字号:
package org.apache.bcel.generic;/* ==================================================================== * The Apache Software License, Version 1.1 * * Copyright (c) 2001 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Apache" and "Apache Software Foundation" and * "Apache BCEL" must not be used to endorse or promote products * derived from this software without prior written permission. For * written permission, please contact apache@apache.org. * * 5. Products derived from this software may not be called "Apache", * "Apache BCEL", nor may "Apache" appear in their name, without * prior written permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. */import org.apache.bcel.Constants;/** * This interface contains shareable instruction objects. * * In order to save memory you can use some instructions multiply, * since they have an immutable state and are directly derived from * Instruction. I.e. they have no instance fields that could be * changed. Since some of these instructions like ICONST_0 occur * very frequently this can save a lot of time and space. This * feature is an adaptation of the FlyWeight design pattern, we * just use an array instead of a factory. * * The Instructions can also accessed directly under their names, so * it's possible to write il.append(Instruction.ICONST_0); * * @version $Id: InstructionConstants.java,v 1.1.1.1 2001/10/29 20:00:18 jvanzyl Exp $ * @author <A HREF="mailto:markus.dahm@berlin.de">M. Dahm</A> */public interface InstructionConstants { /** Predefined instruction objects */ public static final Instruction NOP = new NOP(); public static final Instruction ACONST_NULL = new ACONST_NULL(); public static final Instruction ICONST_M1 = new ICONST(-1); public static final Instruction ICONST_0 = new ICONST(0); public static final Instruction ICONST_1 = new ICONST(1); public static final Instruction ICONST_2 = new ICONST(2); public static final Instruction ICONST_3 = new ICONST(3); public static final Instruction ICONST_4 = new ICONST(4); public static final Instruction ICONST_5 = new ICONST(5); public static final Instruction LCONST_0 = new LCONST(0); public static final Instruction LCONST_1 = new LCONST(1); public static final Instruction FCONST_0 = new FCONST(0); public static final Instruction FCONST_1 = new FCONST(1); public static final Instruction FCONST_2 = new FCONST(2); public static final Instruction DCONST_0 = new DCONST(0); public static final Instruction DCONST_1 = new DCONST(1); public static final ArrayInstruction IALOAD = new IALOAD(); public static final ArrayInstruction LALOAD = new LALOAD(); public static final ArrayInstruction FALOAD = new FALOAD(); public static final ArrayInstruction DALOAD = new DALOAD(); public static final ArrayInstruction AALOAD = new AALOAD(); public static final ArrayInstruction BALOAD = new BALOAD(); public static final ArrayInstruction CALOAD = new CALOAD(); public static final ArrayInstruction SALOAD = new SALOAD(); public static final ArrayInstruction IASTORE = new IASTORE(); public static final ArrayInstruction LASTORE = new LASTORE(); public static final ArrayInstruction FASTORE = new FASTORE(); public static final ArrayInstruction DASTORE = new DASTORE(); public static final ArrayInstruction AASTORE = new AASTORE(); public static final ArrayInstruction BASTORE = new BASTORE(); public static final ArrayInstruction CASTORE = new CASTORE(); public static final ArrayInstruction SASTORE = new SASTORE(); public static final StackInstruction POP = new POP(); public static final StackInstruction POP2 = new POP2(); public static final StackInstruction DUP = new DUP(); public static final StackInstruction DUP_X1 = new DUP_X1(); public static final StackInstruction DUP_X2 = new DUP_X2(); public static final StackInstruction DUP2 = new DUP2(); public static final StackInstruction DUP2_X1 = new DUP2_X1(); public static final StackInstruction DUP2_X2 = new DUP2_X2(); public static final StackInstruction SWAP = new SWAP(); public static final ArithmeticInstruction IADD = new IADD(); public static final ArithmeticInstruction LADD = new LADD(); public static final ArithmeticInstruction FADD = new FADD(); public static final ArithmeticInstruction DADD = new DADD(); public static final ArithmeticInstruction ISUB = new ISUB(); public static final ArithmeticInstruction LSUB = new LSUB(); public static final ArithmeticInstruction FSUB = new FSUB(); public static final ArithmeticInstruction DSUB = new DSUB(); public static final ArithmeticInstruction IMUL = new IMUL(); public static final ArithmeticInstruction LMUL = new LMUL(); public static final ArithmeticInstruction FMUL = new FMUL(); public static final ArithmeticInstruction DMUL = new DMUL(); public static final ArithmeticInstruction IDIV = new IDIV(); public static final ArithmeticInstruction LDIV = new LDIV(); public static final ArithmeticInstruction FDIV = new FDIV(); public static final ArithmeticInstruction DDIV = new DDIV(); public static final ArithmeticInstruction IREM = new IREM(); public static final ArithmeticInstruction LREM = new LREM(); public static final ArithmeticInstruction FREM = new FREM(); public static final ArithmeticInstruction DREM = new DREM(); public static final ArithmeticInstruction INEG = new INEG(); public static final ArithmeticInstruction LNEG = new LNEG(); public static final ArithmeticInstruction FNEG = new FNEG(); public static final ArithmeticInstruction DNEG = new DNEG(); public static final ArithmeticInstruction ISHL = new ISHL(); public static final ArithmeticInstruction LSHL = new LSHL(); public static final ArithmeticInstruction ISHR = new ISHR(); public static final ArithmeticInstruction LSHR = new LSHR(); public static final ArithmeticInstruction IUSHR = new IUSHR(); public static final ArithmeticInstruction LUSHR = new LUSHR(); public static final ArithmeticInstruction IAND = new IAND(); public static final ArithmeticInstruction LAND = new LAND(); public static final ArithmeticInstruction IOR = new IOR(); public static final ArithmeticInstruction LOR = new LOR(); public static final ArithmeticInstruction IXOR = new IXOR(); public static final ArithmeticInstruction LXOR = new LXOR(); public static final ConversionInstruction I2L = new I2L(); public static final ConversionInstruction I2F = new I2F(); public static final ConversionInstruction I2D = new I2D(); public static final ConversionInstruction L2I = new L2I(); public static final ConversionInstruction L2F = new L2F(); public static final ConversionInstruction L2D = new L2D(); public static final ConversionInstruction F2I = new F2I(); public static final ConversionInstruction F2L = new F2L(); public static final ConversionInstruction F2D = new F2D();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -