Package javassist.bytecode
Class AnnotationsAttribute.Renamer
java.lang.Object
javassist.bytecode.AnnotationsAttribute.Walker
javassist.bytecode.AnnotationsAttribute.Renamer
- Direct Known Subclasses:
TypeAnnotationsAttribute.Renamer
- Enclosing class:
AnnotationsAttribute
-
Field Summary
FieldsFields inherited from class javassist.bytecode.AnnotationsAttribute.Walker
info
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) int
annotation
(int pos, int type, int numPairs) (package private) void
classMemberValue
(int pos, int index) class_info_index
(package private) void
enumMemberValue
(int pos, int typeNameIndex, int constNameIndex) enum_const_value
private void
renameType
(int pos, int index) Methods inherited from class javassist.bytecode.AnnotationsAttribute.Walker
annotation, annotationArray, annotationArray, annotationArray, annotationMemberValue, arrayMemberValue, constValueMember, memberValue, memberValuePair, memberValuePair, parameters, parameters
-
Field Details
-
cpool
ConstPool cpool -
classnames
-
-
Constructor Details
-
Renamer
Constructs a renamer. It renames some class names into the new names specified bymap
.- Parameters:
info
- the annotations attribute.cp
- the constant pool.map
- pairs of replaced and substituted class names. It can be null.
-
-
Method Details
-
annotation
- Overrides:
annotation
in classAnnotationsAttribute.Walker
- Throws:
Exception
-
enumMemberValue
Description copied from class:AnnotationsAttribute.Walker
enum_const_value
- Overrides:
enumMemberValue
in classAnnotationsAttribute.Walker
- Throws:
Exception
-
classMemberValue
Description copied from class:AnnotationsAttribute.Walker
class_info_index
- Overrides:
classMemberValue
in classAnnotationsAttribute.Walker
- Throws:
Exception
-
renameType
private void renameType(int pos, int index)
-