Uses of Class
javassist.NotFoundException
Packages that use NotFoundException
Package
Description
The Javassist Core API.
Bytecode-level API.
Bytecode Analysis API.
Bytecode-level Annotations API.
This package contains the classes for modifying a method body.
A custom class pool for several JBoss products.
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 CtMethod
CtNewMethod.abstractMethod
(CtClass returnType, String mname, CtClass[] parameters, CtClass[] exceptions, CtClass declaring) Creates a public abstract method.void
Loader.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.ClassPoolTail.appendClassPath
(String pathname) void
ClassPool.appendPathList
(String pathlist) Appends directories and jar files for search.static CtField.Initializer
CtField.Initializer.byNewArray
(CtClass type, int size) Makes an initializer creating a new array.private CtField
CtClassType.checkGetField
(CtField f, String name, String desc) private static CtMethod
CtNewMethod.delegator0
(CtMethod delegate, CtClass declaring) Reads a class file from the source and returns a reference to theCtClass
object representing that class file.CtClass[]
Reads class files from the source and returns an array ofCtClass
objects representing those class files.protected CtClass
ClassPool.getAndRename
(String orgName, String newName) Reads a class file and constructs aCtClass
object with a new name.CtArray.getComponentType()
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.CtClassType.getConstructor
(String desc) ClassPool.getCtClass
(String classname) Returns aCtClass
object 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.CtClassType.getDeclaredField
(String name) CtClassType.getDeclaredField
(String name, String desc) 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.CtClassType.getDeclaredMethod
(String name) CtClassType.getDeclaredMethod
(String name, CtClass[] params) CtMethod[]
CtClass.getDeclaredMethods
(String name) Retrieves methods with the specified name among the methods declared in the class.CtMethod[]
CtClassType.getDeclaredMethods
(String name) CtClass.getDeclaringClass()
If this class is a member class or interface of another class, then the class enclosing this class is returned.CtClassType.getDeclaringClass()
CtClass.getEnclosingBehavior()
Returns the immediately enclosing method of this class.CtClassType.getEnclosingBehavior()
final CtMethod
CtClass.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[]
CtArray.getInterfaces()
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.CtClass[]
CtClassType.getInterfaces()
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[]
CtClassType.getNestedClasses()
CtClass[]
CtBehavior.getParameterTypes()
Obtains parameter types of this method/constructor.CtMethod.getReturnType()
Obtains the type of the returned value.(package private) CtClass
CtBehavior.getReturnType0()
Obtains the type of the returned value.CtArray.getSuperclass()
CtClass.getSuperclass()
Obtains the class object representing the superclass of the class.CtClassType.getSuperclass()
CtField.getType()
Returns the type of the field.CtClass.getURL()
Returns the uniform resource locator (URL) of the class file.CtClassType.getURL()
void
CtNewClass.inheritAllConstructors()
Adds constructors inhrited from the super class.ClassPool.insertClassPath
(String pathname) Inserts a directory or a jar (or zip) file at the head of the search path.ClassPoolTail.insertClassPath
(String pathname) private static boolean
SerialVersionUID.isSerializable
(CtClass clazz) Does the class implement Serializable?private int
CtClassType.makeFieldInitializer
(Bytecode code, CtClass[] parameters) private static ClassPath
ClassPoolTail.makePathObject
(String pathname) private void
CtClassType.modifyClassConstructor
(ClassFile cf) private void
CtClassType.modifyConstructors
(ClassFile cf) void
Is invoked by aLoader
for notifying that a class is loaded.ClassClassPath.openClassfile
(String classname) Obtains a class file bygetResourceAsStream()
.ClassPath.openClassfile
(String classname) Opens a class file.(package private) InputStream
ClassPool.openClassfile
(String classname) (package private) InputStream
ClassPoolTail.openClassfile
(String classname) Opens the class file for the class specified byclassname
.JarClassPath.openClassfile
(String classname) JarDirClassPath.openClassfile
(String classname) LoaderClassPath.openClassfile
(String classname) Obtains a class file from the class loader.void
CtClass.removeConstructor
(CtConstructor c) Removes a constructor declared in this class.void
CtClassType.removeConstructor
(CtConstructor m) void
CtClass.removeField
(CtField f) Removes a field declared in this class.void
CtClassType.removeField
(CtField f) void
CtClass.removeMethod
(CtMethod m) Removes a method declared in this class.void
CtClassType.removeMethod
(CtMethod m) void
CodeConverter.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.void
CtBehavior.setExceptionTypes
(CtClass[] types) Sets exceptions that this method/constructor may throw.static void
SerialVersionUID.setSerialVersionUID
(CtClass clazz) Adds serialVersionUID if one does not already exist.void
Is invoked by aLoader
for initialization when the object is attached to theLoader
object.boolean
boolean
Returnstrue
if this class extends or implementsclazz
.boolean
(package private) void
ClassPool.writeClassfile
(String classname, OutputStream out) (package private) void
ClassPoolTail.writeClassfile
(String classname, OutputStream out) This method does not close the output stream.void
CtClass.writeFile()
Writes a class file represented by thisCtClass
object in the current directory.Constructors in javassist with parameters of type NotFoundExceptionModifierConstructorDescriptionConstructs a CannotCompileException with aNotFoundException
.Constructors in javassist that throw NotFoundExceptionModifierConstructorDescription(package private)
JarClassPath
(String pathname) (package private)
JarDirClassPath
(String dirName) -
Uses of NotFoundException in javassist.bytecode
Methods in javassist.bytecode that throw NotFoundExceptionModifier and TypeMethodDescriptionstatic CtClass[]
Descriptor.getParameterTypes
(String desc, ClassPool cp) Returns theCtClass
objects representing the parameter types specified by the given descriptor.static CtClass
Descriptor.getReturnType
(String desc, ClassPool cp) Returns theCtClass
object representing the return type specified by the given descriptor.static CtClass
Returns aCtClass
object representing the type specified by the given descriptor.private static int
-
Uses of NotFoundException in javassist.bytecode.analysis
Methods in javassist.bytecode.analysis that throw NotFoundExceptionModifier and TypeMethodDescriptionprivate static CtClass
Type.findCommonSuperClass
(CtClass one, CtClass two) private Type
Type.mergeClasses
(Type type) -
Uses of NotFoundException in javassist.bytecode.annotation
Methods in javassist.bytecode.annotation that throw NotFoundExceptionModifier and TypeMethodDescriptionstatic MemberValue
Annotation.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.bytecode.stackmap
Methods in javassist.bytecode.stackmap that throw NotFoundExceptionModifier and TypeMethodDescriptionstatic CtClass
TypeData.commonSuperClass
(CtClass one, CtClass two) Finds the most specific common super class of the given classes.static CtClass
TypeData.commonSuperClassEx
(CtClass one, CtClass two) Finds the most specific common super class of the given classes by considering array types.int
int
int
Depth-first search by Tarjan's algorithmint
private CtClass
TypeData.TypeVar.fixByUppers
(List<TypeData> users, ClassPool cp, Set<TypeData> visited, CtClass type) private void
MapMaker.fixTypes
(byte[] code, TypedBlock[] blocks) private void
private void
private String
TypeData.ArrayElement.getArrayType
(int dim) TypeData.ArrayType.getArrayType
(int dim) TypeData.BasicType.getArrayType
(int dim) TypeData.ClassName.getArrayType
(int dim) abstract TypeData
TypeData.getArrayType
(int dim) TypeData.TypeVar.getArrayType
(int dim) TypeData.UninitTypeVar.getArrayType
(int dim) private static boolean
TypeData.TypeVar.isObjectArray
(CtClass cc) -
Uses of NotFoundException in javassist.compiler
Methods in javassist.compiler that throw NotFoundExceptionModifier and TypeMethodDescriptionprivate CtClass
MemberResolver.lookupClass0
(String classname, boolean notCheckInner) Constructors in javassist.compiler with parameters of type NotFoundException -
Uses of NotFoundException in javassist.convert
Constructors in javassist.convert that throw NotFoundExceptionModifierConstructorDescriptionTransformAccessArrayField
(Transformer next, String methodClassname, CodeConverter.ArrayAccessReplacementMethodNames names) TransformAfter
(Transformer next, CtMethod origMethod, CtMethod afterMethod) TransformBefore
(Transformer next, CtMethod origMethod, CtMethod beforeMethod) -
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.private CtClass
FieldAccess.getCtClass()
Returns the class in which the field is declared.protected CtClass
MethodCall.getCtClass()
Returns the class of the target object, which the method is called on.private CtClass
NewExpr.getCtClass()
Returns the class of the created object.FieldAccess.getField()
Returns the field accessed by this expression.ConstructorCall.getMethod()
Always throws aNotFoundException
.MethodCall.getMethod()
Returns the called method.Cast.getType()
Returns theCtClass
object representing the type specified by the cast.Handler.getType()
Returns the type handled by the catch clause.Instanceof.getType()
Returns theCtClass
object representing the type name on the right hand side of the instanceof operator.private void
-
Uses of NotFoundException in javassist.scopedpool
Methods in javassist.scopedpool that throw NotFoundExceptionModifier and TypeMethodDescriptionScopedClassPool.getLocally
(String classname) Get any local copy of the class -
Uses of NotFoundException in javassist.tools.reflect
Methods in javassist.tools.reflect that throw NotFoundExceptionModifier and TypeMethodDescriptionprivate CtMethod
Reflection.findOriginal
(CtMethod m, boolean dontSearch) boolean
Loader.makeReflective
(String clazz, String metaobject, String metaclass) Produces a reflective class.boolean
Reflection.makeReflective
(Class<?> clazz, Class<?> metaobject, Class<?> metaclass) Produces a reflective class.boolean
Reflection.makeReflective
(String classname, String metaobject, String metaclass) Produces a reflective class.boolean
Reflection.makeReflective
(CtClass clazz, CtClass metaobject, CtClass metaclass) Produces a reflective class.private boolean
Reflection.modifyClassfile
(CtClass clazz, CtClass metaobject, CtClass metaclass) void
Inserts hooks for intercepting accesses to the fields declared in reflective classes.private void
Reflection.processFields
(CtClass clazz) private void
Reflection.processMethods
(CtClass clazz, boolean dontSearch) private void
Reflection.processMethods0
(int mod, CtClass clazz, CtMethod m, int identifier, boolean dontSearch) void
Initializes 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 TypeMethodDescriptionprivate void
StubGenerator.addMethods
(CtClass proxy, Method[] ms) boolean
StubGenerator.makeProxyClass
(Class<?> clazz) Makes a proxy class.private void
StubGenerator.modifySuperclass
(CtClass orgclass) Adds a default constructor to the super classes.private CtClass
StubGenerator.produceProxyClass
(CtClass orgclass, Class<?> orgRtClass) void
Initializes the object.private CtClass
private CtClass[]
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.private
AppletServer
(ClassPool loader, StubGenerator gen, int port) -
Uses of NotFoundException in javassist.tools.web
Methods in javassist.tools.web that throw NotFoundExceptionModifier and TypeMethodDescriptionvoid
Webserver.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 File
HotSwapAgent.createAgentJarFile
(String fileName) Creates an agent file for usingHotSwapAgent
.private static File
HotSwapAgent.createJarFile()
private static File
HotSwapAgent.createJarFile
(File jar) static void
Redefines classes.static void
Redefines a class.private static void
HotSwapAgent.startAgent()
Ensures that the agent is ready.