24 package org.lightjason.agentspeak.language.instantiable.plan.annotation;
29 import javax.annotation.Nonnull;
30 import javax.annotation.Nullable;
31 import java.util.Arrays;
32 import java.util.Objects;
72 @SuppressWarnings(
"unchecked" )
81 return Objects.isNull(
m_value ) || Arrays.stream( p_class ).anyMatch( i -> i.isAssignableFrom(
m_value.getClass() ) );
final< N > N value()
returns the data of the annotation if exists
illegal argument exception
final EType id()
returns the type of the annotation
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 EType m_type
annotation type
final boolean valueassignableto( @Nonnull final Class<?>... p_class)
checkes assignable of the value
class for any helper calls
final T m_value
number data
final T throwvaluenotassignableto( @Nonnull final Class<?>... p_class)
throws an illegal argument exception iif the value is not assignable to the class ...
IBaseAnnotation( @Nonnull final EType p_type, @Nullable final T p_value)
ctor