SinglePropStackManipulationSupplier
One possible bytecode outcome would be:
switch(var2) {
case 0:
var4.setC(var3);
return;
case 1:
var4.setA(var3);
return;
case 2:
var4.setB(var3);
return;
case 3:
var4.setE(var3);
return;
default:
}
Another possible bytecode outcome this class could produce would be:
switch(var2) {
case 0:
return var4.getA();
case 1:
return var4.getB();
case 2:
return var4.getC();
case 3:
return var4.getD();
default:
}
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final SinglePropStackManipulationSupplier |
| Access | Constructor and Description |
|---|---|
| public | UsingSwitchStackManipulation(AbstractPropertyStackManipulation.
|
| Modifier and Type | Method and Description |
|---|---|
| public StackManipulation. | apply(MethodVisitor methodVisitor, Implementation.
Implements net. Applies the stack manipulation that is described by this instance. |
| props | back to summary |
|---|---|
| private final List<T> props | |
| singlePropStackManipulationSupplier | back to summary |
|---|---|
| private final SinglePropStackManipulationSupplier<T> singlePropStackManipulationSupplier | |
| UsingSwitchStackManipulation | back to summary |
|---|---|
| public UsingSwitchStackManipulation(AbstractPropertyStackManipulation. | |
| apply | back to summary |
|---|---|
| public StackManipulation. Implements net. Doc from net. Applies the stack manipulation that is described by this instance.
| |