2 * Copyright (c) 2015 Cisco Systems, Inc. and others. 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.spi.meta;
10 import javax.annotation.Nullable;
12 public enum ModelProcessingPhase {
15 * Cross-source relationship resolution phase.
17 * In this phase of processing only statements which affects
18 * cross-source relationship (e.g. imports / includes)
21 * At end of this phase all source related contexts should
22 * be bind to their imports and includes to allow
23 * visibility of custom defined statements in following
28 STATEMENT_DEFINITION(SOURCE_LINKAGE),
29 FULL_DECLARATION(STATEMENT_DEFINITION),
30 EFFECTIVE_MODEL(FULL_DECLARATION);
32 private final ModelProcessingPhase previousPhase;
34 private ModelProcessingPhase(@Nullable ModelProcessingPhase previous) {
35 this.previousPhase = previous;
38 public ModelProcessingPhase getPreviousPhase() {