public abstract class BytecodeProducer extends Object
| Modifier and Type | Field and Description |
|---|---|
protected SourceLocation |
location |
| Modifier | Constructor and Description |
|---|---|
protected |
BytecodeProducer() |
protected |
BytecodeProducer(SourceLocation location) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
doGen(CodeBuilder adapter) |
void |
gen(CodeBuilder adapter)
Writes the bytecode to the adapter.
|
String |
trace()
Returns a human readable string for the code that this
BytecodeProducer generates. |
protected final SourceLocation location
protected BytecodeProducer()
protected BytecodeProducer(SourceLocation location)
public final void gen(CodeBuilder adapter)
protected abstract void doGen(CodeBuilder adapter)
public final String trace()
BytecodeProducer generates.