Uses of Class
org.hotswap.agent.javassist.CtClass
-
Packages that use CtClass Package Description org.hotswap.agent.javassist The Javassist Core API.org.hotswap.agent.javassist.bytecode Bytecode-level API.org.hotswap.agent.javassist.bytecode.analysis Bytecode Analysis API.org.hotswap.agent.javassist.bytecode.annotation Bytecode-level Annotations API.org.hotswap.agent.javassist.bytecode.stackmap 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.reflect Runtime Behavioral Reflection.org.hotswap.agent.javassist.util Utility classes.org.hotswap.agent.plugin.hotswapper org.hotswap.agent.plugin.jdk org.hotswap.agent.plugin.jvm org.hotswap.agent.util org.hotswap.agent.util.classloader org.hotswap.agent.util.scanner org.hotswap.agent.util.signature -
-
Uses of CtClass in org.hotswap.agent.javassist
Subclasses of CtClass in org.hotswap.agent.javassist Modifier and Type Class Description classCtPrimitiveTypeAn instance ofCtPrimitiveTyperepresents a primitive type.Fields in org.hotswap.agent.javassist declared as CtClass Modifier and Type Field Description static CtClassCtClass. booleanTypeTheCtClassobject representing thebooleantype.static CtClassCtClass. byteTypeTheCtClassobject representing thebytetype.protected CtClassCtMember. declaringClassstatic CtClassCtClass. doubleTypeTheCtClassobject representing thedoubletype.static CtClassCtClass. floatTypeTheCtClassobject representing thefloattype.static CtClassCtClass. charTypeTheCtClassobject representing thechartype.static CtClassCtClass. intTypeTheCtClassobject representing theinttype.static CtClassCtClass. longTypeTheCtClassobject representing thelongtype.static CtClassCtClass. shortTypeTheCtClassobject representing theshorttype.static CtClassCtClass. voidTypeTheCtClassobject representing thevoidtype.Methods in org.hotswap.agent.javassist that return CtClass Modifier and Type Method Description protected CtClassClassPool. createCtClass(String classname, boolean useCache)Creates a CtClass object representing the specified class.CtClassClassPool. get(String classname)Reads a class file from the source and returns a reference to theCtClassobject representing that class file.CtClass[]ClassPool. get(String[] classnames)Reads class files from the source and returns an array ofCtClassobjects representing those class files.protected CtClassClassPool. get0(String classname, boolean useCache)CtClassClassPool. getAndRename(String orgName, String newName)Reads a class file and constructs aCtClassobject with a new name.protected CtClassClassPool. getCached(String classname)Provide a hook so that subclasses can do their own caching of classes.CtClassCtClass. getComponentType()If this object represents an array, this method returns the component type of the array.CtClassClassPool. getCtClass(String classname)Returns aCtClassobject with the given name.CtClass[]CtClass. getDeclaredClasses()Returns an array of nested classes declared in the class.CtClassCtClass. getDeclaringClass()If this class is a member class or interface of another class, then the class enclosing this class is returned.CtClassCtField. getDeclaringClass()Returns the class declaring the field.CtClassCtMember. getDeclaringClass()Returns the class that declares this member.CtClass[]CtBehavior. getExceptionTypes()Obtains exceptions that this method/constructor may throw.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[]CtClass. getNestedClasses()Returns an array of nested classes declared in the class.CtClassClassPool. getOrNull(String classname)Reads a class file from the source and returns a reference to theCtClassobject representing that class file.CtClass[]CtBehavior. getParameterTypes()Obtains parameter types of this method/constructor.CtClassCtMethod. getReturnType()Obtains the type of the returned value.CtClassCtClass. getSuperclass()Obtains the class object representing the superclass of the class.CtClassCtField. getType()Returns the type of the field.CtClassClassPool. makeAnnotation(String name)Creates a new annotation.CtClassClassPool. makeClass(InputStream classfile)Creates a new class (or interface) from the given class file.CtClassClassPool. makeClass(InputStream classfile, boolean ifNotFrozen)Creates a new class (or interface) from the given class file.CtClassClassPool. makeClass(String classname)Creates a new public class.CtClassClassPool. makeClass(String classname, CtClass superclass)Creates a new public class.CtClassClassPool. makeClass(ClassFile classfile)Creates a new class (or interface) from the given class file.CtClassClassPool. makeClass(ClassFile classfile, boolean ifNotFrozen)Creates a new class (or interface) from the given class file.CtClassClassPool. makeClassIfNew(InputStream classfile)Creates a new class (or interface) from the given class file.CtClassClassPool. makeInterface(String name)Creates a new public interface.CtClassClassPool. makeInterface(String name, CtClass superclass)Creates a new public interface.CtClassCtClass. makeNestedClass(String name, boolean isStatic)Makes a new public nested class.protected CtClassClassPool. removeCached(String classname)Provide a hook so that subclasses can do their own caching of classes.Methods in org.hotswap.agent.javassist with parameters of type CtClass Modifier and Type Method Description static CtMethodCtNewMethod. abstractMethod(CtClass returnType, String mname, CtClass[] parameters, CtClass[] exceptions, CtClass declaring)Creates a public abstract method.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. addInterface(CtClass anInterface)Adds an interface.voidCtBehavior. addLocalVariable(String name, CtClass type)Declares a new local variable.voidCtBehavior. addParameter(CtClass type)Appends a new parameter, which becomes the last parameter.static CtField.InitializerCtField.Initializer. byCall(CtClass methodClass, String methodName)Makes an initializer calling a static method.static CtField.InitializerCtField.Initializer. byCall(CtClass methodClass, String methodName, String[] stringParams)Makes an initializer calling a static method.static CtField.InitializerCtField.Initializer. byCallWithParams(CtClass methodClass, String methodName)Makes an initializer calling a static method.static CtField.InitializerCtField.Initializer. byCallWithParams(CtClass methodClass, String methodName, String[] stringParams)Makes an initializer calling a static method.static CtField.InitializerCtField.Initializer. byNew(CtClass objectType)Makes an initializer creating a new object.static CtField.InitializerCtField.Initializer. byNew(CtClass objectType, String[] stringParams)Makes an initializer creating a new object.static CtField.InitializerCtField.Initializer. byNewArray(CtClass type, int size)Makes an initializer creating a new array.static CtField.InitializerCtField.Initializer. byNewArray(CtClass type, int[] sizes)Makes an initializer creating a new multi-dimensional array.static CtField.InitializerCtField.Initializer. byNewWithParams(CtClass objectType)Makes an initializer creating a new object.static CtField.InitializerCtField.Initializer. byNewWithParams(CtClass objectType, String[] stringParams)Makes an initializer creating a new object.protected voidClassPool. cacheCtClass(String classname, CtClass c, boolean dynamic)Provides a hook so that subclasses can do their own caching of classes.static longSerialVersionUID. calculateDefault(CtClass clazz)Calculate default value.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.voidClassMap. fix(CtClass clazz)Prevents a mapping from the specified class name to another name.CtConstructorCtClass. getDeclaredConstructor(CtClass[] params)Returns a constructor receiving the specified parameters.CtMethodCtClass. getDeclaredMethod(String name, CtClass[] params)Retrieves the method with the specified name and parameter types among the methods declared in the class.voidCtBehavior. insertParameter(CtClass type)Inserts a new parameter, which becomes the first parameter.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.CtClassClassPool. makeClass(String classname, CtClass superclass)Creates a new public class.CtClassClassPool. makeInterface(String name, CtClass superclass)Creates a new public interface.voidClassMap. put(CtClass oldname, CtClass newname)Maps a class name to another name in this hashtable.voidCodeConverter. redirectFieldAccess(CtField field, CtClass newClass, String newFieldname)Modify a method body so that field read/write expressions access a different field from the original one.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.voidCodeConverter. replaceFieldRead(CtField field, CtClass calledClass, String calledMethod)Modify a method body so that an expression reading the specified field is replaced with a call to the specified static method.voidCodeConverter. replaceFieldWrite(CtField field, CtClass calledClass, String calledMethod)Modify a method body so that an expression writing the specified field is replaced with a call to the specified static method.voidCodeConverter. replaceNew(CtClass oldClass, CtClass newClass)Modify a method body so that instantiation of the class specified byoldClassis replaced with instantiation of another classnewClass.voidCodeConverter. replaceNew(CtClass newClass, CtClass calledClass, String calledMethod)Modify a method body so that instantiation of the specified class is replaced with a call to the specified static method.voidCtBehavior. setExceptionTypes(CtClass[] types)Sets exceptions that this method/constructor may throw.voidCtClass. setInterfaces(CtClass[] list)Sets implemented interfaces.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.voidCtField. setType(CtClass clazz)Sets the type of the field.static CtConstructorCtNewConstructor. skeleton(CtClass[] parameters, CtClass[] exceptions, CtClass declaring)Creates a public constructor that only calls a constructor in the super class.booleanCtClass. subclassOf(CtClass superclass)Determines whether the class directly or indirectly extends the given class.booleanCtClass. subtypeOf(CtClass clazz)Returnstrueif this class extends or implementsclazz.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.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.booleanCtMember. visibleFrom(CtClass clazz)Returns true if this member is accessible from the given class.static CtMethodCtNewMethod. wrapped(CtClass returnType, String mname, CtClass[] parameterTypes, CtClass[] exceptionTypes, CtMethod body, CtMethod.ConstParameter constParam, CtClass declaring)Creates a wrapped method.Constructors in org.hotswap.agent.javassist with parameters of type CtClass Constructor Description CtBehavior(CtClass clazz, MethodInfo minfo)CtConstructor(MethodInfo minfo, CtClass declaring)CtConstructor(CtClass[] parameters, CtClass declaring)Creates a constructor with no constructor body.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.CtMember(CtClass clazz)CtMethod(CtClass returnType, String mname, CtClass[] parameters, CtClass declaring)Creates a public abstract method.CtMethod(CtMethod src, CtClass declaring, ClassMap map)Creates a copy of aCtMethodobject. -
Uses of CtClass in org.hotswap.agent.javassist.bytecode
Fields in org.hotswap.agent.javassist.bytecode declared as CtClass Modifier and Type Field Description static CtClassBytecode. THISRepresents theCtClassfile using the constant pool table given to thisBytecodeobject.static CtClassConstPool. THISRepresents the class using this constant pool table.Methods in org.hotswap.agent.javassist.bytecode that return CtClass Modifier and Type Method Description CtClassSignatureAttribute.BaseType. getCtlass()Returns theCtClassrepresenting this primitive type.static 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 CtClassDescriptor. toCtClass(String desc, ClassPool cp)Returns aCtClassobject representing the type specified by the given descriptor.Methods in org.hotswap.agent.javassist.bytecode with parameters of type CtClass Modifier and Type Method Description voidBytecode. addAnewarray(CtClass clazz, int length)Appends ICONST and ANEWARRAY.intConstPool. addClassInfo(CtClass c)Adds a newCONSTANT_Class_infostructure.voidBytecode. addConstZero(CtClass type)Appends an instruction for pushing zero or null on the stack.voidBytecode. addExceptionHandler(int start, int end, int handler, CtClass type)Adds a new entry ofexception_table.voidBytecode. addGetfield(CtClass c, String name, String type)Appends GETFIELD.voidBytecode. addGetstatic(CtClass c, String name, String type)Appends GETSTATIC.voidBytecode. addCheckcast(CtClass c)Appends CHECKCAST.voidBytecode. addInvokeinterface(CtClass clazz, String name, String desc, int count)Appends INVOKEINTERFACE.voidBytecode. addInvokeinterface(CtClass clazz, String name, CtClass returnType, CtClass[] paramTypes, int count)Appends INVOKEINTERFACE.voidBytecode. addInvokespecial(CtClass clazz, String name, String desc)Appends INVOKESPECIAL.voidBytecode. addInvokespecial(CtClass clazz, String name, CtClass returnType, CtClass[] paramTypes)Appends INVOKESPECIAL.voidBytecode. addInvokestatic(CtClass clazz, String name, String desc)Appends INVOKESTATIC.voidBytecode. addInvokestatic(CtClass clazz, String name, CtClass returnType, CtClass[] paramTypes)Appends INVOKESTATIC.voidBytecode. addInvokevirtual(CtClass clazz, String name, String desc)Appends INVOKEVIRTUAL.voidBytecode. addInvokevirtual(CtClass clazz, String name, CtClass returnType, CtClass[] paramTypes)Appends INVOKEVIRTUAL.intBytecode. addLoad(int n, CtClass type)Appends an instruction for loading a value from the local variable at the indexn.intBytecode. addLoadParameters(CtClass[] params, int offset)Appends instructions for loading all the parameters onto the operand stack.intBytecode. addMultiNewarray(CtClass clazz, int dim)Appends MULTINEWARRAY.intBytecode. addMultiNewarray(CtClass clazz, int[] dimensions)Appends MULTINEWARRAY.voidBytecode. addNew(CtClass clazz)Appends NEW.voidBytecode. addPutfield(CtClass c, String name, String desc)Appends PUTFIELD.voidBytecode. addPutstatic(CtClass c, String name, String desc)Appends PUTSTATIC.voidBytecode. addReturn(CtClass type)Appends ARETURN, IRETURN, .., or RETURN.intBytecode. addStore(int n, CtClass type)Appends an instruction for storing a value into the local variable at the indexn.static StringDescriptor. appendParameter(CtClass type, String descriptor)Appends a parameter type to the parameter list represented by the given descriptor.static StringDescriptor. insertParameter(CtClass type, String descriptor)Inserts a parameter type at the beginning of the parameter list represented by the given descriptor.static StringDescriptor. of(CtClass type)Returns the descriptor representing the given type.static StringDescriptor. ofConstructor(CtClass[] paramTypes)Returns the descriptor representing a constructor receiving the given parameter types.static StringDescriptor. ofMethod(CtClass returnType, CtClass[] paramTypes)Returns the descriptor representing a method that receives the given parameter types and returns the given type.static StringDescriptor. ofParameters(CtClass[] paramTypes)Returns the descriptor representing a list of parameter types.voidBytecode. setMaxLocals(boolean isStatic, CtClass[] params, int locals)Setsmax_locals.static StringDescriptor. toJvmName(CtClass clazz)Returns the internal representation of the class name in the JVM. -
Uses of CtClass in org.hotswap.agent.javassist.bytecode.analysis
Methods in org.hotswap.agent.javassist.bytecode.analysis that return CtClass Modifier and Type Method Description CtClassMultiArrayType. getCtClass()CtClassMultiType. getCtClass()Gets the class that corresponds with this type.CtClassType. getCtClass()Returns the class this type represents.Methods in org.hotswap.agent.javassist.bytecode.analysis with parameters of type CtClass Modifier and Type Method Description Frame[]Analyzer. analyze(CtClass clazz, MethodInfo method)Performs data-flow analysis on a method and returns an array, indexed by instruction position, containing the starting frame state of all reachable instructions.static TypeType. get(CtClass clazz)Obtain the Type for a given class.voidFramePrinter. print(CtClass clazz)Prints all the methods declared in the given class.static voidFramePrinter. print(CtClass clazz, PrintStream stream)Prints all the methods declared in the given class.Constructors in org.hotswap.agent.javassist.bytecode.analysis with parameters of type CtClass Constructor Description ControlFlow(CtClass ctclazz, MethodInfo minfo)Constructs a control-flow analyzer.Constructor parameters in org.hotswap.agent.javassist.bytecode.analysis with type arguments of type CtClass Constructor Description MultiType(Map<String,CtClass> interfaces)MultiType(Map<String,CtClass> interfaces, Type potentialClass) -
Uses of CtClass in org.hotswap.agent.javassist.bytecode.annotation
Methods in org.hotswap.agent.javassist.bytecode.annotation with parameters of type CtClass Modifier and Type Method Description static MemberValueAnnotation. createMemberValue(ConstPool cp, CtClass type)Makes an instance ofMemberValue.Constructors in org.hotswap.agent.javassist.bytecode.annotation with parameters of type CtClass Constructor Description Annotation(ConstPool cp, CtClass clazz)Constructs an annotation that can be accessed through the interface represented byclazz. -
Uses of CtClass in org.hotswap.agent.javassist.bytecode.stackmap
Methods in org.hotswap.agent.javassist.bytecode.stackmap that return CtClass 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.Methods in org.hotswap.agent.javassist.bytecode.stackmap with parameters of type CtClass 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. -
Uses of CtClass in org.hotswap.agent.javassist.compiler
Fields in org.hotswap.agent.javassist.compiler declared as CtClass Modifier and Type Field Description CtClassMemberResolver.Method. declaringprotected CtClassMemberCodeGen. thisClassprotected CtClassTypeChecker. thisClassMethods in org.hotswap.agent.javassist.compiler that return CtClass Modifier and Type Method Description static CtClassMemberResolver. getSuperclass(CtClass c)static CtClassMemberResolver. getSuperInterface(CtClass c, String interfaceName)CtClassMemberCodeGen. getThisClass()CtClassMemberResolver. lookupClass(int type, int dim, String classname)CtClassMemberResolver. lookupClass(String name, boolean notCheckInner)CtClassMemberResolver. lookupClass(Declarator decl)CtClassMemberResolver. lookupClassByJvmName(String jvmName)CtClassMemberResolver. lookupClassByName(ASTList name)CtClass[]MemberCodeGen. makeParamList(MethodDecl md)CtClass[]MemberCodeGen. makeThrowsList(MethodDecl md)Methods in org.hotswap.agent.javassist.compiler with parameters of type CtClass Modifier and Type Method Description protected voidJvstCodeGen. atAssignParamList(CtClass[] params, Bytecode code)voidMemberCodeGen. atMethodCallCore(CtClass targetClass, String mname, ASTList args, boolean isStatic, boolean isSpecial, int aload0pos, MemberResolver.Method found)MemberResolver.MethodTypeChecker. atMethodCallCore(CtClass targetClass, String mname, ASTList args)static intJvstCodeGen. compileParameterList(Bytecode code, CtClass[] params, int regno)protected voidJvstCodeGen. compileUnwrapValue(CtClass type, Bytecode code)protected voidJvstTypeChecker. compileUnwrapValue(CtClass type)voidJvstCodeGen. doNumCast(CtClass type)protected StringMemberCodeGen. getAccessibleConstructor(String desc, CtClass declClass, MethodInfo minfo)protected StringMemberCodeGen. getAccessiblePrivate(String methodName, String desc, String newDesc, MethodInfo minfo, CtClass declClass)StringAccessorMaker. getConstructor(CtClass c, String desc, MethodInfo orig)static CtClassMemberResolver. getSuperclass(CtClass c)static CtClassMemberResolver. getSuperInterface(CtClass c, String interfaceName)MemberResolver.MethodMemberResolver. lookupMethod(CtClass clazz, CtClass currentClass, MethodInfo current, String methodName, int[] argTypes, int[] argDims, String[] argClassNames)intJavac. recordParams(String target, CtClass[] params, boolean use0, int varNo, boolean isStatic)Makes variables $0, $1, $2, ..., and $args represent method parameters.intJavac. recordParams(CtClass[] params, boolean isStatic)Makes variables $0 (this), $1, $2, ..., and $args represent method parameters.intJvstCodeGen. recordParams(CtClass[] params, boolean isStatic, String prefix, String paramVarName, String paramsName, boolean use0, int paramBase, String target, SymbolTable tbl)Makes method parameters $0, $1, ..., $args, $$, and $class availableintJvstCodeGen. recordParams(CtClass[] params, boolean isStatic, String prefix, String paramVarName, String paramsName, SymbolTable tbl)Makes method parameters $0, $1, ..., $args, $$, and $class availableintJavac. recordReturnType(CtClass type, boolean useResultVar)Prepares to use cast $r, $w, $_, and $type.intJvstCodeGen. recordReturnType(CtClass type, String castName, String resultName, SymbolTable tbl)Makes a cast to the return type ($r) available.voidJavac. recordType(CtClass t)Prepares to use $type.voidJvstCodeGen. recordType(CtClass t)Makes $type available.intJavac. recordVariable(CtClass type, String name)Makes the given variable available.intJvstCodeGen. recordVariable(CtClass type, String varName, SymbolTable tbl)Makes the given variable name available.voidJvstCodeGen. setType(CtClass type)voidJvstTypeChecker. setType(CtClass type)Constructors in org.hotswap.agent.javassist.compiler with parameters of type CtClass Constructor Description AccessorMaker(CtClass c)Javac(Bytecode b, CtClass thisClass)Constructs a compiler.Javac(CtClass thisClass)Constructs a compiler.JvstCodeGen(Bytecode b, CtClass cc, ClassPool cp)JvstTypeChecker(CtClass cc, ClassPool cp, JvstCodeGen gen)MemberCodeGen(Bytecode b, CtClass cc, ClassPool cp)Method(CtClass c, MethodInfo i, int n)TypeChecker(CtClass cc, ClassPool cp) -
Uses of CtClass in org.hotswap.agent.javassist.convert
Fields in org.hotswap.agent.javassist.convert declared as CtClass Modifier and Type Field Description protected CtClassTransformReadField. fieldClassprotected CtClass[]TransformBefore. parameterTypesMethods in org.hotswap.agent.javassist.convert with parameters of type CtClass Modifier and Type Method Description voidTransformAccessArrayField. initialize(ConstPool cp, CtClass clazz, MethodInfo minfo)voidTransformer. initialize(ConstPool cp, CtClass clazz, MethodInfo minfo)protected voidTransformBefore. makeCode(CtClass[] paramTypes, ConstPool cp)intTransformAccessArrayField. transform(CtClass tclazz, int pos, CodeIterator iterator, ConstPool cp)intTransformCall. transform(CtClass clazz, int pos, CodeIterator iterator, ConstPool cp)Modify INVOKEINTERFACE, INVOKESPECIAL, INVOKESTATIC and INVOKEVIRTUAL so that a different method is invoked.abstract intTransformer. transform(CtClass clazz, int pos, CodeIterator it, ConstPool cp)intTransformFieldAccess. transform(CtClass clazz, int pos, CodeIterator iterator, ConstPool cp)Modify GETFIELD, GETSTATIC, PUTFIELD, and PUTSTATIC so that a different field is accessed.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 ...intTransformReadField. transform(CtClass tclazz, int pos, CodeIterator iterator, ConstPool cp)intTransformWriteField. transform(CtClass tclazz, int pos, CodeIterator iterator, ConstPool cp) -
Uses of CtClass in org.hotswap.agent.javassist.expr
Methods in org.hotswap.agent.javassist.expr that return CtClass Modifier and Type Method Description CtClassNewArray. getComponentType()Returns the type of array components.protected CtClassMethodCall. getCtClass()Returns the class of the target object, which the method is called on.CtClassExpr. getEnclosingClass()Returns the class that declares the method enclosing this expression.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.CtClass[]Cast. mayThrow()Returns the list of exceptions that the expression may throw.CtClass[]Expr. mayThrow()Returns the list of exceptions that the expression may throw.CtClass[]FieldAccess. mayThrow()Returns the list of exceptions that the expression may throw.CtClass[]Handler. mayThrow()Returns the list of exceptions that the catch clause may throw.CtClass[]Instanceof. mayThrow()Returns the list of exceptions that the expression may throw.CtClass[]MethodCall. mayThrow()Returns the list of exceptions that the expression may throw.CtClass[]NewArray. mayThrow()Returns the list of exceptions that the expression may throw.CtClass[]NewExpr. mayThrow()Returns the list of exceptions that the expression may throw.Methods in org.hotswap.agent.javassist.expr with parameters of type CtClass Modifier and Type Method Description booleanExprEditor. doit(CtClass clazz, MethodInfo minfo)Undocumented method.Constructors in org.hotswap.agent.javassist.expr with parameters of type CtClass Constructor Description Cast(int pos, CodeIterator i, CtClass declaring, MethodInfo m)Undocumented constructor.ConstructorCall(int pos, CodeIterator i, CtClass decl, MethodInfo m)Undocumented constructor.Expr(int pos, CodeIterator i, CtClass declaring, MethodInfo m)Undocumented constructor.FieldAccess(int pos, CodeIterator i, CtClass declaring, MethodInfo m, int op)Handler(ExceptionTable et, int nth, CodeIterator it, CtClass declaring, MethodInfo m)Undocumented constructor.Instanceof(int pos, CodeIterator i, CtClass declaring, MethodInfo m)Undocumented constructor.MethodCall(int pos, CodeIterator i, CtClass declaring, MethodInfo m)Undocumented constructor.NewArray(int pos, CodeIterator i, CtClass declaring, MethodInfo m, int op)NewExpr(int pos, CodeIterator i, CtClass declaring, MethodInfo m, String type, int np)Undocumented constructor. -
Uses of CtClass in org.hotswap.agent.javassist.scopedpool
Fields in org.hotswap.agent.javassist.scopedpool with type parameters of type CtClass Modifier and Type Field Description protected Map<String,CtClass>ScopedClassPool. softcacheMethods in org.hotswap.agent.javassist.scopedpool that return CtClass Modifier and Type Method Description protected CtClassScopedClassPool. getCached(String classname)Get the cached classprotected CtClassScopedClassPool. getCachedLocally(String classname)Whether the class is cached in this pooledCtClassScopedClassPool. getLocally(String classname)Get any local copy of the classMethods in org.hotswap.agent.javassist.scopedpool with parameters of type CtClass Modifier and Type Method Description protected voidScopedClassPool. cacheCtClass(String classname, CtClass c, boolean dynamic)Cache a classvoidScopedClassPool. lockInCache(CtClass c)Lock a class into the cachevoidScopedClassPool. soften(CtClass clazz)Soften a classClass<?>ScopedClassPool. toClass(CtClass ct, ClassLoader loader, ProtectionDomain domain)Convert a javassist class to a java class -
Uses of CtClass in org.hotswap.agent.javassist.tools.reflect
Fields in org.hotswap.agent.javassist.tools.reflect declared as CtClass Modifier and Type Field Description protected CtClass[]Reflection. readParamMethods in org.hotswap.agent.javassist.tools.reflect with parameters of type CtClass Modifier and Type Method Description booleanReflection. makeReflective(CtClass clazz, CtClass metaobject, CtClass metaclass)Produces a reflective class. -
Uses of CtClass in org.hotswap.agent.javassist.util
Methods in org.hotswap.agent.javassist.util with parameters of type CtClass Modifier and Type Method Description static voidHotSwapAgent. redefine(Class<?>[] oldClasses, CtClass[] newClasses)Redefines classes.static voidHotSwapAgent. redefine(Class<?> oldClass, CtClass newClass)Redefines a class. -
Uses of CtClass in org.hotswap.agent.plugin.hotswapper
Methods in org.hotswap.agent.plugin.hotswapper with parameters of type CtClass Modifier and Type Method Description voidHotswapperPlugin. watchReload(CtClass ctClass, ClassLoader appClassLoader, URL url)For each changed class create a reload command. -
Uses of CtClass in org.hotswap.agent.plugin.jdk
Methods in org.hotswap.agent.plugin.jdk with parameters of type CtClass Modifier and Type Method Description static voidJdkPlugin. flushBeanIntrospectorCaches(ClassLoader classLoader, CtClass ctClass)static voidJdkPlugin. flushObjectStreamCaches(ClassLoader classLoader, CtClass ctClass) -
Uses of CtClass in org.hotswap.agent.plugin.jvm
Methods in org.hotswap.agent.plugin.jvm that return CtClass Modifier and Type Method Description 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).Methods in org.hotswap.agent.plugin.jvm with parameters of type CtClass Modifier and Type Method Description static voidClassInitPlugin. patch(CtClass ctClass, ClassLoader classLoader, Class<?> originalClass)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.Constructors in org.hotswap.agent.plugin.jvm with parameters of type CtClass Constructor Description AnonymousClassInfo(CtClass c) -
Uses of CtClass in org.hotswap.agent.util
Methods in org.hotswap.agent.util with parameters of type CtClass Modifier and Type Method Description static booleanAnnotationHelper. hasAnnotation(CtClass clazz, Iterable<String> annotationClasses)static booleanAnnotationHelper. hasAnnotation(CtClass clazz, String annotationClass) -
Uses of CtClass in org.hotswap.agent.util.classloader
Methods in org.hotswap.agent.util.classloader that return CtClass Modifier and Type Method Description CtClassClassLoaderProxy. create(CtClass classToProxy)Deprecated.Methods in org.hotswap.agent.util.classloader with parameters of type CtClass Modifier and Type Method Description CtClassClassLoaderProxy. create(CtClass classToProxy)Deprecated. -
Uses of CtClass in org.hotswap.agent.util.scanner
Methods in org.hotswap.agent.util.scanner that return types with arguments of type CtClass Modifier and Type Method Description Set<CtClass>PluginCache. getPlugins(ClassLoader classLoader)Deprecated.Set<CtClass>PluginCache. scanPlugins(ClassLoader classLoader)Deprecated. -
Uses of CtClass in org.hotswap.agent.util.signature
Methods in org.hotswap.agent.util.signature with parameters of type CtClass Modifier and Type Method Description static StringClassSignatureComparerHelper. getCtClassSignature(CtClass ctClass, ClassSignatureElement[] signatureElements)static booleanClassSignatureComparerHelper. isDifferent(CtClass ctClass, Class<?> clazz, ClassSignatureElement[] signatureElements)Constructors in org.hotswap.agent.util.signature with parameters of type CtClass Constructor Description CtClassSignature(CtClass ctClass)
-