All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jdsltools.testers.TesterStringParser

java.lang.Object
   |
   +----jdsltools.testers.TesterStringParser

public class TesterStringParser
extends Object

Constructor Index

 o TesterStringParser()
Class constructor.
 o TesterStringParser(GenericTester)
Class constructor.

Method Index

 o parseMessage(String)
Parses a string that contains a message.
 o parseParameters(String)
Parses a string that contains a list of parameters for a call to execute.
 o parseTests(String)
Parses a list of tests of the form n,m.

Constructors

 o TesterStringParser
 public TesterStringParser()
Class constructor. If this constructor is used, the tester will not be able to parse $ commands.

 o TesterStringParser
 public TesterStringParser(GenericTester tester)
Class constructor.

Parameters:
tester - The GenericTester that will be using this parser.

Methods

 o parseParameters
 public TesterArrays parseParameters(String string) throws StringFormatException
Parses a string that contains a list of parameters for a call to execute. The following tokens are understood in the string: In all cases, the tokens should be separated by a comma. Please note that int 3 is considered one token.

Parameters:
string - The string to be parsed
Returns:
A TesterArrays that represents the string that was parsed.
Throws: StringFormatException
if there is an error in the format of the string.
 o parseMessage
 public String parseMessage(String message) throws StringFormatException
Parses a string that contains a message. The following tokens are understood in the string:

Parameters:
message - The string to be parsed.
Returns:
the string that message represents.
 o parseTests
 public int[][] parseTests(String list) throws StringFormatException
Parses a list of tests of the form n,m. If a structure key was given, but no location key was given, then a -1 is put in place of that key.

Returns:
A array of pairs of ints.
Throws: StringFormatException
if there is an error in the string format.

All Packages  Class Hierarchy  This Package  Previous  Next  Index