LightJason - AgentSpeak(L++)
org.lightjason.agentspeak.language.variable.CVariableEvaluate Class Reference

structure for creating evaluate variables More...

+ Inheritance diagram for org.lightjason.agentspeak.language.variable.CVariableEvaluate:
+ Collaboration diagram for org.lightjason.agentspeak.language.variable.CVariableEvaluate:

Public Member Functions

 CVariableEvaluate ( @Nonnull final IVariable<?> p_variable)
 ctor More...
 
 CVariableEvaluate ( @Nonnull final IVariable<?> p_variable, @Nonnull final List< ITerm > p_parameter)
 ctor More...
 
final ITerm deepcopy (final IPath... p_prefix)
 
final ITerm deepcopysuffix ()
 
final boolean equals (final Object p_object)
 
final ILiteral evaluate (final IContext p_context)
 evaluates the content of the variable More...
 
final IPath fqnfunctor ()
 returns the full-qualified functor with path and name More...
 
final String functor ()
 returns the functor without path More...
 
final IPath functorpath ()
 returns the path of the functor More...
 
final int hashCode ()
 
final boolean hasVariable ()
 checks if the literal has variables More...
 
final boolean mutex ()
 returns mutex flag More...
 
final< T > T raw ()
 cast to any raw value type More...
 
final int structurehash ()
 returns a hash value which defines a hash ove rthe structure More...
 
final String toString ()
 
Stream< IVariable<?> > variables ()
 returns a stream with all used variables More...
 
- Public Member Functions inherited from org.lightjason.agentspeak.language.ITerm
default< T extends ITerm > T term ()
 casts the object to a term-type More...
 
- Public Member Functions inherited from org.lightjason.agentspeak.language.IDeepCopy< ITerm >
deepcopy (@Nullable final IPath... p_prefix)
 clones the object (shallow-copy) More...
 
deepcopysuffix ()
 clones the object (shallow-copy) without full-qualified path, only suffix is used More...
 

Private Member Functions

ILiteral fromLiteral (final ILiteral p_literal, final IContext p_context)
 creates the result literal from an input literal More...
 
ILiteral fromString (final String p_value, final IContext p_context)
 creates the result literal from an input string More...
 

Private Attributes

final List< ITermm_parameter
 optional parameter list More...
 
final IVariable<?> m_variable
 content variable with a string or literal More...
 

Static Private Attributes

static final long serialVersionUID = 7310663182659231951L
 serial id More...
 

Additional Inherited Members

- Public Attributes inherited from org.lightjason.agentspeak.language.ITerm
ITerm EMPTY
 empty term More...
 
long serialVersionUID = -3640918490398129717L
 serial id More...
 
- Public Attributes inherited from org.lightjason.agentspeak.language.IStructureHash
Comparator< IStructureHashCOMPARATOR = Comparator.comparingInt( IStructureHash::structurehash )
 comparator More...
 

Detailed Description

Definition at line 44 of file CVariableEvaluate.java.

Constructor & Destructor Documentation

◆ CVariableEvaluate() [1/2]

org.lightjason.agentspeak.language.variable.CVariableEvaluate.CVariableEvaluate ( @Nonnull final IVariable<?>  p_variable)
Parameters
p_variablevariable

Definition at line 64 of file CVariableEvaluate.java.

◆ CVariableEvaluate() [2/2]

org.lightjason.agentspeak.language.variable.CVariableEvaluate.CVariableEvaluate ( @Nonnull final IVariable<?>  p_variable,
@Nonnull final List< ITerm p_parameter 
)
Parameters
p_variablevariable
p_parameteroptional parameter list

Definition at line 75 of file CVariableEvaluate.java.

Member Function Documentation

◆ deepcopy()

final ITerm org.lightjason.agentspeak.language.variable.CVariableEvaluate.deepcopy ( final IPath...  p_prefix)

Definition at line 172 of file CVariableEvaluate.java.

◆ deepcopysuffix()

final ITerm org.lightjason.agentspeak.language.variable.CVariableEvaluate.deepcopysuffix ( )

Definition at line 179 of file CVariableEvaluate.java.

◆ equals()

final boolean org.lightjason.agentspeak.language.variable.CVariableEvaluate.equals ( final Object  p_object)

Definition at line 126 of file CVariableEvaluate.java.

References org.lightjason.agentspeak.language.variable.CVariableEvaluate.hashCode().

+ Here is the call graph for this function:

◆ evaluate()

final ILiteral org.lightjason.agentspeak.language.variable.CVariableEvaluate.evaluate ( final IContext  p_context)
Parameters
p_contextexecution context
Returns
unified literal

Implements org.lightjason.agentspeak.language.variable.IVariableEvaluate.

Definition at line 90 of file CVariableEvaluate.java.

References org.lightjason.agentspeak.language.variable.CVariableEvaluate.fromLiteral(), and org.lightjason.agentspeak.language.variable.CVariableEvaluate.fromString().

+ Here is the call graph for this function:

◆ fqnfunctor()

final IPath org.lightjason.agentspeak.language.variable.CVariableEvaluate.fqnfunctor ( )
Returns
fqn functor

Implements org.lightjason.agentspeak.language.ITerm.

Definition at line 153 of file CVariableEvaluate.java.

◆ fromLiteral()

ILiteral org.lightjason.agentspeak.language.variable.CVariableEvaluate.fromLiteral ( final ILiteral  p_literal,
final IContext  p_context 
)
private
Parameters
p_literalinput literal
p_contextexecution context
Returns
result literal

Definition at line 209 of file CVariableEvaluate.java.

References org.lightjason.agentspeak.language.ITerm.fqnfunctor(), org.lightjason.agentspeak.language.ILiteral.hasAt(), org.lightjason.agentspeak.language.variable.CVariableEvaluate.m_parameter, org.lightjason.agentspeak.language.ILiteral.negated(), and org.lightjason.agentspeak.language.ILiteral.unify().

Referenced by org.lightjason.agentspeak.language.variable.CVariableEvaluate.evaluate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fromString()

ILiteral org.lightjason.agentspeak.language.variable.CVariableEvaluate.fromString ( final String  p_value,
final IContext  p_context 
)
private
Parameters
p_valueinput string (literal functor)
p_contextexecution context
Returns
result literal

Definition at line 197 of file CVariableEvaluate.java.

References org.lightjason.agentspeak.language.CLiteral.from(), and org.lightjason.agentspeak.language.ILiteral.unify().

Referenced by org.lightjason.agentspeak.language.variable.CVariableEvaluate.evaluate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ functor()

final String org.lightjason.agentspeak.language.variable.CVariableEvaluate.functor ( )
Returns
functor

Implements org.lightjason.agentspeak.language.ITerm.

Definition at line 139 of file CVariableEvaluate.java.

◆ functorpath()

final IPath org.lightjason.agentspeak.language.variable.CVariableEvaluate.functorpath ( )
Returns
path

Implements org.lightjason.agentspeak.language.ITerm.

Definition at line 146 of file CVariableEvaluate.java.

◆ hashCode()

final int org.lightjason.agentspeak.language.variable.CVariableEvaluate.hashCode ( )

Definition at line 120 of file CVariableEvaluate.java.

Referenced by org.lightjason.agentspeak.language.variable.CVariableEvaluate.equals().

+ Here is the caller graph for this function:

◆ hasVariable()

final boolean org.lightjason.agentspeak.language.variable.CVariableEvaluate.hasVariable ( )
Returns
variable flag

Implements org.lightjason.agentspeak.language.ITerm.

Definition at line 159 of file CVariableEvaluate.java.

◆ mutex()

final boolean org.lightjason.agentspeak.language.variable.CVariableEvaluate.mutex ( )
Returns
mutex flag

Implements org.lightjason.agentspeak.language.variable.IVariableEvaluate.

Definition at line 83 of file CVariableEvaluate.java.

References org.lightjason.agentspeak.language.variable.IVariable< T >.mutex().

+ Here is the call graph for this function:

◆ raw()

final<T> T org.lightjason.agentspeak.language.variable.CVariableEvaluate.raw ( )
Template Parameters
rawtype
Returns
any type

Implements org.lightjason.agentspeak.language.ITerm.

Definition at line 165 of file CVariableEvaluate.java.

◆ structurehash()

final int org.lightjason.agentspeak.language.variable.CVariableEvaluate.structurehash ( )
Returns
structure hash value

Implements org.lightjason.agentspeak.language.IStructureHash.

Definition at line 185 of file CVariableEvaluate.java.

◆ toString()

final String org.lightjason.agentspeak.language.variable.CVariableEvaluate.toString ( )

◆ variables()

Stream<IVariable<?> > org.lightjason.agentspeak.language.variable.CVariableEvaluate.variables ( )
Returns
variable stream (variables will be cloned on instantiation)

Implements org.lightjason.agentspeak.language.variable.IVariableEvaluate.

Definition at line 108 of file CVariableEvaluate.java.

References org.lightjason.agentspeak.language.ITerm.term().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_parameter

final List<ITerm> org.lightjason.agentspeak.language.variable.CVariableEvaluate.m_parameter
private

◆ m_variable

final IVariable<?> org.lightjason.agentspeak.language.variable.CVariableEvaluate.m_variable
private

Definition at line 53 of file CVariableEvaluate.java.

◆ serialVersionUID

final long org.lightjason.agentspeak.language.variable.CVariableEvaluate.serialVersionUID = 7310663182659231951L
staticprivate

Definition at line 49 of file CVariableEvaluate.java.