m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/pl/edu/mimuw/cloudatlas/interpreter/EnvironmentTable.java
blob: 8d5c634108a588d6123d73b39e9a79c00f69dbf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package pl.edu.mimuw.cloudatlas.interpreter;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import pl.edu.mimuw.cloudatlas.model.ValueNull;

class EnvironmentTable extends Environment {
    private final Table table;

    public EnvironmentTable(Table table) {
        this.table = table;
    }

    public Result getIdent(String ident) {
        return new ResultColumn(table.getColumn(ident).getValue());
    }
}