Package randoop.operation
Class TypeArguments
java.lang.Object
randoop.operation.TypeArguments
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 Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) static Class<?>[]
getTypeArgumentsForString
(String argStr) Parses comma-no-space-delimited type argument string and returns a list of types.(package private) static void
getTypeArgumentString
(StringBuilder sb, Class<?>[] params) Adds the type names for the arguments of a signature to theStringBuilder
.
-
Constructor Details
-
TypeArguments
TypeArguments()
-
-
Method Details
-
getTypeArgumentsForString
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
Adds the type names for the arguments of a signature to theStringBuilder
.- Parameters:
sb
- theStringBuilder
to which type names are addedparams
- the array ofClass
objects representing the types of signature arguments
-