add method to get the raw value representation

This commit is contained in:
2020-02-03 23:42:07 +01:00
parent d5610b0c3f
commit fc33ab6b12

View File

@@ -1,5 +1,7 @@
package de.hsrm.compiler.Klang;
import de.hsrm.compiler.Klang.types.Type;
public class Value {
private Object value;
@@ -7,6 +9,10 @@ public class Value {
this.value = value;
}
public Object asObject() {
return this.value;
}
public int asInteger() {
return (int) this.value;
}