public class MethodReplacements
extends java.lang.Object
Includes:
Uses synchronized access to a static list of the signature strings, because the replacecall agent can run on multiple classes concurrently.
This list is set by ReplaceCallAgent.premain(String,
Instrumentation) before the CallReplacementTransformer is added to
the class loader, and the method setReplacedMethods(List) should only be called at that
point. Randoop should add the result of getSignatureList() to the --omit-methods
patterns before starting generation.
| Constructor and Description |
|---|
MethodReplacements()
Do not Create a MethodReplacements.
|
| Modifier and Type | Method and Description |
|---|---|
static @Nullable java.lang.String |
getAgentArgs()
Get the argument string for running the agent.
|
static @Nullable java.lang.String |
getAgentPath()
Get the path to the agent jar file.
|
static java.util.List<java.lang.String> |
getSignatureList()
Returns a copy of the signature list in this class.
|
static void |
setAgentArgs(java.lang.String agentArgs)
Set the argument string of the agent.
|
static void |
setAgentPath(java.lang.String agentPath)
Set the path of the agent jar file.
|
static void |
setReplacedMethods(java.util.List<java.lang.String> sigList)
Copies the given list of method signature strings to the list in this object, overwriting the
previous list.
|
public MethodReplacements()
public static void setReplacedMethods(java.util.List<java.lang.String> sigList)
Should only be called once.
sigList - the method signature listpublic static java.util.List<java.lang.String> getSignatureList()
setReplacedMethods(List), or the empty
list if that method hasn't been calledpublic static void setAgentPath(java.lang.String agentPath)
agentPath - the agent jar file pathpublic static void setAgentArgs(java.lang.String agentArgs)
agentArgs - the argument string for the agentpublic static @Nullable java.lang.String getAgentPath()
public static @Nullable java.lang.String getAgentArgs()