public abstract class DeclaredEffectiveStatementBase<A,D extends DeclaredStatement<A>> extends EffectiveStatementBase<A,D>
Modifier | Constructor and Description |
---|---|
protected |
DeclaredEffectiveStatementBase(StmtContext<A,D,?> ctx)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
A |
argument()
Returns statement argument.
|
D |
getDeclared()
Returns statement, which was explicit declaration of this effective
statement.
|
StatementSource |
getStatementSource()
Returns statement source, which denotes if statement was
explicitly declared in original model or inferred during
semantic processing of model.
|
protected static @NonNull Object |
maskList(ImmutableList<?> list)
Utility method for squashing singleton lists into single objects.
|
StatementDefinition |
statementDefinition()
Statement Definition of this statement.
|
protected static <T> @NonNull ImmutableList<T> |
unmaskList(@NonNull Object masked,
@NonNull Class<T> type)
Utility method for recovering singleton lists squashed by
maskList(ImmutableList) . |
allSubstatementsOfType, effectiveSubstatements, firstEffectiveSubstatementOfType, firstSchemaNode, firstSubstatementOfType, firstSubstatementOfType, initSubstatements, initSubstatements
get, getAll, getNamespaceContents, unmaskList
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findAll, findFirstEffectiveSubstatement, findFirstEffectiveSubstatementArgument, streamEffectiveSubstatements
protected DeclaredEffectiveStatementBase(StmtContext<A,D,?> ctx)
ctx
- context of statement.public final StatementDefinition statementDefinition()
ModelStatement
public A argument()
ModelStatement
public final StatementSource getStatementSource()
ModelStatement
public final D getDeclared()
EffectiveStatement
protected static final @NonNull Object maskList(ImmutableList<?> list)
list
- list to maskNullPointerException
- if list is nullprotected static final <T> @NonNull ImmutableList<T> unmaskList(@NonNull Object masked, @NonNull Class<T> type)
maskList(ImmutableList)
.masked
- list to unmaskNullPointerException
- if any argument is nullClassCastException
- if masked object does not match expected classCopyright © 2020 OpenDaylight. All rights reserved.