24 package org.lightjason.agentspeak.language.variable;
31 import javax.annotation.Nonnull;
32 import javax.annotation.Nullable;
33 import java.text.MessageFormat;
34 import java.util.Objects;
61 super( p_variable.functor(), p_variable.raw() );
62 m_relocate = p_variable;
72 super( p_functor, p_relocate.raw() );
73 m_relocate = p_relocate;
84 super( p_functor, p_value );
85 m_relocate = p_variable;
95 : m_relocate.
set( this.
raw() );
102 return ( Objects.isNull( p_prefix ) ) || ( p_prefix.length == 0 )
119 ( Objects.isNull( p_prefix ) ) || ( p_prefix.length == 0 )
final IVariable< T > shallowcopysuffix()
clones the object (shallow-copy) without full-qualified path, only suffix is used ...
CRelocateVariable( @Nonnull final IPath p_functor, @Nonnull final IVariable<?> p_variable, @Nullable final T p_value)
private ctor for creating object-copy
CRelocateVariable(final IVariable<?> p_variable)
ctor
final IVariable< T > shallowcopy(final IPath... p_prefix)
IVariable< T > set( @Nullable final T p_value)
sets the value
common structure for execution definition
interface for relocated variables (linkage between two variables for transfering the value) ...
static IPath from( @Nonnull final String p_string)
factor method to build path
class to create a path structure
T m_value
value of the variable
final IPath m_functor
variable / functor name
final ITerm deepcopy(final IPath... p_prefix)
final IVariable<?> m_relocate
reference to relocated variable
final IVariable<?> relocate()
sets the value into the relocated variable and returns the modifed variable
class for a relocated variable
class for any helper calls
default variable definition
IPath append( @Nonnull final IPath p_path)
appends a path at the current and returns a new object
String suffix()
returns the last part of the path
CRelocateVariable( @Nonnull final IPath p_functor, @Nonnull final IVariable<?> p_relocate)
ctor
final ITerm deepcopysuffix()
public< N > N raw()
cast to any raw value type
static final long serialVersionUID
serial id