Uses of Class
javassist.NotFoundException
Packages that use NotFoundException
Package
Description
The Javassist Core API.
Bytecode-level API.
Bytecode-level Annotations API.
This package contains the classes for modifying a method body.
Runtime Behavioral Reflection.
Sample implementation of remote method invocation.
Simple web server for running sample code.
Utility classes.
-
Uses of NotFoundException in javassist
Methods in javassist that throw NotFoundExceptionModifier and TypeMethodDescriptionstatic CtMethodCtNewMethod.abstractMethod(CtClass returnType, String mname, CtClass[] parameters, CtClass[] exceptions, CtClass declaring) Creates a public abstract method.voidLoader.addTranslator(ClassPool cp, Translator t) Adds a translator, which is called whenever a class is loaded.ClassPool.appendClassPath(String pathname) Appends a directory or a jar (or zip) file to the end of the search path.voidClassPool.appendPathList(String pathlist) Appends directories and jar files for search.static CtField.InitializerCtField.Initializer.byNewArray(CtClass type, int size) Makes an initializer creating a new array.Reads a class file from the source and returns a reference to theCtClassobject representing that class file.CtClass[]Reads class files from the source and returns an array ofCtClassobjects representing those class files.ClassPool.getAndRename(String orgName, String newName) Reads a class file and constructs aCtClassobject with a new name.CtClass.getComponentType()If this object represents an array, this method returns the component type of the array.CtClass.getConstructor(String desc) Returns the constructor with the given signature, which is represented by a character string called method descriptor.ClassPool.getCtClass(String classname) Returns aCtClassobject with the given name.CtClass[]CtClass.getDeclaredClasses()Returns an array of nested classes declared in the class.CtClass.getDeclaredConstructor(CtClass[] params) Returns a constructor receiving the specified parameters.CtClass.getDeclaredField(String name) Retrieves the field with the specified name among the fields declared in the class.CtClass.getDeclaredField(String name, String desc) Retrieves the field with the specified name and type among the fields declared in the class.CtClass.getDeclaredMethod(String name) Retrieves the method with the specified name among the methods declared in the class.CtClass.getDeclaredMethod(String name, CtClass[] params) Retrieves the method with the specified name and parameter types among the methods declared in the class.CtMethod[]CtClass.getDeclaredMethods(String name) Retrieves methods with the specified name among the methods declared in the class.CtClass.getDeclaringClass()If this class is a member class or interface of another class, then the class enclosing this class is returned.CtClass.getEnclosingBehavior()Returns the immediately enclosing method of this class.final CtMethodCtClass.getEnclosingMethod()Deprecated.The enclosing method might be a constructor.CtClass[]CtBehavior.getExceptionTypes()Obtains exceptions that this method/constructor may throw.Returns the field with the specified name.Returns the field with the specified name and type.CtClass[]CtClass.getInterfaces()Obtains the class objects representing the interfaces implemented by the class or, if this object represents an interface, the interfaces extended by that interface.Reads a class file and obtains a compile-time method.Returns the method with the given name and signature.CtClass[]CtClass.getNestedClasses()Returns an array of nested classes declared in the class.CtClass[]CtBehavior.getParameterTypes()Obtains parameter types of this method/constructor.CtMethod.getReturnType()Obtains the type of the returned value.CtClass.getSuperclass()Obtains the class object representing the superclass of the class.CtField.getType()Returns the type of the field.CtClass.getURL()Returns the uniform resource locator (URL) of the class file.ClassPool.insertClassPath(String pathname) Inserts a directory or a jar (or zip) file at the head of the search path.voidIs invoked by aLoaderfor notifying that a class is loaded.ClassClassPath.openClassfile(String classname) Obtains a class file bygetResourceAsStream().ClassPath.openClassfile(String classname) Opens a class file.LoaderClassPath.openClassfile(String classname) Obtains a class file from the class loader.voidCtClass.removeConstructor(CtConstructor c) Removes a constructor declared in this class.voidCtClass.removeField(CtField f) Removes a field declared in this class.voidCtClass.removeMethod(CtMethod m) Removes a method declared in this class.voidCodeConverter.replaceArrayAccess(CtClass calledClass, CodeConverter.ArrayAccessReplacementMethodNames names) Modify a method body, so that ALL accesses to an array are replaced with calls to static methods within another class.voidCtBehavior.setExceptionTypes(CtClass[] types) Sets exceptions that this method/constructor may throw.static voidSerialVersionUID.setSerialVersionUID(CtClass clazz) Adds serialVersionUID if one does not already exist.voidIs invoked by aLoaderfor initialization when the object is attached to theLoaderobject.booleanReturnstrueif this class extends or implementsclazz.voidCtClass.writeFile()Writes a class file represented by thisCtClassobject in the current directory.Constructors in javassist with parameters of type NotFoundExceptionModifierConstructorDescriptionConstructs a CannotCompileException with aNotFoundException. -
Uses of NotFoundException in javassist.bytecode
Methods in javassist.bytecode that throw NotFoundExceptionModifier and TypeMethodDescriptionstatic CtClass[]Descriptor.getParameterTypes(String desc, ClassPool cp) Returns theCtClassobjects representing the parameter types specified by the given descriptor.static CtClassDescriptor.getReturnType(String desc, ClassPool cp) Returns theCtClassobject representing the return type specified by the given descriptor.static CtClassReturns aCtClassobject representing the type specified by the given descriptor. -
Uses of NotFoundException in javassist.bytecode.annotation
Methods in javassist.bytecode.annotation that throw NotFoundExceptionModifier and TypeMethodDescriptionstatic MemberValueAnnotation.createMemberValue(ConstPool cp, CtClass type) Makes an instance ofMemberValue.Constructors in javassist.bytecode.annotation that throw NotFoundExceptionModifierConstructorDescriptionAnnotation(ConstPool cp, CtClass clazz) Constructs an annotation that can be accessed through the interface represented byclazz. -
Uses of NotFoundException in javassist.expr
Methods in javassist.expr that throw NotFoundExceptionModifier and TypeMethodDescriptionNewArray.getComponentType()Returns the type of array components.ConstructorCall.getConstructor()Returns the called constructor.NewExpr.getConstructor()Returns the constructor called for creating the object.FieldAccess.getField()Returns the field accessed by this expression.ConstructorCall.getMethod()Always throws aNotFoundException.MethodCall.getMethod()Returns the called method.Cast.getType()Returns theCtClassobject representing the type specified by the cast.Handler.getType()Returns the type handled by the catch clause.Instanceof.getType()Returns theCtClassobject representing the type name on the right hand side of the instanceof operator. -
Uses of NotFoundException in javassist.tools.reflect
Methods in javassist.tools.reflect that throw NotFoundExceptionModifier and TypeMethodDescriptionbooleanLoader.makeReflective(String clazz, String metaobject, String metaclass) Produces a reflective class.booleanReflection.makeReflective(Class<?> clazz, Class<?> metaobject, Class<?> metaclass) Produces a reflective class.booleanReflection.makeReflective(String classname, String metaobject, String metaclass) Produces a reflective class.booleanReflection.makeReflective(CtClass clazz, CtClass metaobject, CtClass metaclass) Produces a reflective class.voidInserts hooks for intercepting accesses to the fields declared in reflective classes.voidInitializes the object.Constructors in javassist.tools.reflect that throw NotFoundException -
Uses of NotFoundException in javassist.tools.rmi
Methods in javassist.tools.rmi that throw NotFoundExceptionModifier and TypeMethodDescriptionbooleanStubGenerator.makeProxyClass(Class<?> clazz) Makes a proxy class.voidInitializes the object.Constructors in javassist.tools.rmi that throw NotFoundExceptionModifierConstructorDescriptionAppletServer(int port) Constructs a web server.AppletServer(int port, ClassPool src) Constructs a web server.AppletServer(String port) Constructs a web server. -
Uses of NotFoundException in javassist.tools.web
Methods in javassist.tools.web that throw NotFoundExceptionModifier and TypeMethodDescriptionvoidWebserver.addTranslator(ClassPool cp, Translator t) Adds a translator, which is called whenever a client requests a class file. -
Uses of NotFoundException in javassist.util
Methods in javassist.util that throw NotFoundExceptionModifier and TypeMethodDescriptionstatic FileHotSwapAgent.createAgentJarFile(String fileName) Creates an agent file for usingHotSwapAgent.static voidRedefines classes.static voidRedefines a class.