randoop
Class StatementKinds

Object
  extended by StatementKinds

public class StatementKinds
extends Object


Constructor Summary
Constructor and Description
StatementKinds()
           
 
Method Summary
Modifier and Type Method and Description
static String getId(StatementKind st)
           
static StatementKind parse(String str)
          Parses a string representing a StatementKind.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatementKinds

public StatementKinds()
Method Detail

parse

public static StatementKind parse(String str)
                           throws StatementKindParseException
Parses a string representing a StatementKind. The string is expected to be of the form: ID : DESCRIPTION Where ID is a string identifying the type of StatementKind, and DESCRIPTION represents more specifics of the StatementKind. For example, the following String represents the constructor for HashMap: cons : java.util.HashMap.() A class implementing StatementKind should define a static field named ID that corresponds to the ID string used when parsing. The way this parse method works is by using the ID string to determine the specific StatementKind class C, and the calling C.parse(String) on the DESCRIPTION String. For more details on the exact form of DESCRIPTION, see the different classes implementing StatementKind.

Throws:
StatementKindParseException

getId

public static String getId(StatementKind st)