Add operation code

This commit is contained in:
Volker Berlin 2017-03-24 22:43:27 +01:00
parent 1db20a66b6
commit 761a5c1b49

View File

@ -19,8 +19,30 @@ package de.inetsoftware.jwebassembly.module;
* @author Volker Berlin
*/
public enum ValueType {
i32,
i64,
f32,
f64
i32(-1),
i64(-2),
f32(-3),
f64(-4),
func(-0x20);
private int code;
/**
* Create instance of the enum
*
* @param code
* the operation code in WebAssembly
*/
private ValueType( int code ) {
this.code = code;
}
/**
* The operation code in WebAssembly.
*
* @return the code
*/
public int getCode() {
return code;
}
}