Uses of Class
org.hotswap.agent.javassist.CtField
-
Packages that use CtField Package Description org.hotswap.agent.javassist The Javassist Core API.org.hotswap.agent.javassist.compiler org.hotswap.agent.javassist.compiler.ast org.hotswap.agent.javassist.convert org.hotswap.agent.javassist.expr This package contains the classes for modifying a method body. -
-
Uses of CtField in org.hotswap.agent.javassist
Methods in org.hotswap.agent.javassist that return CtField Modifier and Type Method Description CtFieldCtClass. getDeclaredField(String name)Retrieves the field with the specified name among the fields declared in the class.CtFieldCtClass. getDeclaredField(String name, String desc)Retrieves the field with the specified name and type among the fields declared in the class.CtField[]CtClass. getDeclaredFields()Gets all the fields declared in the class.CtFieldCtClass. getField(String name)Returns the field with the specified name.CtFieldCtClass. getField(String name, String desc)Returns the field with the specified name and type.CtField[]CtClass. getFields()Returns an array containingCtFieldobjects representing all the non-private fields of the class.static CtFieldCtField. make(String src, CtClass declaring)Compiles the given source code and creates a field.Methods in org.hotswap.agent.javassist with parameters of type CtField Modifier and Type Method Description 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.static CtMethodCtNewMethod. getter(String methodName, CtField field)Creates a public getter method.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.voidCtClass. removeField(CtField f)Removes a field declared in this 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.static CtMethodCtNewMethod. setter(String methodName, CtField field)Creates a public setter method.Constructors in org.hotswap.agent.javassist with parameters of type CtField Constructor Description CtField(CtField src, CtClass declaring)Creates a copy of the given field. -
Uses of CtField in org.hotswap.agent.javassist.compiler
Subclasses of CtField in org.hotswap.agent.javassist.compiler Modifier and Type Class Description static classJavac.CtFieldWithInitMethods in org.hotswap.agent.javassist.compiler that return CtField Modifier and Type Method Description protected CtFieldMemberCodeGen. fieldAccess(ASTree expr, boolean acceptLength)protected CtFieldTypeChecker. fieldAccess(ASTree expr)CtFieldMemberResolver. lookupField(String className, Symbol fieldName)CtFieldMemberResolver. lookupFieldByJvmName(String jvmClassName, Symbol fieldName)CtFieldMemberResolver. lookupFieldByJvmName2(String jvmClassName, Symbol fieldSym, ASTree expr)Only used by fieldAccess() in MemberCodeGen and TypeChecker.Methods in org.hotswap.agent.javassist.compiler with parameters of type CtField Modifier and Type Method Description static ASTreeTypeChecker. getConstantFieldValue(CtField f) -
Uses of CtField in org.hotswap.agent.javassist.compiler.ast
Methods in org.hotswap.agent.javassist.compiler.ast that return CtField Modifier and Type Method Description CtFieldMember. getField()Methods in org.hotswap.agent.javassist.compiler.ast with parameters of type CtField Modifier and Type Method Description voidMember. setField(CtField f) -
Uses of CtField in org.hotswap.agent.javassist.convert
Constructors in org.hotswap.agent.javassist.convert with parameters of type CtField Constructor Description TransformFieldAccess(Transformer next, CtField field, String newClassname, String newFieldname)TransformReadField(Transformer next, CtField field, String methodClassname, String methodName)TransformWriteField(Transformer next, CtField field, String methodClassname, String methodName) -
Uses of CtField in org.hotswap.agent.javassist.expr
Methods in org.hotswap.agent.javassist.expr that return CtField Modifier and Type Method Description CtFieldFieldAccess. getField()Returns the field accessed by this expression.
-