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.NonNullByDefault;
14 import org.opendaylight.yangtools.yang.model.spi.AbstractPathExpression;
17 final class ParsedPathExpression extends AbstractPathExpression {
18 private final Steps steps;
20 ParsedPathExpression(final Steps steps, final String originalString) {
21 super(originalString);
22 this.steps = requireNonNull(steps);
26 public Steps getSteps() {
31 protected ToStringHelper addToStringAttributes(final ToStringHelper helper) {
32 return super.addToStringAttributes(helper.add("steps", steps));