Class DynConstructors.Builder

  • Enclosing class:
    DynConstructors

    public static class DynConstructors.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder​(java.lang.Class<?> baseClass)
      • Builder

        public Builder()
    • Method Detail

      • loader

        public DynConstructors.Builder loader​(java.lang.ClassLoader newLoader)
        Set the ClassLoader used to lookup classes by name.

        If not set, the current thread's ClassLoader is used.

        Parameters:
        newLoader - a ClassLoader
        Returns:
        this Builder for method chaining
      • impl

        public <T> DynConstructors.Builder impl​(java.lang.Class<T> targetClass,
                                                java.lang.Class<?>... types)
      • hiddenImpl

        public DynConstructors.Builder hiddenImpl​(java.lang.String className,
                                                  java.lang.Class<?>... types)
      • hiddenImpl

        public <T> DynConstructors.Builder hiddenImpl​(java.lang.Class<T> targetClass,
                                                      java.lang.Class<?>... types)
      • buildChecked

        public <C> DynConstructors.Ctor<C> buildChecked()
                                                 throws java.lang.NoSuchMethodException
        Throws:
        java.lang.NoSuchMethodException