class TypeArguments
extends java.lang.Object
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 and Description |
---|
TypeArguments() |
Modifier and Type | Method and Description |
---|---|
(package private) static java.lang.Class<?>[] |
getTypeArgumentsForString(java.lang.String argStr)
Parses comma-no-space-delimited type argument string and returns a list of types.
|
(package private) static void |
getTypeArgumentString(java.lang.StringBuilder sb,
java.lang.Class<?>[] params)
Adds the type names for the arguments of a signature to the
StringBuilder . |
static java.lang.Class<?>[] getTypeArgumentsForString(java.lang.String argStr) throws OperationParseException
argStr
- the string containing type arguments for a signature, each a @FqBinaryName,
separated by commasClass
objects for the type arguments in argStrOperationParseException
- if a type name in the string is not a valid typestatic void getTypeArgumentString(java.lang.StringBuilder sb, java.lang.Class<?>[] params)
StringBuilder
.sb
- the StringBuilder
to which type names are addedparams
- the array of Class
objects representing the types of signature arguments