Tabnine Logo
net.sf.cglib.reflect
Code IndexAdd Tabnine to your IDE (free)

How to use net.sf.cglib.reflect

Best Java code snippets using net.sf.cglib.reflect (Showing top 20 results out of 342)

origin: cglib/cglib

public static MethodDelegate create(Object target, String methodName, Class iface) {
  Generator gen = new Generator();
  gen.setTarget(target);
  gen.setMethodName(methodName);
  gen.setInterface(iface);
  return gen.create();
}
origin: cglib/cglib

public void generateClass(ClassVisitor v) throws Exception {
  new FastClassEmitter(v, getClassName(), type);
}
origin: cglib/cglib

public static MulticastDelegate create(Class iface) {
  Generator gen = new Generator();
  gen.setInterface(iface);
  return gen.create();
}
origin: cglib/cglib

public static FastClass create(ClassLoader loader, Class type) {
  Generator gen = new Generator();
  gen.setType(type);
  gen.setClassLoader(loader);
  return gen.create();
}
origin: cglib/cglib

public static MethodDelegate createStatic(Class targetClass, String methodName, Class iface) {
  Generator gen = new Generator();
  gen.setTargetClass(targetClass);
  gen.setMethodName(methodName);
  gen.setInterface(iface);
  return gen.create();
}
origin: cglib/cglib

public static ConstructorDelegate create(Class targetClass, Class iface) {
  Generator gen = new Generator();
  gen.setTargetClass(targetClass);
  gen.setInterface(iface);
  return gen.create();
}
origin: cglib/cglib

public Object newInstance() throws InvocationTargetException {
  return newInstance(getIndex(Constants.EMPTY_CLASS_ARRAY), null);
}
origin: cglib/cglib

public Object invoke(String name, Class[] parameterTypes, Object obj, Object[] args) throws InvocationTargetException {
  return invoke(getIndex(name, parameterTypes), obj, args);
}
origin: cglib/cglib

public Object newInstance(Object[] args) throws InvocationTargetException {
  return fc.newInstance(index, args);
}
origin: cglib/cglib

public ConstructorDelegate create() {
  setNamePrefix(targetClass.getName());
  Object key = KEY_FACTORY.newInstance(iface.getName(), targetClass.getName());
  return (ConstructorDelegate)super.create(key);
}
origin: cglib/cglib

public Object invoke(Object obj, Object[] args) throws InvocationTargetException {
  return fc.invoke(index, obj, args);
}
origin: cglib/cglib

public Class getDeclaringClass() {
  return fc.getJavaClass();
}
origin: cglib/cglib

  protected Object nextInstance(Object instance) {
    return ((MulticastDelegate)instance).newInstance();
  }
}
origin: cglib/cglib

protected Object nextInstance(Object instance) {
  return ((MethodDelegate)instance).newInstance(target);
}
origin: cglib/cglib

public FastMethod getMethod(Method method) {
  return new FastMethod(this, method);
}
origin: cglib/cglib

FastMethod(FastClass fc, Method method) {
  super(fc, method, helper(fc, method));
}
origin: cglib/cglib

public static FastClass create(ClassLoader loader, Class type) {
  Generator gen = new Generator();
  gen.setType(type);
  gen.setClassLoader(loader);
  return gen.create();
}
origin: cglib/cglib

public static ConstructorDelegate create(Class targetClass, Class iface) {
  Generator gen = new Generator();
  gen.setTargetClass(targetClass);
  gen.setInterface(iface);
  return gen.create();
}
origin: cglib/cglib

public Object newInstance(Class[] parameterTypes, Object[] args) throws InvocationTargetException {
  return newInstance(getIndex(parameterTypes), args);
}

origin: cglib/cglib

public Object newInstance() throws InvocationTargetException {
  return fc.newInstance(index, null);
}
net.sf.cglib.reflect

Most used classes

  • FastClass
  • FastMethod
  • FastConstructor
  • FastClass$Generator
  • ConstructorDelegate$ConstructorKey
  • FastClassEmitter$GetIndexCallback,
  • FastClassEmitter,
  • MethodDelegate$Generator,
  • MethodDelegate$MethodDelegateKey,
  • MethodDelegate,
  • MulticastDelegate$Generator,
  • MulticastDelegate
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now