Uses of Class
javassist.NotFoundException
-
Packages that use NotFoundException Package Description javassist The Javassist Core API.javassist.bytecode Bytecode-level API.javassist.bytecode.analysis Bytecode Analysis API.javassist.bytecode.annotation Bytecode-level Annotations API.javassist.bytecode.stackmap javassist.compiler javassist.convert javassist.expr This package contains the classes for modifying a method body.javassist.scopedpool A custom class pool for several JBoss products.javassist.tools.reflect Runtime Behavioral Reflection.javassist.tools.rmi Sample implementation of remote method invocation.javassist.tools.web Simple web server for running sample code.javassist.util Utility classes. -
-
Uses of NotFoundException in javassist
Methods in javassist that throw NotFoundException Modifier and Type Method Description static CtMethodCtNewMethod. abstractMethod(CtClass returnType, java.lang.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.ClassPathClassPool. appendClassPath(java.lang.String pathname)Appends a directory or a jar (or zip) file to the end of the search path.ClassPathClassPoolTail. appendClassPath(java.lang.String pathname)voidClassPool. appendPathList(java.lang.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.private CtFieldCtClassType. checkGetField(CtField f, java.lang.String name, java.lang.String desc)private static CtMethodCtNewMethod. delegator0(CtMethod delegate, CtClass declaring)CtClassClassPool. get(java.lang.String classname)Reads a class file from the source and returns a reference to theCtClassobject representing that class file.CtClass[]ClassPool. get(java.lang.String[] classnames)Reads class files from the source and returns an array ofCtClassobjects representing those class files.protected CtClassClassPool. get0(java.lang.String classname, boolean useCache)CtClassClassPool. getAndRename(java.lang.String orgName, java.lang.String newName)Reads a class file and constructs aCtClassobject with a new name.CtClassCtArray. getComponentType()CtClassCtClass. getComponentType()If this object represents an array, this method returns the component type of the array.CtConstructorCtClass. getConstructor(java.lang.String desc)Returns the constructor with the given signature, which is represented by a character string called method descriptor.CtConstructorCtClassType. getConstructor(java.lang.String desc)CtClassClassPool. getCtClass(java.lang.String classname)Returns aCtClassobject with the given name.CtClass[]CtClass. getDeclaredClasses()Returns an array of nested classes declared in the class.CtConstructorCtClass. getDeclaredConstructor(CtClass[] params)Returns a constructor receiving the specified parameters.CtFieldCtClass. getDeclaredField(java.lang.String name)Retrieves the field with the specified name among the fields declared in the class.CtFieldCtClass. getDeclaredField(java.lang.String name, java.lang.String desc)Retrieves the field with the specified name and type among the fields declared in the class.CtFieldCtClassType. getDeclaredField(java.lang.String name)CtFieldCtClassType. getDeclaredField(java.lang.String name, java.lang.String desc)CtMethodCtClass. getDeclaredMethod(java.lang.String name)Retrieves the method with the specified name among the methods declared in the class.CtMethodCtClass. getDeclaredMethod(java.lang.String name, CtClass[] params)Retrieves the method with the specified name and parameter types among the methods declared in the class.CtMethodCtClassType. getDeclaredMethod(java.lang.String name)CtMethodCtClassType. getDeclaredMethod(java.lang.String name, CtClass[] params)CtMethod[]CtClass. getDeclaredMethods(java.lang.String name)Retrieves methods with the specified name among the methods declared in the class.CtMethod[]CtClassType. getDeclaredMethods(java.lang.String name)CtClassCtClass. getDeclaringClass()If this class is a member class or interface of another class, then the class enclosing this class is returned.CtClassCtClassType. getDeclaringClass()CtBehaviorCtClass. getEnclosingBehavior()Returns the immediately enclosing method of this class.CtBehaviorCtClassType. getEnclosingBehavior()CtMethodCtClass. getEnclosingMethod()Deprecated.The enclosing method might be a constructor.CtClass[]CtBehavior. getExceptionTypes()Obtains exceptions that this method/constructor may throw.CtFieldCtClass. getField(java.lang.String name)Returns the field with the specified name.CtFieldCtClass. getField(java.lang.String name, java.lang.String desc)Returns the field with the specified name and type.CtFieldCtClassType. getField(java.lang.String name, java.lang.String desc)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()CtMethodClassPool. getMethod(java.lang.String classname, java.lang.String methodname)Reads a class file and obtains a compile-time method.CtMethodCtArray. getMethod(java.lang.String name, java.lang.String desc)CtMethodCtClass. getMethod(java.lang.String name, java.lang.String desc)Returns the method with the given name and signature.CtMethodCtClassType. getMethod(java.lang.String name, java.lang.String desc)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.CtClassCtMethod. getReturnType()Obtains the type of the returned value.(package private) CtClassCtBehavior. getReturnType0()Obtains the type of the returned value.CtClassCtArray. getSuperclass()CtClassCtClass. getSuperclass()Obtains the class object representing the superclass of the class.CtClassCtClassType. getSuperclass()CtClassCtField. getType()Returns the type of the field.java.net.URLCtClass. getURL()Returns the uniform resource locator (URL) of the class file.java.net.URLCtClassType. getURL()voidCtNewClass. inheritAllConstructors()Adds constructors inhrited from the super class.ClassPathClassPool. insertClassPath(java.lang.String pathname)Inserts a directory or a jar (or zip) file at the head of the search path.ClassPathClassPoolTail. insertClassPath(java.lang.String pathname)private static booleanSerialVersionUID. isSerializable(CtClass clazz)Does the class implement Serializable?private intCtClassType. makeFieldInitializer(Bytecode code, CtClass[] parameters)private static ClassPathClassPoolTail. makePathObject(java.lang.String pathname)private voidCtClassType. modifyClassConstructor(ClassFile cf)private voidCtClassType. modifyConstructors(ClassFile cf)voidTranslator. onLoad(ClassPool pool, java.lang.String classname)Is invoked by aLoaderfor notifying that a class is loaded.java.io.InputStreamClassClassPath. openClassfile(java.lang.String classname)Obtains a class file bygetResourceAsStream().java.io.InputStreamClassPath. openClassfile(java.lang.String classname)Opens a class file.(package private) java.io.InputStreamClassPool. openClassfile(java.lang.String classname)(package private) java.io.InputStreamClassPoolTail. openClassfile(java.lang.String classname)Opens the class file for the class specified byclassname.java.io.InputStreamJarClassPath. openClassfile(java.lang.String classname)java.io.InputStreamJarDirClassPath. openClassfile(java.lang.String classname)java.io.InputStreamLoaderClassPath. openClassfile(java.lang.String classname)Obtains a class file from the class loader.voidCtClass. removeConstructor(CtConstructor c)Removes a constructor declared in this class.voidCtClassType. removeConstructor(CtConstructor m)voidCtClass. removeField(CtField f)Removes a field declared in this class.voidCtClassType. removeField(CtField f)voidCtClass. removeMethod(CtMethod m)Removes a method declared in this class.voidCtClassType. removeMethod(CtMethod m)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.voidTranslator. start(ClassPool pool)Is invoked by aLoaderfor initialization when the object is attached to theLoaderobject.booleanCtArray. subtypeOf(CtClass clazz)booleanCtClass. subtypeOf(CtClass clazz)Returnstrueif this class extends or implementsclazz.booleanCtClassType. subtypeOf(CtClass clazz)(package private) voidClassPool. writeClassfile(java.lang.String classname, java.io.OutputStream out)(package private) voidClassPoolTail. writeClassfile(java.lang.String classname, java.io.OutputStream out)This method does not close the output stream.voidCtClass. writeFile()Writes a class file represented by thisCtClassobject in the current directory.Constructors in javassist with parameters of type NotFoundException Constructor Description CannotCompileException(NotFoundException e)Constructs a CannotCompileException with aNotFoundException.Constructors in javassist that throw NotFoundException Constructor Description JarClassPath(java.lang.String pathname)JarDirClassPath(java.lang.String dirName) -
Uses of NotFoundException in javassist.bytecode
Methods in javassist.bytecode that throw NotFoundException Modifier and Type Method Description static CtClass[]Descriptor. getParameterTypes(java.lang.String desc, ClassPool cp)Returns theCtClassobjects representing the parameter types specified by the given descriptor.static CtClassDescriptor. getReturnType(java.lang.String desc, ClassPool cp)Returns theCtClassobject representing the return type specified by the given descriptor.static CtClassDescriptor. toCtClass(java.lang.String desc, ClassPool cp)Returns aCtClassobject representing the type specified by the given descriptor.private static intDescriptor. toCtClass(ClassPool cp, java.lang.String desc, int i, CtClass[] args, int n) -
Uses of NotFoundException in javassist.bytecode.analysis
Methods in javassist.bytecode.analysis that throw NotFoundException Modifier and Type Method Description private static CtClassType. findCommonSuperClass(CtClass one, CtClass two)private TypeType. mergeClasses(Type type) -
Uses of NotFoundException in javassist.bytecode.annotation
Methods in javassist.bytecode.annotation that throw NotFoundException Modifier and Type Method Description static MemberValueAnnotation. createMemberValue(ConstPool cp, CtClass type)Makes an instance ofMemberValue.Constructors in javassist.bytecode.annotation that throw NotFoundException Constructor Description Annotation(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 NotFoundException Modifier and Type Method Description static CtClassTypeData. commonSuperClass(CtClass one, CtClass two)Finds the most specific common super class of the given classes.static CtClassTypeData. commonSuperClassEx(CtClass one, CtClass two)Finds the most specific common super class of the given classes by considering array types.intTypeData.ArrayElement. dfs(java.util.List<TypeData> order, int index, ClassPool cp)intTypeData.ArrayType. dfs(java.util.List<TypeData> order, int index, ClassPool cp)intTypeData. dfs(java.util.List<TypeData> order, int index, ClassPool cp)Depth-first search by Tarjan's algorithmintTypeData.TypeVar. dfs(java.util.List<TypeData> preOrder, int index, ClassPool cp)private CtClassTypeData.TypeVar. fixByUppers(java.util.List<TypeData> users, ClassPool cp, java.util.Set<TypeData> visited, CtClass type)private voidMapMaker. fixTypes(byte[] code, TypedBlock[] blocks)private voidTypeData.TypeVar. fixTypes(java.util.List<TypeData> scc, ClassPool cp)private voidTypeData.TypeVar. fixTypes1(java.util.List<TypeData> scc, TypeData kind)private java.lang.StringTypeData.TypeVar. fixTypes2(java.util.List<TypeData> scc, java.util.Set<java.lang.String> lowersSet, ClassPool cp)TypeDataTypeData.ArrayElement. getArrayType(int dim)TypeDataTypeData.ArrayType. getArrayType(int dim)TypeDataTypeData.BasicType. getArrayType(int dim)TypeDataTypeData.ClassName. getArrayType(int dim)abstract TypeDataTypeData. getArrayType(int dim)TypeDataTypeData.TypeVar. getArrayType(int dim)TypeDataTypeData.UninitTypeVar. getArrayType(int dim)private static booleanTypeData.TypeVar. isObjectArray(CtClass cc) -
Uses of NotFoundException in javassist.compiler
Methods in javassist.compiler that throw NotFoundException Modifier and Type Method Description private CtClassMemberResolver. lookupClass0(java.lang.String classname, boolean notCheckInner)Constructors in javassist.compiler with parameters of type NotFoundException Constructor Description CompileError(NotFoundException e) -
Uses of NotFoundException in javassist.convert
Constructors in javassist.convert that throw NotFoundException Constructor Description TransformAccessArrayField(Transformer next, java.lang.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 NotFoundException Modifier and Type Method Description CtClassNewArray. getComponentType()Returns the type of array components.CtConstructorConstructorCall. getConstructor()Returns the called constructor.CtConstructorNewExpr. getConstructor()Returns the constructor called for creating the object.private CtClassFieldAccess. getCtClass()Returns the class in which the field is declared.protected CtClassMethodCall. getCtClass()Returns the class of the target object, which the method is called on.private CtClassNewExpr. getCtClass()Returns the class of the created object.CtFieldFieldAccess. getField()Returns the field accessed by this expression.CtMethodConstructorCall. getMethod()Always throws aNotFoundException.CtMethodMethodCall. getMethod()Returns the called method.CtClassCast. getType()Returns theCtClassobject representing the type specified by the cast.CtClassHandler. getType()Returns the type handled by the catch clause.CtClassInstanceof. getType()Returns theCtClassobject representing the type name on the right hand side of the instanceof operator.private voidNewArray. replace2(java.lang.String statement) -
Uses of NotFoundException in javassist.scopedpool
Methods in javassist.scopedpool that throw NotFoundException Modifier and Type Method Description CtClassScopedClassPool. getLocally(java.lang.String classname)Get any local copy of the class -
Uses of NotFoundException in javassist.tools.reflect
Methods in javassist.tools.reflect that throw NotFoundException Modifier and Type Method Description private CtMethodReflection. findOriginal(CtMethod m, boolean dontSearch)booleanLoader. makeReflective(java.lang.String clazz, java.lang.String metaobject, java.lang.String metaclass)Produces a reflective class.booleanReflection. makeReflective(java.lang.Class<?> clazz, java.lang.Class<?> metaobject, java.lang.Class<?> metaclass)Produces a reflective class.booleanReflection. makeReflective(java.lang.String classname, java.lang.String metaobject, java.lang.String metaclass)Produces a reflective class.booleanReflection. makeReflective(CtClass clazz, CtClass metaobject, CtClass metaclass)Produces a reflective class.private booleanReflection. modifyClassfile(CtClass clazz, CtClass metaobject, CtClass metaclass)voidReflection. onLoad(ClassPool pool, java.lang.String classname)Inserts hooks for intercepting accesses to the fields declared in reflective classes.private voidReflection. processFields(CtClass clazz)private voidReflection. processMethods(CtClass clazz, boolean dontSearch)private voidReflection. processMethods0(int mod, CtClass clazz, CtMethod m, int identifier, boolean dontSearch)voidReflection. start(ClassPool pool)Initializes the object.Constructors in javassist.tools.reflect that throw NotFoundException Constructor Description Loader()Constructs a new class loader. -
Uses of NotFoundException in javassist.tools.rmi
Methods in javassist.tools.rmi that throw NotFoundException Modifier and Type Method Description private voidStubGenerator. addMethods(CtClass proxy, java.lang.reflect.Method[] ms)booleanStubGenerator. makeProxyClass(java.lang.Class<?> clazz)Makes a proxy class.private voidStubGenerator. modifySuperclass(CtClass orgclass)Adds a default constructor to the super classes.private CtClassStubGenerator. produceProxyClass(CtClass orgclass, java.lang.Class<?> orgRtClass)voidStubGenerator. start(ClassPool pool)Initializes the object.private CtClassStubGenerator. toCtClass(java.lang.Class<?> rtclass)private CtClass[]StubGenerator. toCtClass(java.lang.Class<?>[] rtclasses)Constructors in javassist.tools.rmi that throw NotFoundException Constructor Description AppletServer(int port)Constructs a web server.AppletServer(int port, ClassPool src)Constructs a web server.AppletServer(java.lang.String port)Constructs a web server.AppletServer(ClassPool loader, StubGenerator gen, int port) -
Uses of NotFoundException in javassist.tools.web
Methods in javassist.tools.web that throw NotFoundException Modifier and Type Method Description voidWebserver. 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 NotFoundException Modifier and Type Method Description static java.io.FileHotSwapAgent. createAgentJarFile(java.lang.String fileName)Creates an agent file for usingHotSwapAgent.private static java.io.FileHotSwapAgent. createJarFile()private static java.io.FileHotSwapAgent. createJarFile(java.io.File jar)static voidHotSwapAgent. redefine(java.lang.Class<?>[] oldClasses, CtClass[] newClasses)Redefines classes.static voidHotSwapAgent. redefine(java.lang.Class<?> oldClass, CtClass newClass)Redefines a class.private static voidHotSwapAgent. startAgent()Ensures that the agent is ready.
-