Class PObjectToDataObject

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected PObjectToDataObject()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<Converter<?,​?>> create​(org.pkl.core.PClassInfo<?> sourceType, java.lang.reflect.Type targetType)
      Returns a converter for the given source and target types, or Optional.empty() if the factory cannot handle the requested types.
      protected java.util.Optional<java.util.List<java.lang.String>> getParameterNames​(java.lang.reflect.Constructor<?> constructor)  
      protected java.util.Optional<java.lang.reflect.Constructor<?>> selectConstructor​(java.lang.Class<?> clazz)  
      • Methods inherited from class java.lang.Object

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

      • PObjectToDataObject

        protected PObjectToDataObject()
    • Method Detail

      • create

        public final java.util.Optional<Converter<?,​?>> create​(org.pkl.core.PClassInfo<?> sourceType,
                                                                     java.lang.reflect.Type targetType)
        Description copied from interface: ConverterFactory
        Returns a converter for the given source and target types, or Optional.empty() if the factory cannot handle the requested types.
        Specified by:
        create in interface ConverterFactory
      • selectConstructor

        protected java.util.Optional<java.lang.reflect.Constructor<?>> selectConstructor​(java.lang.Class<?> clazz)
      • getParameterNames

        protected java.util.Optional<java.util.List<java.lang.String>> getParameterNames​(java.lang.reflect.Constructor<?> constructor)