24 package org.lightjason.agentspeak.language.execution.expression.logical;
36 import javax.annotation.Nonnull;
37 import java.util.Collections;
38 import java.util.LinkedList;
39 import java.util.List;
60 super( p_operator, p_expression );
68 @Nonnull
final List<ITerm> p_argument, @Nonnull
final List<ITerm> p_return )
70 final List<ITerm> l_argument =
new LinkedList<>();
71 final boolean l_result =
m_expression.
execute( p_parallel, p_context, Collections.<
ITerm>emptyList(), l_argument ).value();
72 if ( l_argument.size() != 1 )
79 !( l_result && l_argument.get( 0 ).<Boolean>raw() )
static final long serialVersionUID
serial id
final IExpression m_expression
left-hand-side argument
final boolean isLogical()
check of a logical operator
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
illegal argument exception
static< N > IFuzzyValue< N > from( @Nonnull final N p_value)
factory
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
static< T > String languagestring(final T p_source, final String p_label, final Object... p_parameter)
returns the language depend string on any object
execution context with local data
final EOperator m_operator
expression operator
result for an immutable fuzzy value
CUnary( @Nonnull final EOperator p_operator, @Nonnull final IExpression p_expression)
ctor
static< N > CRawTerm< N > from(final N p_value)
factory for a raw term
class for any helper calls
term structure for simple datatypes