Class TypeArguments

java.lang.Object
randoop.operation.TypeArguments

class TypeArguments extends Object
TypeArguments provides static methods for creating and recognizing strings representing the type arguments of a method or constructor.

Type arguments are given as comma separated lists of fully-qualified class and primitive type names. For example:

  • int
  • int,double,java.lang.String
  • randoop.operation.Operation
  • Constructor Details

    • TypeArguments

      TypeArguments()
  • Method Details

    • getTypeArgumentsForString

      static Class<?>[] getTypeArgumentsForString(String argStr) throws OperationParseException
      Parses comma-no-space-delimited type argument string and returns a list of types.
      Parameters:
      argStr - the string containing type arguments for a signature, each a @FqBinaryName, separated by commas
      Returns:
      the array of Class objects for the type arguments in argStr
      Throws:
      OperationParseException - if a type name in the string is not a valid type
    • getTypeArgumentString

      static void getTypeArgumentString(StringBuilder sb, Class<?>[] params)
      Adds the type names for the arguments of a signature to the StringBuilder.
      Parameters:
      sb - the StringBuilder to which type names are added
      params - the array of Class objects representing the types of signature arguments