From b7e0010d6e8e5413fcd66eae158111db509eb27b Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 28 Feb 2016 19:18:28 +0000 Subject: Split ConcreteType up into specialised type implementations --- .../couscous/interpreter/values/ObjectInterpreterValue.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/main/java/org/zwobble/couscous/interpreter/values/ObjectInterpreterValue.java') 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; } -- cgit v1.2.3