Uses of Class
javassist.CtField
-
Packages that use CtField Package Description javassist The Javassist Core API.javassist.compiler javassist.compiler.ast javassist.convert javassist.expr This package contains the classes for modifying a method body. -
-
Uses of CtField in javassist
Fields in javassist declared as CtField Modifier and Type Field Description (package private) CtFieldFieldInitLink. fieldMethods in javassist that return CtField Modifier and Type Method Description private CtFieldCtClassType. checkGetField(CtField f, java.lang.String name, java.lang.String desc)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)private CtFieldCtClassType. getDeclaredField2(java.lang.String name, java.lang.String desc)CtField[]CtClass. getDeclaredFields()Gets all the fields declared in the class.CtField[]CtClassType. getDeclaredFields()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)(package private) CtFieldCtClass. getField2(java.lang.String name, java.lang.String desc)(package private) CtFieldCtClassType. getField2(java.lang.String name, java.lang.String desc)CtField[]CtClass. getFields()Returns an array containingCtFieldobjects representing all the non-private fields of the class.CtField[]CtClassType. getFields()static CtFieldCtField. make(java.lang.String src, CtClass declaring)Compiles the given source code and creates a field.Methods in javassist with parameters of type CtField Modifier and Type Method Description voidCtClass. addField(CtField f)Adds a field.voidCtClass. addField(CtField f, java.lang.String init)Adds a field with an initial value.voidCtClass. addField(CtField f, CtField.Initializer init)Adds a field with an initial value.voidCtClassType. addField(CtField f, java.lang.String init)voidCtClassType. addField(CtField f, CtField.Initializer init)private CtFieldCtClassType. checkGetField(CtField f, java.lang.String name, java.lang.String desc)static CtMethodCtNewMethod. getter(java.lang.String methodName, CtField field)Creates a public getter method.voidCodeConverter. redirectFieldAccess(CtField field, CtClass newClass, java.lang.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.voidCtClassType. removeField(CtField f)voidCodeConverter. replaceFieldRead(CtField field, CtClass calledClass, java.lang.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, java.lang.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(java.lang.String methodName, CtField field)Creates a public setter method.Constructors in javassist with parameters of type CtField Constructor Description CtField(CtField src, CtClass declaring)Creates a copy of the given field.FieldInitLink(CtField f, CtField.Initializer i) -
Uses of CtField in javassist.compiler
Subclasses of CtField in javassist.compiler Modifier and Type Class Description static classJavac.CtFieldWithInitMethods in javassist.compiler that return CtField Modifier and Type Method Description private CtFieldJavac. compileField(FieldDecl fd)protected CtFieldMemberCodeGen. fieldAccess(ASTree expr, boolean acceptLength)protected CtFieldTypeChecker. fieldAccess(ASTree expr)private CtFieldTypeChecker. fieldAccess2(Expr e, java.lang.String jvmClassName)CtFieldMemberResolver. lookupField(java.lang.String className, Symbol fieldName)CtFieldMemberResolver. lookupFieldByJvmName(java.lang.String jvmClassName, Symbol fieldName)CtFieldMemberResolver. lookupFieldByJvmName2(java.lang.String jvmClassName, Symbol fieldSym, ASTree expr)Only used by fieldAccess() in MemberCodeGen and TypeChecker.Methods in javassist.compiler with parameters of type CtField Modifier and Type Method Description private intMemberCodeGen. addFieldrefInfo(CtField f, FieldInfo finfo)private voidMemberCodeGen. atFieldAssignCore(CtField f, boolean is_static, int fi, boolean is2byte)private intMemberCodeGen. atFieldRead(CtField f, boolean isStatic)Generates bytecode for reading a field value.private voidTypeChecker. atFieldRead(CtField f)static ASTreeTypeChecker. getConstantFieldValue(CtField f)private AccessorMakerMemberCodeGen. isAccessibleField(CtField f, FieldInfo finfo)Returns null if the field is accessible. -
Uses of CtField in javassist.compiler.ast
Fields in javassist.compiler.ast declared as CtField Modifier and Type Field Description private CtFieldMember. fieldMethods in javassist.compiler.ast that return CtField Modifier and Type Method Description CtFieldMember. getField()Methods in javassist.compiler.ast with parameters of type CtField Modifier and Type Method Description voidMember. setField(CtField f) -
Uses of CtField in javassist.convert
Constructors in javassist.convert with parameters of type CtField Constructor Description TransformFieldAccess(Transformer next, CtField field, java.lang.String newClassname, java.lang.String newFieldname)TransformReadField(Transformer next, CtField field, java.lang.String methodClassname, java.lang.String methodName)TransformWriteField(Transformer next, CtField field, java.lang.String methodClassname, java.lang.String methodName) -
Uses of CtField in javassist.expr
Methods in javassist.expr that return CtField Modifier and Type Method Description CtFieldFieldAccess. getField()Returns the field accessed by this expression.
-