24 package org.lightjason.agentspeak.language.execution.expression;
30 import javax.annotation.Nonnull;
31 import java.text.MessageFormat;
32 import java.util.stream.Stream;
62 if ( !p_operator.isUnary() )
65 m_operator = p_operator;
66 m_expression = p_expression;
86 return m_expression.hashCode() ^ m_operator.hashCode();
90 public final boolean equals(
final Object p_object )
98 return MessageFormat.format(
"{0}({1})", m_operator, m_expression );
static final long serialVersionUID
serial id
final IExpression m_expression
left-hand-side argument
Stream< IVariable<?> > variables()
returns a stream with all used variables
illegal argument exception
static< T > String languagestring(final T p_source, final String p_label, final Object... p_parameter)
returns the language depend string on any object
final EOperator m_operator
expression operator
final IExpression expression()
returns the expression
class for any helper calls
IBaseUnary( @Nonnull final EOperator p_operator, @Nonnull final IExpression p_expression)
ctor
final EOperator operator()
return expression operator
final Stream< IVariable<?> > variables()
returns a stream with all used variables
interface of unary expressions
final boolean equals(final Object p_object)