// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.search.query.profile; import com.yahoo.search.query.profile.types.FieldDescription; import java.util.List; /** * @author bratseth */ final class FieldDescriptionQueryProfileVisitor extends QueryProfileVisitor { /** The result, or null if none */ private FieldDescription result = null; private final List name; private int nameIndex=-1; private boolean enteringContent=false; public FieldDescriptionQueryProfileVisitor(List name) { this.name=name; } @Override public String getLocalKey() { return name.get(nameIndex); } @Override public boolean enter(String name) { if (nameIndex+2