Class Access.Constructor

java.lang.Object
net.ME1312.Galaxi.Library.Access.Constructor
Enclosing class:
Access

public static final class Access.Constructor extends Object
Constructor Accessor Class
  • Method Details

    • clone

      public Access.Constructor clone()
      Create an editable clone of this accessor
      Returns:
      Cloned Constructor Accessor
    • parameters

      public Access.Constructor parameters(Class<?>... types)
      Define the parameters of this constructor
      If this method is not called, it is assumed that there are no parameters
      Parameters:
      types - Parameter Types
    • parameters

      public Class<?>[] parameters()
      Get the parameter types of this constructor
      Returns:
      Parameter Types
    • bind

      public Access.Constructor bind() throws Throwable
      Finalize and cache the constructor
      Throws:
      Throwable
    • handle

      public MethodHandle handle() throws Throwable
      Finalize, cache, and select the constructor
      Returns:
      MethodHandle
      Throws:
      Throwable
    • invoke

      public <R> R invoke() throws Throwable
      Finalize, cache, select, and invoke the constructor (with zero arguments)
      Returns:
      Constructed Object
      Throws:
      Throwable
    • invoke

      public <R> R invoke(Try.Function<MethodHandle,Object> invocation) throws Throwable
      Finalize, cache, select, and invoke the constructor
      Parameters:
      invocation - Invocation Instruction
      Returns:
      Constructed Object
      Throws:
      Throwable