Record Class MethodReference.CachedMethodExecutor

java.lang.Object
java.lang.Record
cn.taketoday.expression.spel.ast.MethodReference.CachedMethodExecutor
封闭类:
MethodReference

private static record MethodReference.CachedMethodExecutor(MethodExecutor methodExecutor, Class<?> staticClass, TypeDescriptor target, List<TypeDescriptor> argumentTypes) extends Record
  • 字段详细资料

    • methodExecutor

      private final MethodExecutor methodExecutor
      methodExecutor 记录组件的字段。
    • staticClass

      @Nullable private final Class<?> staticClass
      staticClass 记录组件的字段。
    • target

      @Nullable private final TypeDescriptor target
      target 记录组件的字段。
    • argumentTypes

      private final List<TypeDescriptor> argumentTypes
      argumentTypes 记录组件的字段。
  • 构造器详细资料

    • CachedMethodExecutor

      private CachedMethodExecutor(MethodExecutor methodExecutor, @Nullable Class<?> staticClass, @Nullable TypeDescriptor target, List<TypeDescriptor> argumentTypes)
      创建 CachedMethodExecutor 记录的实例。
      参数:
      methodExecutor - methodExecutor 记录组件的值
      staticClass - staticClass 记录组件的值
      target - target 记录组件的值
      argumentTypes - argumentTypes 记录组件的值
  • 方法详细资料

    • isSuitable

      public boolean isSuitable(Object value, @Nullable TypeDescriptor target, List<TypeDescriptor> argumentTypes)
    • hasProxyTarget

      public boolean hasProxyTarget()
    • get

      public MethodExecutor get()
    • toString

      public final String toString()
      返回此记录的字符串表示形式。此表示形式包含类型的名称,后跟每个记录组件的名称和值。
      指定者:
      toString 在类中 Record
      返回:
      此对象的字符串表示形式
    • hashCode

      public final int hashCode()
      返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。
      指定者:
      hashCode 在类中 Record
      返回:
      此对象的哈希代码值
    • equals

      public final boolean equals(Object o)
      指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 此记录中的所有组件都使用 Objects::equals(Object,Object) 进行比较。
      指定者:
      equals 在类中 Record
      参数:
      o - 要与之进行比较的对象
      返回:
      如果此对象与 o 参数相同,则为 true;否则为 false
    • methodExecutor

      public MethodExecutor methodExecutor()
      返回 methodExecutor 记录组件的值。
      返回:
      methodExecutor 记录组件的值
    • staticClass

      @Nullable public Class<?> staticClass()
      返回 staticClass 记录组件的值。
      返回:
      staticClass 记录组件的值
    • target

      @Nullable public TypeDescriptor target()
      返回 target 记录组件的值。
      返回:
      target 记录组件的值
    • argumentTypes

      public List<TypeDescriptor> argumentTypes()
      返回 argumentTypes 记录组件的值。
      返回:
      argumentTypes 记录组件的值