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