public class CaseThrowExpressionEntryEmitter extends Emitter
throw keyword.
Rewrites an expression like:
case 0 -> throw new Exception();
^ ^
into:
case 0 -> { R.inc(); throw new Exception();
~~~~~~~~~~ ^ ^
CaseThrowExpressionExitEmitter| Constructor and Description |
|---|
CaseThrowExpressionEntryEmitter(ContextSet context,
int line,
int column,
int endLine,
int endCol,
int complexity) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
init(InstrumentationState state) |
acceptsContextType, addContext, addDependent, emit, getColumn, getElementContext, getInstr, getLine, initialise, isEnabled, setEnabled, setInstrpublic CaseThrowExpressionEntryEmitter(ContextSet context, int line, int column, int endLine, int endCol, int complexity)
protected void init(InstrumentationState state)
Copyright © 2024 OpenClover.org. All rights reserved.