MCPcopy Index your code
hub / github.com/airlift/bytecode / accept

Method accept

src/main/java/io/airlift/bytecode/control/WhileLoop.java:88–102  ·  view source on GitHub ↗
(MethodVisitor visitor, MethodGenerationContext generationContext)

Source from the content-addressed store, hash-verified

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()

Callers

nothing calls this directly

Calls 7

acceptMethod · 0.95
isEmptyMethod · 0.80
gotoLabelMethod · 0.80
appendMethod · 0.80
ifZeroGotoMethod · 0.80
visitLabelMethod · 0.45
visitWhileMethod · 0.45

Tested by

no test coverage detected