Uses of Class
org.hotswap.agent.javassist.CannotCompileException
-
Packages that use CannotCompileException Package Description org.hotswap.agent.javassist The Javassist Core API.org.hotswap.agent.javassist.bytecode Bytecode-level API.org.hotswap.agent.javassist.compiler org.hotswap.agent.javassist.convert org.hotswap.agent.javassist.expr This package contains the classes for modifying a method body.org.hotswap.agent.javassist.scopedpool A custom class pool for several JBoss products.org.hotswap.agent.javassist.tools Covenient tools.org.hotswap.agent.javassist.tools.reflect Runtime Behavioral Reflection.org.hotswap.agent.javassist.tools.rmi Sample implementation of remote method invocation.org.hotswap.agent.javassist.tools.web Simple web server for running sample code.org.hotswap.agent.javassist.util Utility classes.org.hotswap.agent.javassist.util.proxy Dynamic proxy (similar toEnhancerof cglib).org.hotswap.agent.plugin.hotswapper org.hotswap.agent.plugin.jvm -
-
Uses of CannotCompileException in org.hotswap.agent.javassist
Methods in org.hotswap.agent.javassist that throw CannotCompileException Modifier and Type Method Description voidCtBehavior. addCatch(String src, CtClass exceptionType)Adds a catch clause that handles an exception thrown in the body.voidCtBehavior. addCatch(String src, CtClass exceptionType, String exceptionName)Adds a catch clause that handles an exception thrown in the body.voidCtClass. addConstructor(CtConstructor c)Adds a constructor.voidCtClass. addField(CtField f)Adds a field.voidCtClass. addField(CtField f, String init)Adds a field with an initial value.voidCtClass. addField(CtField f, CtField.Initializer init)Adds a field with an initial value.voidCtBehavior. addLocalVariable(String name, CtClass type)Declares a new local variable.voidCtClass. addMethod(CtMethod m)Adds a method.voidCtBehavior. addParameter(CtClass type)Appends a new parameter, which becomes the last parameter.voidLoader. addTranslator(ClassPool cp, Translator t)Adds a translator, which is called whenever a class is loaded.static longSerialVersionUID. calculateDefault(CtClass clazz)Calculate default value.booleanCtConstructor. callsSuper()Returns true if this constructor calls a constructor of the super class.static CtConstructorCtNewConstructor. copy(CtConstructor c, CtClass declaring, ClassMap map)Creates a copy of a constructor.static CtMethodCtNewMethod. copy(CtMethod src, String name, CtClass declaring, ClassMap map)Creates a copy of a method with a new name.static CtMethodCtNewMethod. copy(CtMethod src, CtClass declaring, ClassMap map)Creates a copy of a method.static CtConstructorCtNewConstructor. defaultConstructor(CtClass declaring)Creates a default (public) constructor.static CtMethodCtNewMethod. delegator(CtMethod delegate, CtClass declaring)Creates a method forwarding to a delegate in a super class.protected voidCodeConverter. doit(CtClass clazz, MethodInfo minfo, ConstPool cp)Performs code conversion.static CtMethodCtNewMethod. getter(String methodName, CtField field)Creates a public getter method.voidCtBehavior. insertAfter(String src)Inserts bytecode at the end of the body.voidCtBehavior. insertAfter(String src, boolean asFinally)Inserts bytecode at the end of the body.voidCodeConverter. insertAfterMethod(CtMethod origMethod, CtMethod afterMethod)Inserts a call to another method after an existing method call.intCtBehavior. insertAt(int lineNum, boolean modify, String src)Inserts bytecode at the specified line in the body.intCtBehavior. insertAt(int lineNum, String src)Inserts bytecode at the specified line in the body.voidCtBehavior. insertBefore(String src)Inserts bytecode at the beginning of the body.voidCtConstructor. insertBeforeBody(String src)Inserts bytecode just after another constructor in the super class or this class is called.voidCodeConverter. insertBeforeMethod(CtMethod origMethod, CtMethod beforeMethod)Insert a call to another method before an existing method call.voidCtBehavior. insertParameter(CtClass type)Inserts a new parameter, which becomes the first parameter.voidCtBehavior. instrument(CodeConverter converter)Modifies the method/constructor body.voidCtBehavior. instrument(ExprEditor editor)Modifies the method/constructor body.voidCtClass. instrument(CodeConverter converter)Applies the given converter to all methods and constructors declared in the class.voidCtClass. instrument(ExprEditor editor)Modifies the bodies of all methods and constructors declared in the class.Class<?>Loader.Simple. invokeDefineClass(CtClass cc)Invokes the protecteddefineClass()inClassLoader.static CtFieldCtField. make(String src, CtClass declaring)Compiles the given source code and creates a field.static CtMethodCtMethod. make(String src, CtClass declaring)Compiles the given source code and creates a method.static CtMethodCtMethod. make(MethodInfo minfo, CtClass declaring)Creates a method from aMethodInfoobject.static CtConstructorCtNewConstructor. make(String src, CtClass declaring)Compiles the given source code and creates a constructor.static CtConstructorCtNewConstructor. make(CtClass[] parameters, CtClass[] exceptions, int howto, CtMethod body, CtMethod.ConstParameter cparam, CtClass declaring)Creates a public constructor.static CtConstructorCtNewConstructor. make(CtClass[] parameters, CtClass[] exceptions, String body, CtClass declaring)Creates a public constructor.static CtConstructorCtNewConstructor. make(CtClass[] parameters, CtClass[] exceptions, CtClass declaring)Creates a public constructor that only calls a constructor in the super class.static CtMethodCtNewMethod. make(int modifiers, CtClass returnType, String mname, CtClass[] parameters, CtClass[] exceptions, String body, CtClass declaring)Creates a method.static CtMethodCtNewMethod. make(String src, CtClass declaring)Compiles the given source code and creates a method.static CtMethodCtNewMethod. make(String src, CtClass declaring, String delegateObj, String delegateMethod)Compiles the given source code and creates a method.static CtMethodCtNewMethod. make(CtClass returnType, String mname, CtClass[] parameters, CtClass[] exceptions, String body, CtClass declaring)Creates a public (non-static) method.CtConstructorCtClass. makeClassInitializer()Makes an empty class initializer (static constructor).voidClassPool. makePackage(ClassLoader loader, String name)Deprecated.voidTranslator. onLoad(ClassPool pool, String classname)Is invoked by aLoaderfor notifying that a class is loaded.voidCodeConverter. redirectMethodCall(String oldMethodName, CtMethod newMethod)Correct invocations to a method that has been renamed.voidCodeConverter. redirectMethodCall(CtMethod origMethod, CtMethod substMethod)Modify method invocations in a method body so that a different method will be invoked.voidCtBehavior. setBody(String src)Sets a method/constructor body.voidCtBehavior. setBody(String src, String delegateObj, String delegateMethod)Sets a method/constructor body.voidCtConstructor. setBody(String src)Sets a constructor body.voidCtConstructor. setBody(CtConstructor src, ClassMap map)Copies a constructor body from another constructor.voidCtMethod. setBody(CtMethod src, ClassMap map)Copies a method body from another method.static voidSerialVersionUID. setSerialVersionUID(CtClass clazz)Adds serialVersionUID if one does not already exist.voidCtClass. setSuperclass(CtClass clazz)Changes a super class unless this object represents an interface.static CtMethodCtNewMethod. setter(String methodName, CtField field)Creates a public setter method.voidCtMethod. setWrappedBody(CtMethod mbody, CtMethod.ConstParameter constParam)Replace a method body with a new method body wrapping the given method.static CtConstructorCtNewConstructor. skeleton(CtClass[] parameters, CtClass[] exceptions, CtClass declaring)Creates a public constructor that only calls a constructor in the super class.voidTranslator. start(ClassPool pool)Is invoked by aLoaderfor initialization when the object is attached to theLoaderobject.byte[]CtClass. toBytecode()Converts this class to a class file.voidCtClass. toBytecode(DataOutputStream out)Converts this class to a class file.ClassClassPool. toClass(CtClass clazz)Converts the given class to ajava.lang.Classobject.Class<?>ClassPool. toClass(CtClass ct, Class<?> neighbor)Converts the class to ajava.lang.Classobject.ClassClassPool. toClass(CtClass ct, Class<?> neighbor, ClassLoader loader, ProtectionDomain domain)Converts the class to ajava.lang.Classobject.ClassClassPool. toClass(CtClass ct, ClassLoader loader)Deprecated.ClassClassPool. toClass(CtClass ct, ClassLoader loader, ProtectionDomain domain)Deprecated.Class<?>ClassPool. toClass(CtClass ct, MethodHandles.Lookup lookup)Converts the class to ajava.lang.Classobject.Class<?>CtClass. toClass()Converts this class to ajava.lang.Classobject.Class<?>CtClass. toClass(Class<?> neighbor)Converts this class to ajava.lang.Classobject.Class<?>CtClass. toClass(ClassLoader loader)Deprecated.Replaced byCtClass.toClass(ClassLoader,ProtectionDomain)Class<?>CtClass. toClass(ClassLoader loader, ProtectionDomain domain)Converts this class to ajava.lang.Classobject.Class<?>CtClass. toClass(MethodHandles.Lookup lookup)Converts this class to ajava.lang.Classobject.CtMethodCtConstructor. toMethod(String name, CtClass declaring)Makes a copy of this constructor and converts it into a method.CtMethodCtConstructor. toMethod(String name, CtClass declaring, ClassMap map)Makes a copy of this constructor and converts it into a method.voidCtBehavior. useCflow(String name)Declares to use$cflowfor this method/constructor.static CtMethodCtNewMethod. wrapped(CtClass returnType, String mname, CtClass[] parameterTypes, CtClass[] exceptionTypes, CtMethod body, CtMethod.ConstParameter constParam, CtClass declaring)Creates a wrapped method.voidCtClass. writeFile()Writes a class file represented by thisCtClassobject in the current directory.voidCtClass. writeFile(String directoryName)Writes a class file represented by thisCtClassobject on a local disk.Constructors in org.hotswap.agent.javassist that throw CannotCompileException Constructor Description CtConstructor(CtConstructor src, CtClass declaring, ClassMap map)Creates a copy of aCtConstructorobject.CtField(CtClass type, String name, CtClass declaring)Creates aCtFieldobject.CtField(CtField src, CtClass declaring)Creates a copy of the given field.CtMethod(CtMethod src, CtClass declaring, ClassMap map)Creates a copy of aCtMethodobject. -
Uses of CannotCompileException in org.hotswap.agent.javassist.bytecode
Subclasses of CannotCompileException in org.hotswap.agent.javassist.bytecode Modifier and Type Class Description classDuplicateMemberExceptionAn exception thrown when adding a duplicate member is requested.Methods in org.hotswap.agent.javassist.bytecode that throw CannotCompileException Modifier and Type Method Description voidStackMap. removeNew(int where)Undocumented method.voidStackMapTable. removeNew(int where)Undocumented method.voidClassFile. setSuperclass(String superclass)Sets the super class. -
Uses of CannotCompileException in org.hotswap.agent.javassist.compiler
Constructors in org.hotswap.agent.javassist.compiler with parameters of type CannotCompileException Constructor Description CompileError(CannotCompileException e) -
Uses of CannotCompileException in org.hotswap.agent.javassist.convert
Methods in org.hotswap.agent.javassist.convert that throw CannotCompileException Modifier and Type Method Description voidTransformAccessArrayField. initialize(ConstPool cp, CtClass clazz, MethodInfo minfo)voidTransformer. initialize(ConstPool cp, CtClass clazz, MethodInfo minfo)abstract intTransformer. transform(CtClass clazz, int pos, CodeIterator it, ConstPool cp)intTransformNew. transform(CtClass clazz, int pos, CodeIterator iterator, ConstPool cp)Replace a sequence of NEW classname DUP ...intTransformNewClass. transform(CtClass clazz, int pos, CodeIterator iterator, ConstPool cp)Modifies a sequence of NEW classname DUP ... -
Uses of CannotCompileException in org.hotswap.agent.javassist.expr
Methods in org.hotswap.agent.javassist.expr that throw CannotCompileException Modifier and Type Method Description booleanExprEditor. doit(CtClass clazz, MethodInfo minfo)Undocumented method.voidExprEditor. edit(Cast c)Edits an expression for explicit type casting (overridable).voidExprEditor. edit(ConstructorCall c)Edits a constructor call (overridable).voidExprEditor. edit(FieldAccess f)Edits a field-access expression (overridable).voidExprEditor. edit(Handler h)Edits a catch clause (overridable).voidExprEditor. edit(Instanceof i)Edits an instanceof expression (overridable).voidExprEditor. edit(MethodCall m)Edits a method call (overridable).voidExprEditor. edit(NewArray a)Edits an expression for array creation (overridable).voidExprEditor. edit(NewExpr e)Edits anewexpression (overridable).voidHandler. insertBefore(String src)Inserts bytecode at the beginning of the catch clause.voidCast. replace(String statement)Replaces the explicit cast operator with the bytecode derived from the given source text.abstract voidExpr. replace(String statement)Replaces this expression with the bytecode derived from the given source text.voidExpr. replace(String statement, ExprEditor recursive)Replaces this expression with the bytecode derived from the given source text andExprEditor.voidFieldAccess. replace(String statement)Replaces the method call with the bytecode derived from the given source text.voidHandler. replace(String statement)This method has not been implemented yet.voidInstanceof. replace(String statement)Replaces the instanceof operator with the bytecode derived from the given source text.voidMethodCall. replace(String statement)Replaces the method call with the bytecode derived from the given source text.voidNewArray. replace(String statement)Replaces the array creation with the bytecode derived from the given source text.voidNewExpr. replace(String statement)Replaces thenewexpression with the bytecode derived from the given source text.protected voidExpr. runEditor(ExprEditor ed, CodeIterator oldIterator) -
Uses of CannotCompileException in org.hotswap.agent.javassist.scopedpool
Methods in org.hotswap.agent.javassist.scopedpool that throw CannotCompileException Modifier and Type Method Description Class<?>ScopedClassPool. toClass(CtClass ct, ClassLoader loader, ProtectionDomain domain)Convert a javassist class to a java class -
Uses of CannotCompileException in org.hotswap.agent.javassist.tools
Methods in org.hotswap.agent.javassist.tools that throw CannotCompileException Modifier and Type Method Description static voidCallback. insertAfter(CtBehavior behavior, Callback callback)Utility method to inserts callback at the end of the body.static voidCallback. insertAfter(CtBehavior behavior, Callback callback, boolean asFinally)Utility method to inserts callback at the end of the body.static intCallback. insertAt(CtBehavior behavior, Callback callback, int lineNum)Utility method to inserts callback at the specified line in the body.static voidCallback. insertBefore(CtBehavior behavior, Callback callback)Utility method to insert callback at the beginning of the body. -
Uses of CannotCompileException in org.hotswap.agent.javassist.tools.reflect
Subclasses of CannotCompileException in org.hotswap.agent.javassist.tools.reflect Modifier and Type Class Description classCannotReflectExceptionThrown bymakeReflective()inReflectionwhen there is an attempt to reflect a class that is either an interface or a subclass of either ClassMetaobject or Metaobject.Methods in org.hotswap.agent.javassist.tools.reflect that throw CannotCompileException Modifier and Type Method Description booleanLoader. 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.voidReflection. onLoad(ClassPool pool, String classname)Inserts hooks for intercepting accesses to the fields declared in reflective classes.Constructors in org.hotswap.agent.javassist.tools.reflect that throw CannotCompileException Constructor Description Loader()Constructs a new class loader. -
Uses of CannotCompileException in org.hotswap.agent.javassist.tools.rmi
Methods in org.hotswap.agent.javassist.tools.rmi that throw CannotCompileException Modifier and Type Method Description intAppletServer. exportObject(String name, Object obj)Exports an object.booleanStubGenerator. makeProxyClass(Class<?> clazz)Makes a proxy class.Constructors in org.hotswap.agent.javassist.tools.rmi that throw CannotCompileException Constructor Description AppletServer(int port)Constructs a web server.AppletServer(int port, ClassPool src)Constructs a web server.AppletServer(String port)Constructs a web server. -
Uses of CannotCompileException in org.hotswap.agent.javassist.tools.web
Methods in org.hotswap.agent.javassist.tools.web that throw CannotCompileException 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 CannotCompileException in org.hotswap.agent.javassist.util
Methods in org.hotswap.agent.javassist.util that throw CannotCompileException Modifier and Type Method Description static FileHotSwapAgent. createAgentJarFile(String fileName)Creates an agent file for usingHotSwapAgent.static voidHotSwapAgent. redefine(Class<?>[] oldClasses, CtClass[] newClasses)Redefines classes.static voidHotSwapAgent. redefine(Class<?> oldClass, CtClass newClass)Redefines a class. -
Uses of CannotCompileException in org.hotswap.agent.javassist.util.proxy
Methods in org.hotswap.agent.javassist.util.proxy that throw CannotCompileException Modifier and Type Method Description static voidDefinePackageHelper. definePackage(String className, ClassLoader loader)Defines a new package.static Class<?>DefineClassHelper. toClass(Class<?> neighbor, byte[] bcode)Loads a class file byjava.lang.invoke.MethodHandles.Lookup.static Class<?>DefineClassHelper. toClass(MethodHandles.Lookup lookup, byte[] bcode)Loads a class file byjava.lang.invoke.MethodHandles.Lookup.static Class<?>DefineClassHelper. toClass(String className, Class<?> neighbor, ClassLoader loader, ProtectionDomain domain, byte[] bcode)Loads a class file by a given class loader.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, MethodHandles.Lookup lookup)Loads a class file by a given lookup.static voidFactoryHelper. writeFile(ClassFile cf, String directoryName)Writes a class file. -
Uses of CannotCompileException in org.hotswap.agent.plugin.hotswapper
Methods in org.hotswap.agent.plugin.hotswapper that throw CannotCompileException Modifier and Type Method Description voidHotswapperPlugin. watchReload(CtClass ctClass, ClassLoader appClassLoader, URL url)For each changed class create a reload command. -
Uses of CannotCompileException in org.hotswap.agent.plugin.jvm
Methods in org.hotswap.agent.plugin.jvm that throw CannotCompileException Modifier and Type Method Description static voidClassInitPlugin. patch(CtClass ctClass, ClassLoader classLoader, Class<?> originalClass)static CtClassAnonymousClassPatchPlugin. patchAnonymousClass(ClassLoader classLoader, ClassPool classPool, String className, Class original)Replace an anonymous class with an compatible change (from another class according to state info).static byte[]AnonymousClassPatchPlugin. patchMainClass(String className, ClassPool classPool, CtClass ctClass, ClassLoader classLoader, ProtectionDomain protectionDomain)If class contains anonymous classes, rename class references to compatible transition classes.
-