Class DynamicType.Builder.AbstractBase.Adapter.FieldMatchAdapter

    • Constructor Detail

      • FieldMatchAdapter

        protected FieldMatchAdapter​(LatentMatcher<? super FieldDescription> matcher)
        Creates a new field match adapter.
        Parameters:
        matcher - The matcher for any fields to apply this matcher to.
      • FieldMatchAdapter

        protected FieldMatchAdapter​(FieldAttributeAppender.Factory fieldAttributeAppenderFactory,
                                    Transformer<FieldDescription> transformer,
                                    Object defaultValue,
                                    LatentMatcher<? super FieldDescription> matcher)
        Creates a new field match adapter.
        Parameters:
        fieldAttributeAppenderFactory - The field attribute appender factory to apply.
        transformer - The field transformer to apply.
        defaultValue - The field's default value or null if no value is to be defined.
        matcher - The matcher for any fields to apply this matcher to.