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
static class AnnotationsAttribute.Renamer extends AnnotationsAttribute.Walker
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.Map<java.lang.String,java.lang.String>
classnames
(package private) ConstPool
cpool
-
Fields inherited from class javassist.bytecode.AnnotationsAttribute.Walker
info
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (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 Detail
-
cpool
ConstPool cpool
-
classnames
java.util.Map<java.lang.String,java.lang.String> classnames
-
-
Constructor Detail
-
Renamer
Renamer(byte[] info, ConstPool cp, java.util.Map<java.lang.String,java.lang.String> map)
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 Detail
-
annotation
int annotation(int pos, int type, int numPairs) throws java.lang.Exception
- Overrides:
annotation
in classAnnotationsAttribute.Walker
- Throws:
java.lang.Exception
-
enumMemberValue
void enumMemberValue(int pos, int typeNameIndex, int constNameIndex) throws java.lang.Exception
Description copied from class:AnnotationsAttribute.Walker
enum_const_value
- Overrides:
enumMemberValue
in classAnnotationsAttribute.Walker
- Throws:
java.lang.Exception
-
classMemberValue
void classMemberValue(int pos, int index) throws java.lang.Exception
Description copied from class:AnnotationsAttribute.Walker
class_info_index
- Overrides:
classMemberValue
in classAnnotationsAttribute.Walker
- Throws:
java.lang.Exception
-
renameType
private void renameType(int pos, int index)
-
-