core.arguments - rsanchez-wsu/jfiles GitHub Wiki

A list of Arguments. This list makes up one command.

Package: core

Example Usage

Command: "find *.xml"

Output: Argument[] {"find", "*.xml"}

Constructors

+ Arguments()

Member Variables

Private:

  • List<Argument> args - The list of stored arguments.

Functions

+ boolean add(Argument arg)

An argument to append onto the list of arguments. Returns if appendage was successful.

+ boolean add(String arg)

An argument to append onto the list of arguments. Returns if appendage was successful.

+ int size()

Returns the number of arguments.

+ Argument get(int index)

Gets the argument at index index.

+ List getArgs()

Returns the complete list of arguments.

+ Argument getLast()

Returns the last argument in the list.

Future Additions

Some future things that may be added / changed:

  • Adding iteration for improved traversal
    • next()
    • back()
    • reset()

Related

⚠️ **GitHub.com Fallback** ⚠️