blob: bbb74195ee1d9740b57f63ec0807a91ac4dc5039 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.search.query.textserialize.item;
import com.yahoo.search.query.textserialize.parser.DispatchFormHandler;
import java.util.List;
/**
* @author Tony Vaagenes
*/
public class ItemFormHandler implements DispatchFormHandler{
@Override
public Object dispatch(String name, List<Object> arguments, Object dispatchContext) {
ItemFormConverter executor = ItemExecutorRegistry.getByName(name);
return executor.formToItem(name, new ItemArguments(arguments), (ItemContext)dispatchContext);
}
}
|