YANGTOOLS-706: Add TypedefEffectiveStatement.asTypeEffectiveStatement()
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / stmt / TypedefEffectiveStatement.java
index de8511de17b0af6f37d2af8e08cd0bb2f0da61d8..f030d0a3f3990db3e83ffe1c30ff2007e997d503 100644 (file)
@@ -7,6 +7,8 @@
  */
 package org.opendaylight.yangtools.yang.model.api.stmt;
 
+import com.google.common.annotations.Beta;
+import javax.annotation.Nonnull;
 import org.opendaylight.yangtools.yang.common.QName;
 import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
 
@@ -15,4 +17,11 @@ import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
  */
 public interface TypedefEffectiveStatement extends EffectiveStatement<QName, TypedefStatement>, TypeDefinitionAware {
 
+    /**
+     * Return this type definition as an effective type statement.
+     *
+     * @return Effective type statement.
+     */
+    @Beta
+    @Nonnull TypeEffectiveStatement<TypeStatement> asTypeEffectiveStatement();
 }