Crossfire JXClient, Trunk
Public Member Functions | Private Attributes | List of all members
com.realtime.crossfire.jxclient.skin.io.Args Class Reference
Collaboration diagram for com.realtime.crossfire.jxclient.skin.io.Args:
Collaboration graph

Public Member Functions

 Args (@NotNull final String @NotNull[] args)
 
String get () throws IOException
 
String getPrev ()
 
boolean hasMore ()
 

Private Attributes

final String[] args
 
int index
 

Detailed Description

Iterates over a list of

String

arguments.

Author
Andreas Kirschbaum

Definition at line 32 of file Args.java.

Constructor & Destructor Documentation

◆ Args()

com.realtime.crossfire.jxclient.skin.io.Args.Args ( @NotNull final String @NotNull[]  args)

Creates a new instance.

Parameters
argsthe string arguments

Definition at line 49 of file Args.java.

References com.realtime.crossfire.jxclient.skin.io.Args.args.

Member Function Documentation

◆ get()

String com.realtime.crossfire.jxclient.skin.io.Args.get ( ) throws IOException

Returns the next argument.

Returns
the next argument
Exceptions
IOExceptionif no next argument exists

Definition at line 59 of file Args.java.

References com.realtime.crossfire.jxclient.skin.io.Args.args, and com.realtime.crossfire.jxclient.skin.io.Args.index.

Referenced by com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.load(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseBegin(), and com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseFocus().

Here is the caller graph for this function:

◆ getPrev()

String com.realtime.crossfire.jxclient.skin.io.Args.getPrev ( )

Returns the current argument. This is the same value that was returned by the preceding call to get().

Returns
the current argument

Definition at line 73 of file Args.java.

References com.realtime.crossfire.jxclient.skin.io.Args.args, and com.realtime.crossfire.jxclient.skin.io.Args.index.

◆ hasMore()

boolean com.realtime.crossfire.jxclient.skin.io.Args.hasMore ( )

Member Data Documentation

◆ args

final String [] com.realtime.crossfire.jxclient.skin.io.Args.args
private

◆ index

int com.realtime.crossfire.jxclient.skin.io.Args.index
private

The documentation for this class was generated from the following file: