24 package org.lightjason.agentspeak.language.execution.expressionbinary;
33 import javax.annotation.Nonnull;
34 import java.text.MessageFormat;
35 import java.util.List;
36 import java.util.stream.Stream;
72 m_operator = p_operator;
79 @Nonnull
final List<ITerm> p_return )
82 l_lhs.
set( m_operator.
apply( l_lhs.
raw(),
CCommon.replaceFromContext( p_context, m_rhs ).raw() ) );
90 return MessageFormat.format(
"{0} {1} {2}", m_lhs, m_operator, m_rhs );
100 ? Stream.of( m_rhs.
term() )
static final long serialVersionUID
serial id
IVariable< T > set( @Nullable final T p_value)
sets the value
final ITerm m_rhs
right-hand-side
static< N > IFuzzyValue< N > from( @Nonnull final N p_value)
factory
common structure for execution definition
final IFuzzyValue< Boolean > execute(final boolean p_parallel, @Nonnull final IContext p_context, @Nonnull final List< ITerm > p_argument, @Nonnull final List< ITerm > p_return)
defines a plan-body operation
final Stream< IVariable<?> > variables()
returns a stream with all used variables
final Number apply(final Number p_lhs, final Number p_rhs)
execution context with local data
COperatorAssign(final IVariable<?> p_lhs, final ITerm p_rhs, final EOperator p_operator)
ctor
default< T extends ITerm > T term()
casts the object to a term-type
final EOperator m_operator
operator
result for an immutable fuzzy value
< T > T raw()
cast to any raw value type
class for any helper calls
interface of a binary expression
assign operator expression
final IVariable<?> m_lhs
left-hand-side