diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-02-28 19:18:28 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-02-29 08:04:42 +0000 |
| commit | b7e0010d6e8e5413fcd66eae158111db509eb27b (patch) | |
| tree | 35fafacd7819788b185f803a0c3797a2f54a1dca /src/main/java/org/zwobble/couscous/interpreter/values/ObjectInterpreterValue.java | |
| parent | d3e9fb5ce2a13bdb0ee39e9625494e8c5d2a9383 (diff) | |
Split ConcreteType up into specialised type implementations
Diffstat (limited to 'src/main/java/org/zwobble/couscous/interpreter/values/ObjectInterpreterValue.java')
| -rw-r--r-- | src/main/java/org/zwobble/couscous/interpreter/values/ObjectInterpreterValue.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/org/zwobble/couscous/interpreter/values/ObjectInterpreterValue.java b/src/main/java/org/zwobble/couscous/interpreter/values/ObjectInterpreterValue.java index e15c01d..aadf44b 100644 --- a/src/main/java/org/zwobble/couscous/interpreter/values/ObjectInterpreterValue.java +++ b/src/main/java/org/zwobble/couscous/interpreter/values/ObjectInterpreterValue.java @@ -1,20 +1,21 @@ package org.zwobble.couscous.interpreter.values; +import org.zwobble.couscous.interpreter.types.InterpreterType; import org.zwobble.couscous.values.PrimitiveValue; import java.util.Optional; public class ObjectInterpreterValue implements InterpreterValue { - private final ConcreteType type; + private final InterpreterType type; private final InterpreterFields fields; - public ObjectInterpreterValue(ConcreteType type) { + public ObjectInterpreterValue(InterpreterType type) { this.type = type; this.fields = InterpreterFields.forInstanceOf(type); } @Override - public ConcreteType getType() { + public InterpreterType getType() { return type; } |
