Uses of Class
javassist.bytecode.ClassFile
Packages that use ClassFile
Package
Description
The Javassist Core API.
Bytecode-level API.
Runtime Behavioral Reflection.
Dynamic proxy (similar to
Enhancer of cglib).-
Uses of ClassFile in javassist
Modifier and TypeMethodDescriptionCtClass.getClassFile()Returns a class file for this class.CtClass.getClassFile2()Returns a class file for this class (read only).CtClassType.getClassFile2()CtClassType.getClassFile3(boolean doCompress) private ClassFileCtClassType.setClassFile(ClassFile cf) Updatesclassfileif it is null.Modifier and TypeMethodDescriptionprivate static StringCtNewWrappedMethod.addBodyMethod(CtClassType clazz, ClassFile classfile, CtMethod src) private voidCtClassType.dumpClassFile(ClassFile cf) protected static BytecodeCtNewWrappedConstructor.makeBody(CtClass declaring, ClassFile classfile, int howToCallSuper, CtMethod wrappedBody, CtClass[] parameters, CtMethod.ConstParameter cparam) (package private) static BytecodeCtNewWrappedMethod.makeBody(CtClass clazz, ClassFile classfile, CtMethod wrappedBody, CtClass[] parameters, CtClass returnType, CtMethod.ConstParameter cparam) protected static intCtNewWrappedMethod.makeBody0(CtClass clazz, ClassFile classfile, CtMethod wrappedBody, boolean isStatic, CtClass[] parameters, CtClass returnType, CtMethod.ConstParameter cparam, Bytecode code) Creates a new class (or interface) from the given class file.Creates a new class (or interface) from the given class file.private voidCtClassType.modifyClassConstructor(ClassFile cf) private voidCtClassType.modifyClassConstructor(ClassFile cf, Bytecode code, int stacksize, int localsize) private voidCtClassType.modifyConstructors(ClassFile cf) private ClassFileCtClassType.setClassFile(ClassFile cf) Updatesclassfileif it is null. -
Uses of ClassFile in javassist.bytecode
Methods in javassist.bytecode with parameters of type ClassFileModifier and TypeMethodDescriptionstatic voidPrints the contents of a class file to the standard output stream.static voidClassFilePrinter.print(ClassFile cf, PrintWriter out) Prints the contents of a class file.voidMethodInfo.rebuildStackMapIf6(ClassPool pool, ClassFile cf) Rebuilds a stack map table if the class file is for Java 6 or later. -
Uses of ClassFile in javassist.compiler
Methods in javassist.compiler with parameters of type ClassFile -
Uses of ClassFile in javassist.tools.reflect
Methods in javassist.tools.reflect with parameters of type ClassFile -
Uses of ClassFile in javassist.util.proxy
Methods in javassist.util.proxy that return ClassFileMethods in javassist.util.proxy with parameters of type ClassFileModifier and TypeMethodDescriptionprivate static voidProxyFactory.addClassInitializer(ClassFile cf, ConstPool cp, String classname, int size, List<ProxyFactory.Find2MethodsArgs> forwarders) private static voidprivate static voidprivate voidProxyFactory.makeConstructors(String thisClassName, ClassFile cf, ConstPool cp, String classname) private voidProxyFactory.override(String thisClassname, Method meth, String prefix, int index, String desc, ClassFile cf, ConstPool cp, List<ProxyFactory.Find2MethodsArgs> forwarders) private intProxyFactory.overrideMethods(ClassFile cf, ConstPool cp, String className, List<ProxyFactory.Find2MethodsArgs> forwarders) private static voidProxyFactory.setInterfaces(ClassFile cf, Class<?>[] interfaces, Class<?> proxyClass) private static byte[]FactoryHelper.toBytecode(ClassFile cf) static Class<?>FactoryHelper.toClass(ClassFile cf, Class<?> neighbor, ClassLoader loader, ProtectionDomain domain) Loads a class file by a given class loader.static Class<?>FactoryHelper.toClass(ClassFile cf, ClassLoader loader) Deprecated.static Class<?>FactoryHelper.toClass(ClassFile cf, ClassLoader loader, ProtectionDomain domain) Deprecated.static Class<?>FactoryHelper.toClass(ClassFile cf, MethodHandles.Lookup lookup) Loads a class file by a given lookup.static voidWrites a class file.private static voidFactoryHelper.writeFile0(ClassFile cf, String directoryName)