SinglePropStackManipulationSupplier
One possible bytecode outcome would be:
if (var2 == 0) {
varX.setA(var3);
} else if (var2 == 1) {
varX.setB(var3);
} else {
varX.setC(var3);
}
Another possible bytecode outcome this class could produce would be:
if (var2 == 0) {
return varX.getA();
} else if (var2 == 1) {
return varX.getB();
} else {
return varX.getC();
}
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final SinglePropStackManipulationSupplier |
| Access | Constructor and Description |
|---|---|
| public | UsingIfStackManipulation(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 | |
| UsingIfStackManipulation | back to summary |
|---|---|
| public UsingIfStackManipulation(AbstractPropertyStackManipulation. | |
| apply | back to summary |
|---|---|
| public StackManipulation. Implements net. Doc from net. Applies the stack manipulation that is described by this instance.
| |