< prev index next >

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

Print this page




  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.Const;
  28 import com.sun.org.apache.bcel.internal.ExceptionConst;
  29 import com.sun.org.apache.bcel.internal.classfile.ConstantPool;
  30 import com.sun.org.apache.bcel.internal.util.ByteSequence;
  31 
  32 /**
  33  * INVOKEINTERFACE - Invoke interface method
  34  * <PRE>Stack: ..., objectref, [arg1, [arg2 ...]] -&gt; ...</PRE>
  35  *
  36  * @version $Id$
  37  * @see
  38  * <a href="http://docs.oracle.com/javase/specs/jvms/se8/html/jvms-6.html#jvms-6.5.invokeinterface">
  39  * The invokeinterface instruction in The Java Virtual Machine Specification</a>
  40  */
  41 public final class INVOKEINTERFACE extends InvokeInstruction {
  42 
  43     private int nargs; // Number of arguments on stack (number of stack slots), called "count" in vmspec2
  44 
  45 
  46     /**
  47      * Empty constructor needed for Instruction.readInstruction.
  48      * Not to be used otherwise.
  49      */
  50     INVOKEINTERFACE() {
  51     }
  52 
  53 
  54     public INVOKEINTERFACE(final int index, final int nargs) {
  55         super(Const.INVOKEINTERFACE, index);
  56         super.setLength(5);




  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.Const;
  28 import com.sun.org.apache.bcel.internal.ExceptionConst;
  29 import com.sun.org.apache.bcel.internal.classfile.ConstantPool;
  30 import com.sun.org.apache.bcel.internal.util.ByteSequence;
  31 
  32 /**
  33  * INVOKEINTERFACE - Invoke interface method
  34  * <PRE>Stack: ..., objectref, [arg1, [arg2 ...]] -&gt; ...</PRE>
  35  *

  36  * @see
  37  * <a href="http://docs.oracle.com/javase/specs/jvms/se8/html/jvms-6.html#jvms-6.5.invokeinterface">
  38  * The invokeinterface instruction in The Java Virtual Machine Specification</a>
  39  */
  40 public final class INVOKEINTERFACE extends InvokeInstruction {
  41 
  42     private int nargs; // Number of arguments on stack (number of stack slots), called "count" in vmspec2
  43 
  44 
  45     /**
  46      * Empty constructor needed for Instruction.readInstruction.
  47      * Not to be used otherwise.
  48      */
  49     INVOKEINTERFACE() {
  50     }
  51 
  52 
  53     public INVOKEINTERFACE(final int index, final int nargs) {
  54         super(Const.INVOKEINTERFACE, index);
  55         super.setLength(5);


< prev index next >