static class AnnotationsAttribute.Copier extends AnnotationsAttribute.Walker
Modifier and Type | Field and Description |
---|---|
(package private) java.util.Map |
classnames |
(package private) ConstPool |
destPool |
(package private) java.io.ByteArrayOutputStream |
output |
(package private) ConstPool |
srcPool |
(package private) AnnotationsWriter |
writer |
info
Constructor and Description |
---|
Copier(byte[] info,
ConstPool src,
ConstPool dest,
java.util.Map map)
Constructs a copier.
|
Modifier and Type | Method and Description |
---|---|
(package private) int |
annotation(int pos,
int type,
int numPairs) |
(package private) int |
annotationArray(int pos,
int num) |
(package private) int |
annotationMemberValue(int pos) |
(package private) int |
arrayMemberValue(int pos,
int num) |
(package private) void |
classMemberValue(int pos,
int index) |
(package private) byte[] |
close() |
(package private) void |
constValueMember(int tag,
int index) |
(package private) int |
copy(int srcIndex)
Copies a constant pool entry into the destination constant pool
and returns the index of the copied entry.
|
(package private) int |
copyType(int srcIndex)
Copies a constant pool entry into the destination constant pool
and returns the index of the copied entry.
|
(package private) void |
enumMemberValue(int pos,
int typeNameIndex,
int constNameIndex) |
(package private) int |
memberValuePair(int pos,
int nameIndex) |
(package private) void |
parameters(int numParam,
int pos) |
annotation, annotationArray, annotationArray, memberValue, memberValuePair, parameters
java.io.ByteArrayOutputStream output
AnnotationsWriter writer
ConstPool srcPool
ConstPool destPool
java.util.Map classnames
Copier(byte[] info, ConstPool src, ConstPool dest, java.util.Map map)
map
when it copies
an annotation attribute.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.byte[] close() throws java.io.IOException
java.io.IOException
void parameters(int numParam, int pos) throws java.lang.Exception
parameters
in class AnnotationsAttribute.Walker
java.lang.Exception
int annotationArray(int pos, int num) throws java.lang.Exception
annotationArray
in class AnnotationsAttribute.Walker
java.lang.Exception
int annotation(int pos, int type, int numPairs) throws java.lang.Exception
annotation
in class AnnotationsAttribute.Walker
java.lang.Exception
int memberValuePair(int pos, int nameIndex) throws java.lang.Exception
memberValuePair
in class AnnotationsAttribute.Walker
java.lang.Exception
void constValueMember(int tag, int index) throws java.lang.Exception
constValueMember
in class AnnotationsAttribute.Walker
java.lang.Exception
void enumMemberValue(int pos, int typeNameIndex, int constNameIndex) throws java.lang.Exception
enumMemberValue
in class AnnotationsAttribute.Walker
java.lang.Exception
void classMemberValue(int pos, int index) throws java.lang.Exception
classMemberValue
in class AnnotationsAttribute.Walker
java.lang.Exception
int annotationMemberValue(int pos) throws java.lang.Exception
annotationMemberValue
in class AnnotationsAttribute.Walker
java.lang.Exception
int arrayMemberValue(int pos, int num) throws java.lang.Exception
arrayMemberValue
in class AnnotationsAttribute.Walker
java.lang.Exception
int copy(int srcIndex)
srcIndex
- the index of the copied entry into the source
constant pool.int copyType(int srcIndex)
srcIndex
- the index of the copied entry into the source
constant pool.