Class MethodCall.TargetHandler.ForValue.Factory

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String FIELD_PREFIX
      The name prefix of the field to store the instance.
      private TypeDescription.Generic fieldType
      The type of the field.
      private java.lang.String name
      The name of the field to store the target.
      private java.lang.Object target
      The target on which the method is to be invoked.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Factory​(java.lang.Object target, TypeDescription.Generic fieldType)
      Creates a new target handler for a static field.
    • Field Detail

      • FIELD_PREFIX

        private static final java.lang.String FIELD_PREFIX
        The name prefix of the field to store the instance.
        See Also:
        Constant Field Values
      • target

        private final java.lang.Object target
        The target on which the method is to be invoked.
      • name

        @ValueHandling(IGNORE)
        private final java.lang.String name
        The name of the field to store the target.
    • Constructor Detail

      • Factory

        protected Factory​(java.lang.Object target,
                          TypeDescription.Generic fieldType)
        Creates a new target handler for a static field.
        Parameters:
        target - The target on which the method is to be invoked.
        fieldType - The type of the field.