< prev index next >

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

Print this page




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




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

  34  */
  35 public class RET extends Instruction implements IndexedInstruction, TypedInstruction {
  36 
  37     private boolean wide;
  38     private int index; // index to local variable containg the return address
  39 
  40 
  41     /**
  42      * Empty constructor needed for Instruction.readInstruction.
  43      * Not to be used otherwise.
  44      */
  45     RET() {
  46     }
  47 
  48 
  49     public RET(final int index) {
  50         super(com.sun.org.apache.bcel.internal.Const.RET, (short) 2);
  51         setIndex(index); // May set wide as side effect
  52     }
  53 


< prev index next >