(MethodVisitor visitor, MethodGenerationContext generationContext)
| 86 | } |
| 87 | |
| 88 | @Override |
| 89 | public void accept(MethodVisitor visitor, MethodGenerationContext generationContext) |
| 90 | { |
| 91 | checkState(!condition.isEmpty(), "WhileLoop does not have a condition set"); |
| 92 | |
| 93 | BytecodeBlock block = new BytecodeBlock() |
| 94 | .visitLabel(continueLabel) |
| 95 | .append(condition) |
| 96 | .ifZeroGoto(endLabel) |
| 97 | .append(body) |
| 98 | .gotoLabel(continueLabel) |
| 99 | .visitLabel(endLabel); |
| 100 | |
| 101 | block.accept(visitor, generationContext); |
| 102 | } |
| 103 | |
| 104 | @Override |
| 105 | public List<BytecodeNode> getChildNodes() |
nothing calls this directly
no test coverage detected