Class JavaConstructor

All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable

public final class JavaConstructor extends JavaMember
LuaValue that represents a particular public Java constructor.

May be called with arguments to return a JavaInstance created by calling the constructor.

This class is not used directly.

See Also:
  • Method Details

    • forConstructor

      public static JavaConstructor forConstructor(Constructor<?> c)
    • forConstructors

      public static LuaValue forConstructors(JavaConstructor[] array)
    • invoke

      public Varargs invoke(Varargs args)
      Description copied from class: VarArgFunction
      Subclass responsibility. May not have expected behavior for tail calls. Should not be used if: - function has a possibility of returning a TailcallVarargs
      Overrides:
      invoke in class VarArgFunction
      Parameters:
      args - the arguments to the function call.