Class JtlWriter.CodeBuilder

    • Constructor Detail

      • CodeBuilder

        public CodeBuilder​(List<Method> builderMethods)
    • Method Detail

      • matches

        public boolean matches​(MethodCallContext context)
        Description copied from class: MethodCallBuilder
        Allows 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:
        matches in class SingleTestElementCallBuilder<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: SingleTestElementCallBuilder
        Builds a MethodCall for 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:
        buildMethodCall in class SingleTestElementCallBuilder<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.