LightJason - AgentSpeak(L++)
org.lightjason.agentspeak.common.IPath Interface Reference

interface of a path More...

+ Inheritance diagram for org.lightjason.agentspeak.common.IPath:
+ Collaboration diagram for org.lightjason.agentspeak.common.IPath:

Public Member Functions

IPath append ( @Nonnull final IPath p_path)
 appends a path at the current and returns a new object More...
 
IPath append ( @Nonnull final String p_path)
 appends a string at the current path and returns the new object More...
 
boolean empty ()
 check if the path is empty More...
 
boolean endswith ( @Nonnull final IPath p_path)
 check of a path ends with another path More...
 
String get (final int p_index)
 returns an part of the path More...
 
IPath lower ()
 changes all elements to lower-case More...
 
String path (final String p_separator)
 returns the full path as string with an individual separator More...
 
String path ()
 returns the full path as string More...
 
IPath pushback ( @Nonnull final IPath p_path)
 adds a path at the end More...
 
IPath pushback ( @Nonnull final String p_path)
 adds a path at the end More...
 
IPath pushfront ( @Nonnull final String p_path)
 adds a path at the front More...
 
IPath pushfront ( @Nonnull final IPath p_path)
 adds a path to the front of the path More...
 
IPath remove (final int p_index)
 removes an element More...
 
IPath remove (final int p_start, final int p_end)
 removes all elements from start index until end index (exclusive) More...
 
String removesuffix ()
 remove the suffix from the path More...
 
IPath reverse ()
 reverse path More...
 
String separator ()
 returns the separator More...
 
IPath separator ( @Nonnull final String p_separator)
 sets the separator More...
 
int size ()
 returns the number of path elements More...
 
boolean startswith (final IPath p_path)
 check of a path starts with another path More...
 
boolean startswith (final String p_path)
 check of a path starts with another path More...
 
Stream< String > stream ()
 stream over elements More...
 
IPath subpath (final int p_fromindex)
 creates a path of the start index until the end More...
 
IPath subpath (final int p_fromindex, final int p_toindex)
 creates a path of the indices More...
 
String suffix ()
 returns the last part of the path More...
 
IPath upper ()
 changes all elements to uppercase More...
 

Public Attributes

String DEFAULTSEPERATOR = "/"
 default seperator More...
 
IPath EMPTY
 empty path More...
 

Detailed Description

Note
implement equals with String object, so a path object can be checked to a String

Definition at line 38 of file IPath.java.

Member Function Documentation

◆ append() [1/2]

IPath org.lightjason.agentspeak.common.IPath.append ( @Nonnull final IPath  p_path)
Parameters
p_pathpath
Returns
new path

Implemented in org.lightjason.agentspeak.common.CPath.

Referenced by org.lightjason.agentspeak.language.variable.CRelocateMutexVariable< T >.deepcopy(), org.lightjason.agentspeak.language.variable.CRelocateVariable< T >.deepcopy(), and org.lightjason.agentspeak.language.variable.CVariable< T >.deepcopy().

+ Here is the caller graph for this function:

◆ append() [2/2]

IPath org.lightjason.agentspeak.common.IPath.append ( @Nonnull final String  p_path)
Parameters
p_pathstring with path
Returns
new path

Implemented in org.lightjason.agentspeak.common.CPath.

◆ empty()

boolean org.lightjason.agentspeak.common.IPath.empty ( )
Returns
empty flag

Implemented in org.lightjason.agentspeak.common.CPath.

Referenced by org.lightjason.agentspeak.common.CCommon.actionusable().

+ Here is the caller graph for this function:

◆ endswith()

boolean org.lightjason.agentspeak.common.IPath.endswith ( @Nonnull final IPath  p_path)
Parameters
p_pathpath
Returns
boolean

Implemented in org.lightjason.agentspeak.common.CPath.

◆ get()

String org.lightjason.agentspeak.common.IPath.get ( final int  p_index)
Parameters
p_indexindex position (negativ index is element from the end)
Returns
element

Implemented in org.lightjason.agentspeak.common.CPath.

Referenced by org.lightjason.agentspeak.common.CCommon.actionusable().

+ Here is the caller graph for this function:

◆ lower()

IPath org.lightjason.agentspeak.common.IPath.lower ( )
Returns
object

Implemented in org.lightjason.agentspeak.common.CPath.

◆ path() [1/2]

String org.lightjason.agentspeak.common.IPath.path ( final String  p_separator)
Parameters
p_separatorseparator
Returns
string path

◆ path() [2/2]

String org.lightjason.agentspeak.common.IPath.path ( )
Returns
string path

Implemented in org.lightjason.agentspeak.common.CPath.

◆ pushback() [1/2]

IPath org.lightjason.agentspeak.common.IPath.pushback ( @Nonnull final IPath  p_path)
Parameters
p_pathpath
Returns
return the changed object

Implemented in org.lightjason.agentspeak.common.CPath.

Referenced by org.lightjason.agentspeak.common.CPath.CPathCollector.accumulator(), and org.lightjason.agentspeak.common.CPath.CPathCollector.combiner().

+ Here is the caller graph for this function:

◆ pushback() [2/2]

IPath org.lightjason.agentspeak.common.IPath.pushback ( @Nonnull final String  p_path)
Parameters
p_pathstring path
Returns
return the changed object

Implemented in org.lightjason.agentspeak.common.CPath.

◆ pushfront() [1/2]

IPath org.lightjason.agentspeak.common.IPath.pushfront ( @Nonnull final String  p_path)
Parameters
p_pathstring path
Returns
return the changed object

Implemented in org.lightjason.agentspeak.common.CPath.

◆ pushfront() [2/2]

IPath org.lightjason.agentspeak.common.IPath.pushfront ( @Nonnull final IPath  p_path)
Parameters
p_pathpath
Returns
return the changed object

Implemented in org.lightjason.agentspeak.common.CPath.

◆ remove() [1/2]

IPath org.lightjason.agentspeak.common.IPath.remove ( final int  p_index)
Parameters
p_indexindex position
Returns
return the changed object

Implemented in org.lightjason.agentspeak.common.CPath.

Referenced by org.lightjason.agentspeak.common.CPath.remove(), and org.lightjason.agentspeak.beliefbase.view.CView.trigger().

+ Here is the caller graph for this function:

◆ remove() [2/2]

IPath org.lightjason.agentspeak.common.IPath.remove ( final int  p_start,
final int  p_end 
)
Parameters
p_startstart index
p_endend index (exclusive)
Returns
return the changed object

Implemented in org.lightjason.agentspeak.common.CPath.

◆ removesuffix()

String org.lightjason.agentspeak.common.IPath.removesuffix ( )
Returns
last item of the path

Implemented in org.lightjason.agentspeak.common.CPath.

◆ reverse()

IPath org.lightjason.agentspeak.common.IPath.reverse ( )
Returns
return the changed object

Implemented in org.lightjason.agentspeak.common.CPath.

Referenced by org.lightjason.agentspeak.common.CPath.reverse().

+ Here is the caller graph for this function:

◆ separator() [1/2]

String org.lightjason.agentspeak.common.IPath.separator ( )
Returns
separator

Implemented in org.lightjason.agentspeak.common.CPath.

◆ separator() [2/2]

IPath org.lightjason.agentspeak.common.IPath.separator ( @Nonnull final String  p_separator)
Parameters
p_separatorseparator
Returns
path object

Implemented in org.lightjason.agentspeak.common.CPath.

◆ size()

int org.lightjason.agentspeak.common.IPath.size ( )
Returns
size

Implemented in org.lightjason.agentspeak.common.CPath.

Referenced by org.lightjason.agentspeak.language.CRawTerm< T >.functorpath(), org.lightjason.agentspeak.language.variable.CVariable< T >.functorpath(), and org.lightjason.agentspeak.language.CLiteral.functorpath().

+ Here is the caller graph for this function:

◆ startswith() [1/2]

boolean org.lightjason.agentspeak.common.IPath.startswith ( final IPath  p_path)
Parameters
p_pathpath
Returns
boolean

◆ startswith() [2/2]

boolean org.lightjason.agentspeak.common.IPath.startswith ( final String  p_path)
Parameters
p_pathpath
Returns
boolean

Implemented in org.lightjason.agentspeak.common.CPath.

◆ stream()

Stream<String> org.lightjason.agentspeak.common.IPath.stream ( )
Returns
sequential stream

Implemented in org.lightjason.agentspeak.common.CPath.

Referenced by org.lightjason.agentspeak.language.CLiteral.allocate(), org.lightjason.agentspeak.common.CPath.pushback(), and org.lightjason.agentspeak.language.CLiteral.unify().

+ Here is the caller graph for this function:

◆ subpath() [1/2]

IPath org.lightjason.agentspeak.common.IPath.subpath ( final int  p_fromindex)
Parameters
p_fromindexstart index
Returns
path

Implemented in org.lightjason.agentspeak.common.CPath.

Referenced by org.lightjason.agentspeak.language.CRawTerm< T >.functorpath(), org.lightjason.agentspeak.language.variable.CVariable< T >.functorpath(), and org.lightjason.agentspeak.language.CLiteral.functorpath().

+ Here is the caller graph for this function:

◆ subpath() [2/2]

IPath org.lightjason.agentspeak.common.IPath.subpath ( final int  p_fromindex,
final int  p_toindex 
)
Parameters
p_fromindexstart index
p_toindexend index (exclusive) / negative values from the end
Returns
path

Implemented in org.lightjason.agentspeak.common.CPath.

◆ suffix()

◆ upper()

IPath org.lightjason.agentspeak.common.IPath.upper ( )
Returns
object

Implemented in org.lightjason.agentspeak.common.CPath.

Member Data Documentation

◆ DEFAULTSEPERATOR

String org.lightjason.agentspeak.common.IPath.DEFAULTSEPERATOR = "/"

Definition at line 43 of file IPath.java.

Referenced by org.lightjason.agentspeak.common.CPath.from().

◆ EMPTY

IPath org.lightjason.agentspeak.common.IPath.EMPTY