return Collections.unmodifiableCollection(declared);
}
+ /**
+ * @return collection of substatements
+ */
+ @Override
+ public Collection<StatementContextBase<?, ?, ?>> substatements() {
+ return Collections.unmodifiableCollection(substatements.values());
+ }
+
/**
* @return collection of effective substatements
*/
* if added in declared phase
* @throws NullPointerException
* if statement parameter is null
+ *
+ * @param substatement substatement
*/
public void addEffectiveSubstatement(StatementContextBase<?, ?, ?> substatement) {
* if added in effective phase
* @throws NullPointerException
* if statement parameter is null
+ *
+ * @param substatement substatement
*/
public void addDeclaredSubstatement(StatementContextBase<?, ?, ?> substatement) {
/**
* builds new substatement from statement definition context and statement source reference
+ *
+ * @param def definition context
+ * @param ref source reference
+ *
+ * @return instance of ContextBuilder
*/
@SuppressWarnings({ "rawtypes", "unchecked" })
public ContextBuilder<?, ?, ?> substatementBuilder(StatementDefinitionContext<?, ?, ?> def,
/**
* occurs when an item is added to model namespace
*
- * @throws SourceException
+ * @throws SourceException instance of SourceException
*/
@Override
protected <K, V, N extends IdentifierNamespace<K, V>> void onNamespaceElementAdded(Class<N> type, K key, V value) {