Constructor and Description |
---|
CompoundVariable() |
CompoundVariable(String parameters) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
String |
execute() |
String |
execute(SampleResult previousResult,
Sampler currentSampler)
Given the previous SampleResult and the current Sampler, return a string
to use as a replacement value for the function call.
|
List<String> |
getArgumentDesc()
Return a list of strings briefly describing each parameter your function
takes.
|
CompoundVariable |
getFunction() |
static Class<? extends Function> |
getFunctionClass(String className) |
static String[] |
getFunctionNames() |
String |
getRawParameters()
Allows the retrieval of the original String prior to it being compiled.
|
String |
getReferenceKey()
Return the name of your function.
|
boolean |
hasFunction() |
void |
setParameters(Collection<CompoundVariable> parameters)
A collection of the parameters used to configure your function.
|
void |
setParameters(String parameters) |
public CompoundVariable()
public CompoundVariable(String parameters)
public String execute()
public String getRawParameters()
public String execute(SampleResult previousResult, Sampler currentSampler)
execute
in interface Function
previousResult
- The previous SampleResult
currentSampler
- The current Sampler
public CompoundVariable getFunction()
public List<String> getArgumentDesc()
getArgumentDesc
in interface Function
public void clear()
public void setParameters(String parameters) throws InvalidVariableException
InvalidVariableException
public static String[] getFunctionNames()
public boolean hasFunction()
public String getReferenceKey()
getReferenceKey
in interface Function
public void setParameters(Collection<CompoundVariable> parameters) throws InvalidVariableException
setParameters
in interface Function
parameters
- The parameters for the function callInvalidVariableException
- - when the variables for the function call can't be evaluatedCopyright © 1998-2019 Apache Software Foundation. All Rights Reserved.