aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/zwobble/couscous/interpreter/Arguments.java
blob: 07797d9b0b0fbb7ed735e42b2966bb75f1f81894 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package org.zwobble.couscous.interpreter;

import org.zwobble.couscous.interpreter.values.InterpreterValue;
import org.zwobble.couscous.types.Type;

import java.util.List;

public class Arguments {
    private final List<Type> types;
    private final List<InterpreterValue> values;
    
    public Arguments(List<Type> types, List<InterpreterValue> values) {
        this.types = types;
        this.values = values;
    }
    
    public InterpreterValue get(int index) {
        return values.get(index);
    }

    public List<Type> getTypes() {
        return types;
    }

    public List<InterpreterValue> getValues() {
        return values;
    }
}