W - type of the write payloadpublic class WriteExpressionImpl<W> extends WriteExpressionListImpl<W> implements WriteExpression<W>
WriteExpression.| Constructor and Description |
|---|
WriteExpressionImpl(String channelName)
Constructor that represents a single channel of a particular type.
|
WriteExpressionImpl(WriteExpressionList<?> childExpressions,
WriteFunction<W> function,
String defaultName)
Creates a new write expression.
|
| Modifier and Type | Method and Description |
|---|---|
WriteExpression<W> |
as(String name)
Changes the name for this expression
|
void |
fillWriteRecipe(PVWriterDirector director,
WriteRecipeBuilder builder)
Prepares the recipe to connect the channels needed by this expression.
|
String |
getName()
Name representation of the expression.
|
WriteExpressionImpl<W> |
getWriteExpressionImpl()
The implementation of this expression.
|
WriteFunction<W> |
getWriteFunction()
Returns the function represented by this expression.
|
and, getWriteExpressionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitand, getWriteExpressionspublic WriteExpressionImpl(String channelName)
channelName - the name of the channelpublic WriteExpressionImpl(WriteExpressionList<?> childExpressions, WriteFunction<W> function, String defaultName)
childExpressions - the expressions used as arguments by this expressionfunction - the function that will decompose the payload for this expressiondefaultName - the name for this expressionpublic final WriteExpression<W> as(String name)
name - new namepublic final String getName()
getName in interface WriteExpression<W>public final WriteFunction<W> getWriteFunction()
getWriteFunction in interface WriteExpression<W>public void fillWriteRecipe(PVWriterDirector director, WriteRecipeBuilder builder)
WriteExpressionA dynamic expression, one for which the child expressions can change, can keep a reference to the director to connect/disconnect new child expressions.
fillWriteRecipe in interface WriteExpression<W>director - the director for the readerbuilder - the recipe to fillpublic final WriteExpressionImpl<W> getWriteExpressionImpl()
WriteExpressiongetWriteExpressionImpl in interface WriteExpression<W>Copyright © 2010–2015. All rights reserved.