24 package org.lightjason.agentspeak.language.execution.expressionunary;
33 import javax.annotation.Nonnull;
34 import java.util.List;
35 import java.util.stream.Stream;
60 m_variable = p_variable;
66 return m_variable.toString() +
"++";
72 @Nonnull
final List<ITerm> p_argument, @Nonnull
final List<ITerm> p_return
77 l_variable.
set( l_variable.<Number>raw().doubleValue() + 1 );
86 return Stream.of( m_variable );
T thrownotallocated()
throws an illegal state exception iif the variable is not allocated
boolean valueassignableto( @Nonnull final Class<?>... p_class)
checkes assignable of the value
final Stream< IVariable<?> > variables()
returns a stream with all used variables
IVariable< T > set( @Nullable final T p_value)
sets the value
static< N > IFuzzyValue< N > from( @Nonnull final N p_value)
factory
common structure for execution definition
execution context with local data
static List< ITerm > replaceFromContext( @Nonnull final IContext p_context, @Nonnull final Collection<? extends ITerm > p_terms)
replace variables with context variables
final IVariable< T > m_variable
variable
result for an immutable fuzzy value
interface of variable unary expression
CIncrement( @Nonnull final IVariable< T > p_variable)
ctor
static final long serialVersionUID
serial id
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