public abstract static class AbstractDeclaredStatement.WithRawStringArgument.WithSubstatements extends AbstractDeclaredStatement.WithRawStringArgument
AbstractDeclaredStatement.WithRawStringArgument.WithSubstatements
AbstractDeclaredStatement.ArgumentToString<A>, AbstractDeclaredStatement.WithArgument<A>, AbstractDeclaredStatement.WithQNameArgument, AbstractDeclaredStatement.WithRawArgument<A>, AbstractDeclaredStatement.WithRawStringArgument
Modifier | Constructor and Description |
---|---|
protected |
WithSubstatements(StmtContext<String,?,?> context,
ImmutableList<? extends DeclaredStatement<?>> substatements) |
Modifier and Type | Method and Description |
---|---|
Collection<? extends DeclaredStatement<?>> |
declaredSubstatements()
Returns collection of explicitly declared child statements, while preserving its original ordering from original
source.
|
protected static @NonNull Object |
maskList(ImmutableList<?> list)
Utility method for squashing singleton lists into single objects.
|
protected static <T> @NonNull ImmutableList<T> |
unmaskList(@NonNull Object masked,
@NonNull Class<T> type)
Utility method for recovering singleton lists squashed by
maskList(ImmutableList) . |
argument
rawArgument
getStatementSource, unmaskList
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
declaredSubstatements, findFirstDeclaredSubstatement, findFirstDeclaredSubstatementArgument, streamDeclaredSubstatements
statementDefinition
protected WithSubstatements(StmtContext<String,?,?> context, ImmutableList<? extends DeclaredStatement<?>> substatements)
public final Collection<? extends DeclaredStatement<?>> declaredSubstatements()
DeclaredStatement
declaredSubstatements
in interface DeclaredStatement<String>
declaredSubstatements
in class AbstractDeclaredStatement<String>
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.