]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.scl.reflection/src/org/simantics/scl/reflection/TypedValue.java
Several Wiki documentation view improvements.
[simantics/platform.git] / bundles / org.simantics.scl.reflection / src / org / simantics / scl / reflection / TypedValue.java
1 package org.simantics.scl.reflection;\r
2 \r
3 import org.simantics.scl.compiler.types.Type;\r
4 \r
5 /**\r
6  * SCL together with its type.\r
7  * @author Hannu Niemistö\r
8  */\r
9 public class TypedValue {\r
10     final Type type;\r
11     final Object value;\r
12     \r
13     public TypedValue(Type type, Object value) {\r
14         this.type = type;\r
15         this.value = value;\r
16     }\r
17     \r
18     @Override\r
19     public String toString() {\r
20         return value.toString() + " :: " + type;\r
21     }\r
22     \r
23     public Type getType() {\r
24         return type;\r
25     }\r
26     \r
27     public Object getValue() {\r
28         return value;\r
29     }\r
30 }