blob: f7ce1f630306e9e29580faf3a16188e6cf032f19 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package org.zwobble.couscous.interpreter.values;
import org.zwobble.couscous.ast.MethodSignature;
import org.zwobble.couscous.interpreter.Environment;
import java.util.List;
public class StaticReceiverValue implements ReceiverValue {
private final ConcreteType type;
public StaticReceiverValue(ConcreteType type) {
this.type = type;
}
@Override
public InterpreterValue callMethod(Environment environment, MethodSignature signature, List<InterpreterValue> arguments) {
return type.callStaticMethod(environment, signature, arguments);
}
}
|