Class DummyClassGenerator

java.lang.Object
com.griefdefender.api.util.generator.DummyClassGenerator

public class DummyClassGenerator extends Object
  • Constructor Details

    • DummyClassGenerator

      public DummyClassGenerator()
  • Method Details

    • createClass

      public byte[] createClass(Class<?> type, String name, Class<?> exceptionType)
      Creates a new class prepared to be loaded into the ClassLoader.
      Parameters:
      type - The type of class to implement
      name - The name of the class
      exceptionType - The exception type to throw for all methods
      Returns:
      The generated class