2 * Copyright (c) 2019 PANTHEON.tech, s.r.o. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.yangtools.yang.parser.rfc7950.stmt.path;
10 import static java.util.Objects.requireNonNull;
12 import com.google.common.base.MoreObjects.ToStringHelper;
13 import org.eclipse.jdt.annotation.NonNull;
14 import org.opendaylight.yangtools.yang.model.util.AbstractPathExpression;
15 import org.opendaylight.yangtools.yang.xpath.api.YangLocationPath;
17 final class ParsedPathExpression extends AbstractPathExpression {
18 private final @NonNull YangLocationPath location;
20 ParsedPathExpression(final YangLocationPath location, final String originalString) {
21 super(originalString);
22 this.location = requireNonNull(location);
26 public YangLocationPath getLocation() {
31 protected ToStringHelper addToStringAttributes(final ToStringHelper helper) {
32 return super.addToStringAttributes(helper.add("location", location));