ExecutablesList

Inheritance: java.lang.Object

public class ExecutablesList

Encapsulates a collection of objects that emulate executables, which can be executed using the \write18 commands in ObjectTeX.

Constructors

ConstructorDescription
ExecutablesList()

Methods

MethodDescription
add(Executable exec)Adds a new executable to the collection.
remove(String commandName)Removes an executable by its name.
getList()Displays the collection as a read-only list of executables’ names.

ExecutablesList()

public ExecutablesList()

add(Executable exec)

public void add(Executable exec)

Adds a new executable to the collection.

Parameters:

ParameterTypeDescription
execExecutableAn instance of Executable ’s subclass.

remove(String commandName)

public void remove(String commandName)

Removes an executable by its name.

Parameters:

ParameterTypeDescription
commandNamejava.lang.StringThe name of an executable.

getList()

public Set<String> getList()

Displays the collection as a read-only list of executables’ names.

Returns: java.util.Set<java.lang.String> - The collection as a read-only list of executables’ names.