Class Plugin.Factory.UsingReflection.ArgumentResolver.ForIndex.WithDynamicType

java.lang.Object
net.bytebuddy.build.Plugin.Factory.UsingReflection.ArgumentResolver.ForIndex.WithDynamicType
All Implemented Interfaces:
Plugin.Factory.UsingReflection.ArgumentResolver
Enclosing class:
Plugin.Factory.UsingReflection.ArgumentResolver.ForIndex

@Enhance public static class Plugin.Factory.UsingReflection.ArgumentResolver.ForIndex.WithDynamicType extends Object implements Plugin.Factory.UsingReflection.ArgumentResolver
An argument resolver that resolves an argument for a specific parameter index by attempting a conversion via invoking a static valueOf method on the target type, if it exists. As an exception, the char and Character types are resolved if the string value represents a single character.
  • Field Details

  • Constructor Details

    • WithDynamicType

      public WithDynamicType(int index, @MaybeNull String value)
      Creates an argument resolver for a specific parameter index and attempts a dynamic resolution.
      Parameters:
      index - The index of the parameter to resolve.
      value - A string representation of the supplied value.
  • Method Details