24 package org.lightjason.agentspeak.language;
29 import javax.annotation.Nonnull;
30 import javax.annotation.Nullable;
31 import java.util.stream.Stream;
53 public final Stream<ITerm>
values( @Nullable
final IPath... p_path )
55 return Stream.empty();
62 return Stream.empty();
78 public final boolean hasAt()
98 public final int compareTo( @Nonnull
final ILiteral p_literal )
100 return Integer.compare( p_literal.hashCode(), this.hashCode() );
132 @SuppressWarnings(
"unchecked" )
133 public final <T> T
raw()
173 public final int hashCode()
179 public final boolean equals(
final Object p_object )
181 return ( p_object instanceof
ILiteral ) && ( this.hashCode() == p_object.hashCode() );
long serialVersionUID
serial id
ILiteral allocate( @Nonnull final IContext p_context)
allocate all variables with the current context
T shallowcopysuffix()
clones the object (shallow-copy) without full-qualified path, only suffix is used ...
IPath functorpath()
returns the path of the functor
interface to create shallow-copy of objects
Stream< ITerm > orderedvalues( @Nullable final IPath... p_path)
returns a stream over the ordered values in sequential ordering
Stream< ITerm > values(final IPath... p_path)
returns a stream over value items
ILiteral unify( @Nonnull final IContext p_context)
unifies variables if exists
IPath fqnfunctor()
returns the full-qualified functor with path and name
execution context with local data
boolean emptyValues()
check for empty values
int structurehash()
returns a hash value which defines a hash ove rthe structure
String functor()
returns the functor without path
boolean negated()
getter of the literal for the negation
< T > T raw()
cast to any raw value type
T deepcopysuffix()
clones the object (shallow-copy) without full-qualified path, only suffix is used ...
T deepcopy(@Nullable final IPath... p_prefix)
clones the object (shallow-copy)
T shallowcopy(@Nullable final IPath... p_prefix)
clones the object (shallow-copy)
boolean hasVariable()
checks if the literal has variables
ILiteral EMPTY
empty literal
boolean hasAt()
returns if the literal has an @ prefix