package org.opendaylight.yangtools.yang.parser.spi.meta;
import java.util.Optional;
+import javax.annotation.Nullable;
import org.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement;
import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.meta.StatementDefinition;
* @throws SourceException when an inconsistency is detected.
*/
void onFullDefinitionDeclared(StmtContext.Mutable<A, D, E> stmt);
+
+ /**
+ * Returns true if this support has argument specific supports.
+ */
+ boolean hasArgumentSpecificSupports();
+
+ /**
+ * If this support has argument specific supports, the method returns
+ * support specific for given argument (e.g. type statement support need to
+ * be specialized based on its argument), otherwise returns null.
+ *
+ * @param argument
+ * argument of statement
+ * @return statement support specific for supplied argument or null
+ */
+ @Nullable
+ StatementSupport<?, ?, ?> getSupportSpecificForArgument(String argument);
}
\ No newline at end of file