Class JtlWriter.CodeBuilder
- java.lang.Object
-
- us.abstracta.jmeter.javadsl.codegeneration.MethodCallBuilder
-
- us.abstracta.jmeter.javadsl.codegeneration.SingleTestElementCallBuilder<org.apache.jmeter.reporters.ResultCollector>
-
- us.abstracta.jmeter.javadsl.core.listeners.JtlWriter.CodeBuilder
-
- Enclosing class:
- JtlWriter
public static class JtlWriter.CodeBuilder extends SingleTestElementCallBuilder<org.apache.jmeter.reporters.ResultCollector>
-
-
Field Summary
-
Fields inherited from class us.abstracta.jmeter.javadsl.codegeneration.SingleTestElementCallBuilder
testElementClass
-
Fields inherited from class us.abstracta.jmeter.javadsl.codegeneration.MethodCallBuilder
builderMethods
-
-
Constructor Summary
Constructors Constructor Description CodeBuilder(List<Method> builderMethods)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MethodCallbuildMethodCall(org.apache.jmeter.reporters.ResultCollector collector, MethodCallContext context)Builds aMethodCallfor the given test element.booleanmatches(MethodCallContext context)Allows checking if this builder can build method calls for the given context.-
Methods inherited from class us.abstracta.jmeter.javadsl.codegeneration.SingleTestElementCallBuilder
buildMethodCall
-
Methods inherited from class us.abstracta.jmeter.javadsl.codegeneration.MethodCallBuilder
buildMethodCall, getBuilderOptionName, order, propertyIterator2Stream
-
-
-
-
Method Detail
-
matches
public boolean matches(MethodCallContext context)
Description copied from class:MethodCallBuilderAllows checking if this builder can build method calls for the given context.This method is invoked in every registered MethodCallBuilder, until one is found that matches.
- Overrides:
matchesin classSingleTestElementCallBuilder<org.apache.jmeter.reporters.ResultCollector>- Parameters:
context- provides information used to determine if a method call might be created by this builder. For example: JMeter test plan tree node test element, parent context, a map of entries to host custom information, etc.- Returns:
- true if this builder knows how to build a method call for the context, false otherwise.
-
buildMethodCall
protected MethodCall buildMethodCall(org.apache.jmeter.reporters.ResultCollector collector, MethodCallContext context)
Description copied from class:SingleTestElementCallBuilderBuilds aMethodCallfor the given test element.When this method is invoked, the test element has already been checked to be of the proper type, so no further checking in that regard should be needed.
- Specified by:
buildMethodCallin classSingleTestElementCallBuilder<org.apache.jmeter.reporters.ResultCollector>- Parameters:
collector- is the test element instance to build the MethodCall for.context- is the context of the method call.- Returns:
- the generated MethodCall instance.
-
-