A
- Argument type (Void
if statement does not have argument.)D
- Class representing declared version of this statement.public abstract class EffectiveStatementBase<A,D extends DeclaredStatement<A>> extends AbstractEffectiveStatement<A,D>
AbstractEffectiveStatement
, which holds substatements in an ImmutableList
.Modifier | Constructor and Description |
---|---|
protected |
EffectiveStatementBase(StmtContext<A,D,?> ctx)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
<T> Collection<T> |
allSubstatementsOfType(Class<T> type) |
Collection<? extends EffectiveStatement<?,?>> |
effectiveSubstatements()
Returns a collection of all effective substatements.
|
protected EffectiveStatement<?,?> |
firstEffectiveSubstatementOfType(Class<?> type) |
protected <S extends SchemaNode> |
firstSchemaNode(Class<S> type) |
protected <R> R |
firstSubstatementOfType(Class<?> type,
Class<R> returnType) |
protected <T> T |
firstSubstatementOfType(Class<T> type) |
protected Collection<? extends EffectiveStatement<?,?>> |
initSubstatements(Collection<? extends StmtContext<?,?,?>> substatementsInit)
Create a set of substatements.
|
protected Collection<? extends EffectiveStatement<?,?>> |
initSubstatements(StmtContext<A,D,?> ctx,
Collection<? extends StmtContext<?,?,?>> substatementsInit) |
get, getAll, getNamespaceContents
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findAll, findFirstEffectiveSubstatement, findFirstEffectiveSubstatementArgument, getDeclared, streamEffectiveSubstatements
argument, getStatementSource, statementDefinition
protected EffectiveStatementBase(StmtContext<A,D,?> ctx)
ctx
- context of statement.@Beta protected Collection<? extends EffectiveStatement<?,?>> initSubstatements(StmtContext<A,D,?> ctx, Collection<? extends StmtContext<?,?,?>> substatementsInit)
protected Collection<? extends EffectiveStatement<?,?>> initSubstatements(Collection<? extends StmtContext<?,?,?>> substatementsInit)
substatementsInit
- proposed substatementspublic final Collection<? extends EffectiveStatement<?,?>> effectiveSubstatements()
EffectiveStatement
public final <T> Collection<T> allSubstatementsOfType(Class<T> type)
protected final <T> T firstSubstatementOfType(Class<T> type)
protected final <R> R firstSubstatementOfType(Class<?> type, Class<R> returnType)
protected final EffectiveStatement<?,?> firstEffectiveSubstatementOfType(Class<?> type)
protected final <S extends SchemaNode> S firstSchemaNode(Class<S> type)
Copyright © 2020 OpenDaylight. All rights reserved.