summaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/search/yql/OperatorTypeChecker.java
blob: 0e91f3c9a849265e1f317e210f9f6ff3e85d59fd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.search.yql;

/**
 * Check the type of a single argument.
 */
abstract class OperatorTypeChecker {

    protected final Operator parent;
    protected final int idx;

    protected OperatorTypeChecker(Operator parent, int idx) {
        this.parent = parent;
        this.idx = idx;
    }

    public abstract void check(Object argument);

}