Class Definer<Base>

java.lang.Object
org.xblackcat.sjpu.builder.Definer<Base>
All Implemented Interfaces:
IDefiner

public class Definer<Base> extends Object implements IDefiner
  • Constructor Details

    • Definer

      public Definer(javassist.ClassPool pool, Class<? extends Base> baseClass, Class<?>... paramClasses)
  • Method Details

    • getBaseCtClass

      public javassist.CtClass getBaseCtClass() throws javassist.NotFoundException
      Specified by:
      getBaseCtClass in interface IDefiner
      Throws:
      javassist.NotFoundException
    • isAssignable

      public boolean isAssignable(Class<?> clazz)
      Specified by:
      isAssignable in interface IDefiner
    • isImplemented

      public boolean isImplemented(Method m)
      Specified by:
      isImplemented in interface IDefiner
    • getNestedClassName

      public String getNestedClassName()
      Specified by:
      getNestedClassName in interface IDefiner
    • buildCtConstructor

      public javassist.CtConstructor buildCtConstructor(javassist.CtClass accessHelper) throws javassist.NotFoundException, javassist.CannotCompileException
      Specified by:
      buildCtConstructor in interface IDefiner
      Throws:
      javassist.NotFoundException
      javassist.CannotCompileException
    • getPool

      public javassist.ClassPool getPool()
      Specified by:
      getPool in interface IDefiner