add method getCodePosition()

This commit is contained in:
Volker 2018-07-15 18:04:18 +02:00
parent 82ad07dd9e
commit 949e3d2aa2

View File

@ -49,4 +49,12 @@ abstract class WasmInstruction {
* if any I/O error occur
*/
abstract void writeTo( @Nonnull ModuleWriter writer ) throws IOException;
/**
* Get current code position in Java method.
* @return the position
*/
int getCodePosition() {
return javaCodePos;
}
}