public abstract static class AbstractDeclaredStatement.ArgumentToString<A> extends AbstractDeclaredStatement<A>
Modifier and Type | Class and Description |
---|---|
static class |
AbstractDeclaredStatement.ArgumentToString.WithSubstatements<A> |
AbstractDeclaredStatement.ArgumentToString<A>, AbstractDeclaredStatement.WithArgument<A>, AbstractDeclaredStatement.WithQNameArgument, AbstractDeclaredStatement.WithRawArgument<A>, AbstractDeclaredStatement.WithRawStringArgument
Modifier | Constructor and Description |
---|---|
protected |
ArgumentToString(A argument) |
Modifier and Type | Method and Description |
---|---|
A |
argument()
Returns statement argument.
|
protected static @NonNull Object |
maskList(ImmutableList<?> list)
Utility method for squashing singleton lists into single objects.
|
String |
rawArgument()
Returns statement argument as was present in original source.
|
protected static <T> @NonNull ImmutableList<T> |
unmaskList(@NonNull Object masked,
@NonNull Class<T> type)
Utility method for recovering singleton lists squashed by
maskList(ImmutableList) . |
declaredSubstatements, getStatementSource, unmaskList
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
declaredSubstatements, findFirstDeclaredSubstatement, findFirstDeclaredSubstatementArgument, streamDeclaredSubstatements
statementDefinition
protected ArgumentToString(A argument)
public final A argument()
ModelStatement
public final String rawArgument()
DeclaredStatement
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.