Class RecordComponentDescription.ForLoadedRecordComponent.Dispatcher.ForJava14CapableVm

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.reflect.Method getAccessor
      The java.lang.reflect.RecordComponent#getAccessor() method.
      private java.lang.reflect.Method getAnnotatedType
      The java.lang.reflect.RecordComponent#getAnnotatedType() method.
      private java.lang.reflect.Method getDeclaringType
      The java.lang.reflect.RecordComponent#getDeclaringType() method.
      private java.lang.reflect.Method getGenericSignature
      The java.lang.reflect.RecordComponent#getGenericSignature() method.
      private java.lang.reflect.Method getGenericType
      The java.lang.reflect.RecordComponent#getGenericType() method.
      private java.lang.reflect.Method getName
      The java.lang.reflect.RecordComponent#getName() method.
      private java.lang.reflect.Method getRecordComponents
      The java.lang.Class#getRecordComponents() method.
      private java.lang.reflect.Method getType
      The java.lang.reflect.RecordComponent#getType() method.
      private java.lang.reflect.Method isRecord
      The java.lang.Class#isRecord() method.
      private java.lang.Class<?> recordComponent
      The java.lang.reflect.RecordComponent type.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ForJava14CapableVm​(java.lang.Class<?> recordComponent, java.lang.reflect.Method getRecordComponents, java.lang.reflect.Method isRecord, java.lang.reflect.Method getName, java.lang.reflect.Method getDeclaringType, java.lang.reflect.Method getAccessor, java.lang.reflect.Method getType, java.lang.reflect.Method getGenericType, java.lang.reflect.Method getGenericSignature, java.lang.reflect.Method getAnnotatedType)
      Creates a dispatcher for a Java 14 capable VM.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.reflect.Method getAccessor​(java.lang.Object recordComponent)
      Resolves a record component's accessor method.
      java.lang.reflect.AnnotatedElement getAnnotatedType​(java.lang.Object recordComponent)
      Resolves a record component's annotated type.
      java.lang.Class<?> getDeclaringType​(java.lang.Object recordComponent)
      Resolves a record component's declaring type.
      java.lang.String getGenericSignature​(java.lang.Object recordComponent)
      Returns the record component type's generic signature.
      java.lang.reflect.Type getGenericType​(java.lang.Object recordComponent)
      Resolves a record component's generic type.
      java.lang.String getName​(java.lang.Object recordComponent)
      Resolves a record component's name.
      java.lang.Object[] getRecordComponents​(java.lang.Class<?> type)
      Resolves a type's record components.
      java.lang.Class<?> getType​(java.lang.Object recordComponent)
      Resolves a record component's type.
      boolean isInstance​(java.lang.Object instance)
      Checks if the supplied instance is a record component.
      boolean isRecord​(java.lang.Class<?> type)
      Checks if the supplied type is a record.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • recordComponent

        private final java.lang.Class<?> recordComponent
        The java.lang.reflect.RecordComponent type.
      • getRecordComponents

        private final java.lang.reflect.Method getRecordComponents
        The java.lang.Class#getRecordComponents() method.
      • isRecord

        private final java.lang.reflect.Method isRecord
        The java.lang.Class#isRecord() method.
      • getName

        private final java.lang.reflect.Method getName
        The java.lang.reflect.RecordComponent#getName() method.
      • getDeclaringType

        private final java.lang.reflect.Method getDeclaringType
        The java.lang.reflect.RecordComponent#getDeclaringType() method.
      • getAccessor

        private final java.lang.reflect.Method getAccessor
        The java.lang.reflect.RecordComponent#getAccessor() method.
      • getType

        private final java.lang.reflect.Method getType
        The java.lang.reflect.RecordComponent#getType() method.
      • getGenericType

        private final java.lang.reflect.Method getGenericType
        The java.lang.reflect.RecordComponent#getGenericType() method.
      • getGenericSignature

        private final java.lang.reflect.Method getGenericSignature
        The java.lang.reflect.RecordComponent#getGenericSignature() method.
      • getAnnotatedType

        private final java.lang.reflect.Method getAnnotatedType
        The java.lang.reflect.RecordComponent#getAnnotatedType() method.
    • Constructor Detail

      • ForJava14CapableVm

        protected ForJava14CapableVm​(java.lang.Class<?> recordComponent,
                                     java.lang.reflect.Method getRecordComponents,
                                     java.lang.reflect.Method isRecord,
                                     java.lang.reflect.Method getName,
                                     java.lang.reflect.Method getDeclaringType,
                                     java.lang.reflect.Method getAccessor,
                                     java.lang.reflect.Method getType,
                                     java.lang.reflect.Method getGenericType,
                                     java.lang.reflect.Method getGenericSignature,
                                     java.lang.reflect.Method getAnnotatedType)
        Creates a dispatcher for a Java 14 capable VM.
        Parameters:
        recordComponent - The java.lang.reflect.RecordComponent type.
        getRecordComponents - The java.lang.Class#getRecordComponents() method.
        isRecord - The java.lang.Class#isRecord() method.
        getName - The java.lang.reflect.RecordComponent#getName() method.
        getDeclaringType - The java.lang.reflect.RecordComponent#getDeclaringType() method.
        getAccessor - The java.lang.reflect.RecordComponent#getAccessor() method.
        getType - The java.lang.reflect.RecordComponent#getType() method.
        getGenericType - The java.lang.reflect.RecordComponent#getGenericType() method.
        getGenericSignature - The java.lang.reflect.RecordComponent#getGenericSignature() method.
        getAnnotatedType - The java.lang.reflect.RecordComponent#getAnnotatedType() method.