# Uses of Class
org.apache.bcel.generic.StackInstruction

Packages that use StackInstruction
Package
Description
org.apache.bcel.generic
Generic part of the Apache Byte Code Engineering Library (BCEL), classes to dynamically modify class objects and byte code instructions.
org.apache.bcel.verifier.structurals
A PassVerifier class mostly used internally by JustIce, yielding a control flow graph for public use as a nice side effect.

- ## Uses of StackInstruction in org.apache.bcel.generic

  Subclasses of StackInstruction in org.apache.bcel.generic
  Modifier and Type
  Class
  Description
  `class`
  `DUP`
  DUP - Duplicate top operand stack word
  `class`
  `DUP_X1`
  DUP_X1 - Duplicate top operand stack word and put two down
  `class`
  `DUP_X2`
  DUP_X2 - Duplicate top operand stack word and put three down
  `class`
  `DUP2`
  DUP2 - Duplicate two top operand stack words
  `class`
  `DUP2_X1`
  DUP2_X1 - Duplicate two top operand stack words and put three down
  `class`
  `DUP2_X2`
  DUP2_X2 - Duplicate two top operand stack words and put four down
  `class`
  `POP`
  POP - Pop top operand stack word
  `class`
  `POP2`
  POP2 - Pop two top operand stack words
  `class`
  `SWAP`
  SWAP - Swa top operand stack word
  Fields in org.apache.bcel.generic declared as StackInstruction
  Modifier and Type
  Field
  Description
  `static final StackInstruction`
  InstructionConst.`DUP`
  DUP instruction.
  `static final StackInstruction`
  InstructionConstants.`DUP`
  Deprecated.
  Use `InstructionConst.DUP`.
  `static final StackInstruction`
  InstructionConst.`DUP_X1`
  DUP_X1 instruction.
  `static final StackInstruction`
  InstructionConstants.`DUP_X1`
  Deprecated.
  Use `InstructionConst.DUP_X1`.
  `static final StackInstruction`
  InstructionConst.`DUP_X2`
  DUP_X2 instruction.
  `static final StackInstruction`
  InstructionConstants.`DUP_X2`
  Deprecated.
  Use `InstructionConst.DUP_X2`.
  `static final StackInstruction`
  InstructionConst.`DUP2`
  DUP2 instruction.
  `static final StackInstruction`
  InstructionConstants.`DUP2`
  Deprecated.
  Use `InstructionConst.DUP2`.
  `static final StackInstruction`
  InstructionConst.`DUP2_X1`
  DUP2_X1 instruction.
  `static final StackInstruction`
  InstructionConstants.`DUP2_X1`
  Deprecated.
  Use `InstructionConst.DUP2_X1`.
  `static final StackInstruction`
  InstructionConst.`DUP2_X2`
  DUP2_X2 instruction.
  `static final StackInstruction`
  InstructionConstants.`DUP2_X2`
  Deprecated.
  Use `InstructionConst.DUP2_X2`.
  `static final StackInstruction`
  InstructionConst.`POP`
  POP instruction.
  `static final StackInstruction`
  InstructionConstants.`POP`
  Deprecated.
  Use `InstructionConst.POP`.
  `static final StackInstruction`
  InstructionConst.`POP2`
  POP2 instruction.
  `static final StackInstruction`
  InstructionConstants.`POP2`
  Deprecated.
  Use `InstructionConst.POP2`.
  `static final StackInstruction`
  InstructionConst.`SWAP`
  SWAP instruction.
  `static final StackInstruction`
  InstructionConstants.`SWAP`
  Deprecated.
  Use `InstructionConst.SWAP`.
  Methods in org.apache.bcel.generic that return StackInstruction
  Modifier and Type
  Method
  Description
  `static StackInstruction`
  InstructionFactory.`createDup(int size)`
  Creates a DUP instruction.
  `static StackInstruction`
  InstructionFactory.`createDup_1(int size)`
  Creates a DUP_X1 instruction.
  `static StackInstruction`
  InstructionFactory.`createDup_2(int size)`
  Creates a DUP_X2 instruction.
  `static StackInstruction`
  InstructionFactory.`createPop(int size)`
  Creates a pop instruction.
  Methods in org.apache.bcel.generic with parameters of type StackInstruction
  Modifier and Type
  Method
  Description
  `void`
  EmptyVisitor.`visitStackInstruction(StackInstruction obj)`
  `void`
  Visitor.`visitStackInstruction(StackInstruction obj)`
  Visits a StackInstruction.

- ## Uses of StackInstruction in org.apache.bcel.verifier.structurals

  Methods in org.apache.bcel.verifier.structurals with parameters of type StackInstruction
  Modifier and Type
  Method
  Description
  `void`
  InstConstraintVisitor.`visitStackInstruction(StackInstruction o)`
  Ensures the general preconditions of a StackInstruction instance.