T
- the type of planner expression that is contained in this reference@API(value=EXPERIMENTAL) public class SingleExpressionRef<T extends PlannerExpression> extends Object implements MutableExpressionRef<T>
get()
method.ExpressionRef.UngettableReferenceException
Modifier | Constructor and Description |
---|---|
protected |
SingleExpressionRef(T expression) |
Modifier and Type | Method and Description |
---|---|
<U> U |
acceptPropertyVisitor(PlannerProperty<U> visitor) |
Stream<PlannerBindings> |
bindWithin(ExpressionMatcher<? extends Bindable> matcher)
Try to bind the given matcher to the members of this reference.
|
T |
get()
Return the expression contained in this reference.
|
void |
insert(T newValue)
Replace the current value behind this reference with a new value.
|
static <T extends PlannerExpression> |
of(T expression) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
bindTo
@Nonnull public T get()
ExpressionRef
get
in interface ExpressionRef<T extends PlannerExpression>
public void insert(@Nonnull T newValue)
insert
in interface MutableExpressionRef<T extends PlannerExpression>
newValue
- the new value for this reference to store.public <U> U acceptPropertyVisitor(@Nonnull PlannerProperty<U> visitor)
acceptPropertyVisitor
in interface ExpressionRef<T extends PlannerExpression>
public static <T extends PlannerExpression> SingleExpressionRef<T> of(@Nonnull T expression)
@Nonnull public Stream<PlannerBindings> bindWithin(@Nonnull ExpressionMatcher<? extends Bindable> matcher)
ExpressionRef
Stream
API, so as to minimize unnecessary
work.bindWithin
in interface ExpressionRef<T extends PlannerExpression>
matcher
- an expression matcher to match the member(s) of this reference with