LightJason - AgentSpeak(L++)
org.lightjason.agentspeak.language.instantiable.plan.annotation.IBaseAnnotation< T > Class Template Referenceabstract

annotation base More...

+ Inheritance diagram for org.lightjason.agentspeak.language.instantiable.plan.annotation.IBaseAnnotation< T >:
+ Collaboration diagram for org.lightjason.agentspeak.language.instantiable.plan.annotation.IBaseAnnotation< T >:

Public Member Functions

final EType id ()
 returns the type of the annotation More...
 
final T throwvaluenotassignableto ( @Nonnull final Class<?>... p_class) throws IllegalArgumentException
 throws an illegal argument exception iif the value is not assignable to the class More...
 
final< N > N value ()
 returns the data of the annotation if exists More...
 
final boolean valueassignableto ( @Nonnull final Class<?>... p_class)
 checkes assignable of the value More...
 
- Public Member Functions inherited from org.lightjason.agentspeak.language.instantiable.plan.annotation.IAnnotation< T >
Stream< IVariable<?> > variables ()
 returns a stream of variables More...
 

Protected Member Functions

 IBaseAnnotation ( @Nonnull final EType p_type, @Nullable final T p_value)
 ctor More...
 

Protected Attributes

final EType m_type
 annotation type More...
 
final T m_value
 number data More...
 

Detailed Description

Template Parameters
Tannotation data

Definition at line 40 of file IBaseAnnotation.java.

Constructor & Destructor Documentation

◆ IBaseAnnotation()

org.lightjason.agentspeak.language.instantiable.plan.annotation.IBaseAnnotation< T >.IBaseAnnotation ( @Nonnull final EType  p_type,
@Nullable final T  p_value 
)
protected
Parameters
p_typetype
p_valuedata

Definition at line 57 of file IBaseAnnotation.java.

Member Function Documentation

◆ id()

◆ throwvaluenotassignableto()

final T org.lightjason.agentspeak.language.instantiable.plan.annotation.IBaseAnnotation< T >.throwvaluenotassignableto ( @Nonnull final Class<?>...  p_class) throws IllegalArgumentException
Parameters
p_classassignable class
Returns
object itself
Exceptions
IllegalArgumentExceptionon assignable error

Implements org.lightjason.agentspeak.language.IAssignable< T >.

Definition at line 86 of file IBaseAnnotation.java.

References org.lightjason.agentspeak.common.CCommon.languagestring(), org.lightjason.agentspeak.language.instantiable.plan.annotation.IBaseAnnotation< T >.m_value, and org.lightjason.agentspeak.language.instantiable.plan.annotation.IBaseAnnotation< T >.valueassignableto().

+ Here is the call graph for this function:

◆ value()

◆ valueassignableto()

final boolean org.lightjason.agentspeak.language.instantiable.plan.annotation.IBaseAnnotation< T >.valueassignableto ( @Nonnull final Class<?>...  p_class)
Parameters
p_classclass
Returns
assignable (on null always true)

Implements org.lightjason.agentspeak.language.IAssignable< T >.

Definition at line 79 of file IBaseAnnotation.java.

References org.lightjason.agentspeak.language.instantiable.plan.annotation.IBaseAnnotation< T >.m_value.

Referenced by org.lightjason.agentspeak.language.instantiable.plan.annotation.IBaseAnnotation< T >.throwvaluenotassignableto().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_type

◆ m_value