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) ConstPoolcpool-
Fields inherited from class javassist.bytecode.AnnotationsAttribute.Walker
info
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) intannotation(int pos, int type, int numPairs)(package private) voidclassMemberValue(int pos, int index)class_info_index(package private) voidenumMemberValue(int pos, int typeNameIndex, int constNameIndex)enum_const_valueprivate voidrenameType(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:
annotationin classAnnotationsAttribute.Walker- Throws:
java.lang.Exception
-
enumMemberValue
void enumMemberValue(int pos, int typeNameIndex, int constNameIndex) throws java.lang.ExceptionDescription copied from class:AnnotationsAttribute.Walkerenum_const_value- Overrides:
enumMemberValuein classAnnotationsAttribute.Walker- Throws:
java.lang.Exception
-
classMemberValue
void classMemberValue(int pos, int index) throws java.lang.ExceptionDescription copied from class:AnnotationsAttribute.Walkerclass_info_index- Overrides:
classMemberValuein classAnnotationsAttribute.Walker- Throws:
java.lang.Exception
-
renameType
private void renameType(int pos, int index)
-
-