/*
* Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
package org.opendaylight.yangtools.yang.parser.spi.meta;
import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement;
import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
public interface StatementFactory, E extends EffectiveStatement> {
/**
* Create a {@link DeclaredStatement} for specified context.
*
* @param ctx Statement context
* @return A declared statement instance.
*/
@NonNull D createDeclared(@NonNull StmtContext ctx);
/**
* Create a {@link EffectiveStatement} for specified context.
*
* @param ctx Statement context
* @return An effective statement instance.
*/
@NonNull E createEffective(@NonNull StmtContext ctx);
}