Additional top-level class in compilation unit: FieldInitLink.
| Modifier and Type | Field and Description |
|---|---|
| private AccessorMaker | |
| pack-priv ClassFile | |
| pack-priv ClassPool | |
| private boolean | |
| private FieldInitLink | |
| pack-priv boolean | |
| private static final int | |
| private int | |
| private Reference | |
| pack-priv byte[] | |
| private int | |
| pack-priv boolean | |
| private boolean | |
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | addField(CtField f, String
an expression for the initial value. init)Overrides javassist. Adds a field with an initial value. |
| public void | addField(CtField f, CtField.
specifies the initial value of the field. initOverrides javassist. Adds a field with an initial value. |
| public void | addInterface(CtClass
the added interface. anInterface)Overrides javassist. Adds an interface. |
| public void | |
| private CtField | |
| pack-priv void | |
| private void | |
| pack-priv void | |
| public void | defrost()
Overrides javassist. Defrosts the class so that the class can be modified again. |
| private void | |
| protected void | extendToString(StringBuilder buffer)
Overrides javassist. Implemented in subclasses to add to the |
| private void | |
| public void | |
| public AccessorMaker | |
| public Object | getAnnotation(Class<?>
the annotation type. clz)Overrides javassist. Returns the annotation if the class has the specified annotation type. |
| public Object[] | getAnnotations()
Overrides javassist. Returns the annotations associated with this class. |
| private Object[] | |
| pack-priv static Object | |
| public byte[] | getAttribute(String
attribute name name)Overrides javassist. Obtains an attribute with the given name. |
| public Object[] | getAvailableAnnotations()
Overrides javassist. Returns the annotations associated with this class. |
| public ClassFile | getClassFile2()
Overrides javassist. Returns a class file for this class (read only). |
| public ClassFile | |
| public CtConstructor | getClassInitializer()
Overrides javassist. Gets the class initializer (static constructor) declared in the class. |
| public ClassPool | |
| public CtConstructor | getConstructor(String
method descriptor desc)Overrides javassist. Returns the constructor with the given signature, which is represented by a character string called method descriptor. |
| public CtConstructor[] | getConstructors()
Overrides javassist. Returns an array containing |
| public CtBehavior[] | getDeclaredBehaviors()
Overrides javassist. Gets all the constructors and methods declared in the class. |
| public CtConstructor[] | getDeclaredConstructors()
Overrides javassist. Gets all the constructors declared in the class. |
| public CtField | getDeclaredField(String name)
Overrides javassist. Retrieves the field with the specified name among the fields declared in the class. |
| public CtField | getDeclaredField(String
the field name. name, String the type descriptor of the field. It is available by
desc)CtField#getSignature().Overrides javassist. Retrieves the field with the specified name and type among the fields declared in the class. |
| private CtField | |
| public CtField[] | getDeclaredFields()
Overrides javassist. Gets all the fields declared in the class. |
| public CtMethod | getDeclaredMethod(String name)
Overrides javassist. Retrieves the method with the specified name among the methods declared in the class. |
| public CtMethod | getDeclaredMethod(String
method name name, CtClass[] parameter types params)Overrides javassist. Retrieves the method with the specified name and parameter types among the methods declared in the class. |
| public CtMethod[] | getDeclaredMethods()
Overrides javassist. Gets all methods declared in the class. |
| public CtMethod[] | getDeclaredMethods(String
method name. name)Overrides javassist. Retrieves methods with the specified name among the methods declared in the class. |
| public CtClass | getDeclaringClass()
Overrides javassist. If this class is a member class or interface of another class, then the class enclosing this class is returned. |
| public CtBehavior | getEnclosingBehavior()
Overrides javassist. Returns the immediately enclosing method of this class. |
| public CtField | getField(String
the field name. name, String the type descriptor of the field. It is available by
desc)CtField#getSignature().Overrides javassist. Returns the field with the specified name and type. |
| pack-priv CtField | |
| public CtField[] | getFields()
Overrides javassist. Returns an array containing |
| private static void | |
| public String | getGenericSignature()
Overrides javassist. Returns the generic signature of the class. |
| pack-priv Map | |
| public CtClass[] | getInterfaces()
Overrides javassist. Obtains the class objects representing the interfaces implemented by the class or, if this object represents an interface, the interfaces extended by that interface. |
| protected synchronized CtMember. | |
| public CtMethod | getMethod(String
method name name, String method descriptor desc)Overrides javassist. Returns the method with the given name and signature. |
| private static CtMethod | |
| public CtMethod[] | getMethods()
Overrides javassist. Returns an array containing |
| private static void | |
| public int | getModifiers()
Overrides javassist. Returns the modifiers for this class, encoded in an integer. |
| public CtClass[] | getNestedClasses()
Overrides javassist. Returns an array of nested classes declared in the class. |
| public CtClass | getSuperclass()
Overrides javassist. Obtains the class object representing the superclass of the class. |
| pack-priv int | |
| public URL | getURL()
Overrides javassist. Returns the uniform resource locator (URL) of the class file. |
| public boolean | hasAnnotation(String
the name of annotation type. annotationName)Overrides javassist. Returns true if the class has the specified annotation type. |
| pack-priv static boolean | hasAnnotationType(Class<?> clz, ClassPool cp, AnnotationsAttribute a1, AnnotationsAttribute a2)
Deprecated
|
| pack-priv static boolean | hasAnnotationType(String annotationTypeName, ClassPool cp, AnnotationsAttribute a1, AnnotationsAttribute a2)
|
| protected CtMember. | |
| pack-priv final void | |
| private static void | |
| public void | instrument(CodeConverter
specifies how to modify. converter)Overrides javassist. Applies the given converter to all methods and constructors declared in the class. |
| public void | instrument(ExprEditor
specifies how to modify. editor)Overrides javassist. Modifies the bodies of all methods and constructors declared in the class. |
| public boolean | isAnnotation()
Overrides javassist. Determines whether this object represents an annotation type. |
| public boolean | |
| public boolean | isFrozen()
Overrides javassist. Returns true if the class has been loaded or written out and thus it cannot be modified any more. |
| public boolean | isInterface()
Overrides javassist. Determines whether this object represents a class or an interface. |
| public boolean | isModified()
Overrides javassist. Returns true if the definition of the class has been modified. |
| private static boolean | |
| private void | |
| public CtConstructor | makeClassInitializer()
Overrides javassist. Makes an empty class initializer (static constructor). |
| private void | |
| private int | |
| private void | |
| public CtClass | makeNestedClass(String
the simple name of the nested class. name, boolean true if the nested class is static. isStatic)Overrides javassist. Makes a new public nested class. |
| public String | makeUniqueName(String
the prefix of the member name. prefix)Overrides javassist. Makes a unique member name. |
| private void | |
| private void | |
| private void | |
| private void | |
| private static boolean | |
| public void | prune()
Overrides javassist. Discards unnecessary attributes, in particular,
|
| public void | rebuildClassFile()
Overrides javassist. If this method is called, the class file will be
rebuilt when it is finally generated by
|
| private synchronized void | |
| public void | removeConstructor(CtConstructor
removed constructor. m)Overrides javassist. Removes a constructor declared in this class. |
| public void | removeField(CtField
removed field. f)Overrides javassist. Removes a field declared in this class. |
| public void | removeMethod(CtMethod
removed method. m)Overrides javassist. Removes a method declared in this class. |
| public void | replaceClassName(ClassMap
the hashtable associating replaced class names
with substituted names. classnames)Overrides javassist. Changes class names appearing in the class file according to the
given |
| public void | replaceClassName(String
replaced class name oldname, String substituted class name newname)Overrides javassist. Substitutes |
| private synchronized void | |
| public void | setAttribute(String
attribute name name, byte[] attribute value data)Overrides javassist. Adds a named attribute. |
| private synchronized ClassFile | |
| pack-priv void | |
| public void | setGenericSignature(String
a generic signature. sig)Overrides javassist. Sets the generic signature of the class. |
| public void | setInterfaces(CtClass[]
a list of the list)CtClass objects
representing interfaces, or
null if the class implements
no interfaces.Overrides javassist. Sets implemented interfaces. |
| public void | setModifiers(int
modifiers encoded by
mod)javassist.ModifierOverrides javassist. Sets the modifiers. |
| public void | |
| public void | setSuperclass(CtClass clazz)
Overrides javassist. Changes a super class unless this object represents an interface. |
| public boolean | stopPruning(boolean
disallow pruning if true. Otherwise, allow. stop)Overrides javassist. Disallows (or allows) automatically pruning this |
| public boolean | subclassOf(CtClass superclass)
Overrides javassist. Determines whether the class directly or indirectly extends the given class. |
| public boolean | subtypeOf(CtClass clazz)
Overrides javassist. Returns |
| pack-priv static Object[] | toAnnotationType(boolean ignoreNotFound, ClassPool cp, AnnotationsAttribute a1, AnnotationsAttribute a2)
|
| pack-priv static Object[][] | toAnnotationType(boolean ignoreNotFound, ClassPool cp, ParameterAnnotationsAttribute a1, ParameterAnnotationsAttribute a2, MethodInfo minfo)
|
| private static Object | |
| public void | toBytecode(DataOutputStream
the output stream that a class file is written to. out)Overrides javassist. Converts this class to a class file. |
| private static void |