Package javassist.bytecode
Class AnnotationsAttribute.Copier
java.lang.Object
javassist.bytecode.AnnotationsAttribute.Walker
javassist.bytecode.AnnotationsAttribute.Copier
- Direct Known Subclasses:
TypeAnnotationsAttribute.Copier
- Enclosing class:
- AnnotationsAttribute
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) ConstPool(package private) ByteArrayOutputStream(package private) ConstPool(package private) AnnotationsWriterFields inherited from class javassist.bytecode.AnnotationsAttribute.Walker
info -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) intannotation(int pos, int type, int numPairs) (package private) intannotationArray(int pos, int num) (package private) intannotationMemberValue(int pos) annotation_value(package private) intarrayMemberValue(int pos, int num) array_value(package private) voidclassMemberValue(int pos, int index) class_info_index(package private) byte[]close()(package private) voidconstValueMember(int tag, int index) const_value_index(package private) intcopy(int srcIndex) Copies a constant pool entry into the destination constant pool and returns the index of the copied entry.(package private) intcopyType(int srcIndex) Copies a constant pool entry into the destination constant pool and returns the index of the copied entry.(package private) voidenumMemberValue(int pos, int typeNameIndex, int constNameIndex) enum_const_value(package private) intmemberValuePair(int pos, int nameIndex) element_value_paris[](package private) voidparameters(int numParam, int pos) Methods inherited from class javassist.bytecode.AnnotationsAttribute.Walker
annotation, annotationArray, annotationArray, memberValue, memberValuePair, parameters
-
Field Details
-
output
ByteArrayOutputStream output -
writer
AnnotationsWriter writer -
srcPool
ConstPool srcPool -
destPool
ConstPool destPool -
classnames
-
-
Constructor Details
-
Copier
Constructs a copier. This copier renames some class names into the new names specified bymapwhen it copies an annotation attribute.- Parameters:
info- the source attribute.src- the constant pool of the source class.dest- the constant pool of the destination class.map- pairs of replaced and substituted class names. It can be null.
-
Copier
-
-
Method Details
-
close
- Throws:
IOException
-
parameters
- Overrides:
parametersin classAnnotationsAttribute.Walker- Throws:
Exception
-
annotationArray
- Overrides:
annotationArrayin classAnnotationsAttribute.Walker- Throws:
Exception
-
annotation
- Overrides:
annotationin classAnnotationsAttribute.Walker- Throws:
Exception
-
memberValuePair
Description copied from class:AnnotationsAttribute.Walkerelement_value_paris[]- Overrides:
memberValuePairin classAnnotationsAttribute.Walker- Throws:
Exception
-
constValueMember
Description copied from class:AnnotationsAttribute.Walkerconst_value_index- Overrides:
constValueMemberin classAnnotationsAttribute.Walker- Throws:
Exception
-
enumMemberValue
Description copied from class:AnnotationsAttribute.Walkerenum_const_value- Overrides:
enumMemberValuein classAnnotationsAttribute.Walker- Throws:
Exception
-
classMemberValue
Description copied from class:AnnotationsAttribute.Walkerclass_info_index- Overrides:
classMemberValuein classAnnotationsAttribute.Walker- Throws:
Exception
-
annotationMemberValue
Description copied from class:AnnotationsAttribute.Walkerannotation_value- Overrides:
annotationMemberValuein classAnnotationsAttribute.Walker- Throws:
Exception
-
arrayMemberValue
Description copied from class:AnnotationsAttribute.Walkerarray_value- Overrides:
arrayMemberValuein classAnnotationsAttribute.Walker- Throws:
Exception
-
copy
int copy(int srcIndex) Copies a constant pool entry into the destination constant pool and returns the index of the copied entry.- Parameters:
srcIndex- the index of the copied entry into the source constant pool.- Returns:
- the index of the copied item into the destination constant pool.
-
copyType
int copyType(int srcIndex) Copies a constant pool entry into the destination constant pool and returns the index of the copied entry. That entry must be a Utf8Info representing a class name in the L; form. - Parameters:
srcIndex- the index of the copied entry into the source constant pool.- Returns:
- the index of the copied item into the destination constant pool.
-