public abstract static class AbstractDeclaredStatement.WithRawStringArgument extends AbstractDeclaredStatement.WithRawArgument<String>
Modifier and Type | Class and Description |
---|---|
static class |
AbstractDeclaredStatement.WithRawStringArgument.WithSubstatements |
AbstractDeclaredStatement.ArgumentToString<A>, AbstractDeclaredStatement.WithArgument<A>, AbstractDeclaredStatement.WithQNameArgument, AbstractDeclaredStatement.WithRawArgument<A>, AbstractDeclaredStatement.WithRawStringArgument
Modifier | Constructor and Description |
---|---|
protected |
WithRawStringArgument(StmtContext<String,?,?> context) |
Modifier and Type | Method and Description |
---|---|
String |
argument()
Returns statement argument.
|
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) . |
rawArgument
declaredSubstatements, getStatementSource, unmaskList
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
declaredSubstatements, findFirstDeclaredSubstatement, findFirstDeclaredSubstatementArgument, streamDeclaredSubstatements
statementDefinition
protected WithRawStringArgument(StmtContext<String,?,?> context)
public final String argument()
ModelStatement
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.