24 package org.lightjason.agentspeak.action.builtin.generic.type;
33 import javax.annotation.Nonnegative;
34 import javax.annotation.Nonnull;
35 import java.util.List;
36 import java.util.stream.Collectors;
74 @Nonnull
final List<ITerm> p_argument, @Nonnull
final List<ITerm> p_return
77 final List<ITerm> l_arguments =
CCommon.
flatten( p_argument ).collect( Collectors.toList() );
78 final Class<?> l_class;
81 l_class = Class.forName( l_arguments.get( 0 ).<String>raw() );
83 catch (
final ClassNotFoundException l_exception )
92 .allMatch( i -> l_class.isAssignableFrom( i.getClass() ) )
base class of build-in actions for setting name by package/classname (without prefix character) ...
static final long serialVersionUID
serial id
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
execution context with local data
static Stream< ITerm > flatten( @Nonnull final Collection<? extends ITerm > p_terms)
flat term-in-term collection into a straight term list
result for an immutable fuzzy value
< T > T raw()
cast to any raw value type
final int minimalArgumentNumber()
minimum number of arguments
action to check if a type is a class.